Booting Process and Issues
Booting Process and Issues
1. Booting Process:
Ans:
1) Power on
2) BIOS (Basic Input Output Systems)
MBR is the first sector of the disk. Its first 512 bytes of the
“boot drive” is read into memory by the BIOS.
Out of 512 bytes, first 446 bytes is “data of boot loader”, 64
bytes contains the “partition table” for the disk and the last 2
bytes are the “magic number” which is used for error
deduction in sector.
MBR discover and loads GRUB2 boot loader into memory
and transfers control over to it (This know as GRUB stage
1.5).
In simple terms “MBR loads and executes the GRUB2
boot loader”.
4) GRUB2 (Grand Unified Boot Loader)
# chroot /mnt/sysimage
# /sbin/grub-install /dev/hda
- to fix: re-install GRUB & try to start your system by manual
entering GRUB in command line.
4. problem with GRUB config file also makes you unable to
reboot
--System will take you to grub prompt while rebooting
grub>kernel /vmlinuz.img –Just cross check kernel
>kernel /vmlinuz.img root=/dev/sda2
>initrd /initramfs.img
>boot
>reboot (system will be boot with help of CD drive)
Bash-4.1#df –h
#cat /mnt/sysimage/etc/fstab
#blkid |grep –I sda In this case there is no /var, /boot,
/tmp so we nedd to mount manually
#mount /dev/sda1 /mnt/sysimage/boot
#mount /dev/sda5 /mnt/sysimage/home
#mount /dev/sda7 /mnt/sysimage/tmp
#mount /dev/sda3 /mnt/sysimage/var
#cd /mnt/sysimage/boot
#ls –ltr
#cd grub2
#ls -ltr
5. problem with MBR or mbr corrupted server will go to rescue
mode
Go to the Rescue mode to reload the MBR
Bash-4.1#df –h
#chroot /mnt/sysimage
Sh-4.1#df –h
#grub-install /dev/sda -To Recover MBR
#exit- -come out from root shell
Bash-4.1#reboot