Boot Sequence Overview
1. BIOS initialization
2.Boot Loader (1st-resides in MBR or boot sector ; 2st-loaded from boot partition)
GRUB /boot/grub.conf
if MBR on /dev/hda is corrupted,reinstall the first stage bootloader with:/sbin/grub-install /dev/hda
if grub-install fail for some reason try: type the comment -grub Enter -root(hd0,0) -setup(hd0) -quit
example of GRUB:
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,5)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-8.el5)
root (hd0,5)
kernel /vmlinuz-2.6.18-8.el5 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-8.el5.img
title Other
rootnoverify (hd0,0)
chainloader +1
3.Kernel initialization (Device detection; Device driver initialization;Mounts root filesystem read ony; load init)
4.init starts and enters desired run level by executing: (/etc/inittab)
-/etc/rc.d/rc.sysinit
-/etc/rc.d/rc and /etc/rc.d/rc?.d/
-/etc/rc.d/rc.local (you can put your own scripts in there)
-X Display Manager if appropriate
(system-config-services; ntsysv; chkconfig; service ; chkconfig;)