LINUX Booting process summary
LINUX BOOTING PROCESS
6 STEPS PROCESS
6 STEPS PROCESS
- STEP1: BIOS (Basic Input Output) Process
- BIOS stands for Basic Input/Output System
- Performs some system integrity checks(POST-Power on Self Test)
- Searches, loads, and execute the boot loader program
- Once boot loader program is detected and loaded into the memory, BIOS gives the control to it
- SO in simple terms BIOS loads and executes the MBR boot loader
- STEP2: MBR ( Master Boot Record)
- MBR stands for Master Boot Record
- It is located in the 1st sector of the boot able disk. Typically /dev/hda or /dev/sda
- MBR loads and executes the GRUB boot loader
- MBR is less than 512 bytes in size. This has three components:
- Primary boot loader: 446 bytes,
- partition table info - 64 bytes(16,16,16,16) 4 partitions
- magic number - 2 bytes
- STEP3: GRUB ( Grand Unified Bootloader)
- GRUB stands for Grand Unified Bootloader
- It is multi-boot boot loader which displays a splash screen, waits for few seconds, if you don't enter anything, it loads the defaults kernel image as specified in the grub configuration file - /etc/grub.conf
- It contains kernel and initrd image. Thus, GRUB just loads and execute kernel and initrd images.
- STEP4: Kernel
- Once control is given to kernel which is the central part of your operating system and act as mediator between hardware and software
- Kernel once loaded into to RAM it always resides on RAM until the machine is shutdown
- Once kernel starts its operations the first thing it do is executing the INIT process
- STEPS5: Init ( initialization)
- Looks at the /etc/inittab file to decide the Linux run level
- Following are the avaialbel run levels:
- 0---Halt
- 1---Single user mode
- 2---Multi-user mode-without NFS
- 3---Full Multi-user mode
- 4--unused
- 5--x11
- 6---reboot
- Typically we set 3 or 5 run levels
- STEP6: Run Level Programs
- When Linux system is booting up, you might see various services getting started. For example, it might say " starting send-mail ...OK" . Those are the run-level programs executed from the run level directory as defined by your run level
- Depending on your default init level setting, the system will execute the programs from on 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 - /ec/rc.d/rc5.d/
- Run level 6 - /etc/rc.d/rc6.d/
Comments
Post a Comment