What is booting process?
- Booting process in a Linux installation involves multiple stages, includes execution of boot-loader, initialization of firmware, startup and loading of a Linux kernel image and executions d daemons and scripts.
- Daemons is a computer program that runs in the computer background process, rather than being under the interactive or end user. The process name of daemons ends with the letter d.
- For example sshd is a daemons that serves incoming ssh connections.
"When you press the power button at the time POST(power on self test) program is called itself. it check the all connected devices like mouse, keyboard are working properly or not."
- BIOS perform some integrate check
- It searches, loads and executes the boot loader program
- It looks for boot loader in Floppy disk, CD ROM, HDD(hard disk drive). You can press any key during the BIOS setup to change the sequence of boot.
- Once boot loader program is detected and executed the control goes to the MBR.
- MBR is located in 1st sector of bootable disk. Typically /dev/sda or /dev/hda
- The size of MBR is 512 bytes. These 512 bytes are divided into 3 components:-
- primary bootloader info in 1st 446 bytes
- Partition table information in next 64 bytes
- MBR validation check in last 2 bytes
- MBR contains the information about GRUB
- When MBR loads and executesthe GRUB boot loader.
- GRUB stand for Grand Unified Bootloader.
- If you have multiple kernel images already installed on your machine/system , you can choose which one you want to executed.
- GRUB displayed the splash screen and it wait for few seconds if you not select any image it executes the default one.
- GRUB have knowledge about the file system
- The location of grub file is in linux "/etc/grub/grub.conf".
- So GRUB just loads and executes the kernel and initrd images.
- It mounts the root file system as specified in "root=" in grub.conf
- it executes the /sbin/init program
- NIT was the first program to be executed in linux kernel, so its process id is 1
- Do 'ps -ef | grep init'
- init is used by kernel as a temporary root file system until kernel booted and root file system is mounted.
- Chech in /etc/inittab file to decide the Linux run level
- There are total 6 run levels are available
- 0 - halt
- 1 - Singel user mode
- 2 - Multi-user, Without NFS
- 3.- Full multiuser mode
- 4 - unused
- 5 - x11
- 6 - Reboot
- Generally the default run level is 3 or 5
- When the linux system booting up, at the time various services getting started.
- Depending on the your default init level setting will executes the programs from one of the following directories.
- 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/
That is happens during the booting process. I hope you clear the booting process.
Thank You...!😃😃😃



