What is Boot process of Linux .

Hi Friends when we press power button of our Linux machine and soon we see Login screen, have you ever think what tasks run behind this Procedure .
1.Boot process initiate by BIOS and it run a test which we called POST (Power On Self Test) it determine the list of all boot devices and other peripherals, boot HDD and detect MBR(master boot recorder) once MBR detected and loads in memory it’s task done .

2.MBR located in 1ST sector of bootable disk and it’s size less than 512 Bytes ,and it’s store information about Boot-Loader , and execute them it’ can be GRUB or LILO .  

3.Boot-Loader ,Grub(grand unified boot loader) ,LILO (Linux Loader) when our boot-loader comes up it’s have information of our all available installed kernels and show splash screen ,we can choose any Kernel Image for boot by pressing any key at splash time otherwise it will boot default kernel image . 



4.KERNEL-This can be considered the heart of operating system responsible for handling all system processes.Now Kernel start work and first of all it mount “root filesystem” which is specified in grub.conf file ,and Next it runs the init process .




5.INIT- Executes the system to boot into the run level as specified in /etc/inittab
/etc/inittab file have information similar to like below




# Default runlevel. The runlevels used by RHS are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode 
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:


6.RUNLEVEL-Now Runlevel load which is set in /etc/inittab/ and related script will execute from directory , and normally we see when system boot it satrt some services it’s mean it start that service which is set for start on particular runlevel . 



Runlevel  Directory
0        /etc/rc.d/rc0.d/
1        /etc/rc.d/rc1.d/
2        /etc/rc.d/rc2.d/
3        /etc/rc.d/rc3.d/
4        /etc/rc.d/rc4.d/
5        /etc/rc.d/rc5.d/
6        /etc/rc.d/rc6.d/


When Run-level Completely Load In Memory then we get Computer Login Screen .

2 comments:

  1. Hi Satish

    Nice post! I’ve never thought this way. I’m reviewing some concepts I have based on it.

    good job

    ReplyDelete