FoxuTech

What are Linux Boot Process – Each Stage Explained

Ever wonder how the OS is getting boot and what are the processes its getting load while server is powering ON. Here will see what happens from switching ON a linux machine to booted up. Linux has 6 stages of a linux boot process and will see what happens each stages.


1. BIOS

  1. MBR
1) primary boot loader info in 1st 446 bytes
2) partition table info in next 64 bytes
3) mbr validation check in last 2 bytes.
  1. GRUB
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-696.el6.x86_64)
        root (hd0,1)
        kernel /vmlinuz-2.6.32-696.el6.x86_64 ro root=/dev/mapper/centos-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16  KEYBOARDTYPE=pc KEYTABLE=pt-latin1 crashkernel=auto rd_LVM_LV=centos/lv_swap rd_NO_DM rd_LVM_LV=centos/lv_root rhgb quiet
        initrd /initramfs-2.6.32-696.el6.x86_64.img
  1. Kernel
  1. Init
0 – halt
1 – Single user mode
2 – Multiuser, without NFS
3 – Full multiuser mode (CLI)
4 – unused
5 – X11 or GUI
6 – reboot
  1. Runlevel programs
- Run level 0 – /etc/rc.d/rc0.d/
- Run level 1 – /etc/rc.d/rc1.d/
- Run level 2 – /etc/rc.d/rc2.d/
- Run level 3 – /etc/rc.d/rc3.d/
- Run level 4 – /etc/rc.d/rc4.d/
- Run level 5 – /etc/rc.d/rc5.d/
- Run level 6 – /etc/rc.d/rc6.d/
Exit mobile version