2.)Lecture-2.1_BootProcessOfLinux
2.)Lecture-2.1_BootProcessOfLinux
BIOS KERNAL
MBR INIT
GRUB RUNLEVEL
1
BIOS
• Stands for Basic Input Output System
• Performs system integrity checks (POST(Power On Self
Test))
• Searches, loads and executes the boot loader program
– Searches boot loader
– Loads and executes MBR
2
MBR
• Stands for Master Boot Record
• Located in the first sector of the bootable disk typically
– /dev/sda or /dev/hda
• 512 Bytes in size
• Mainly three components
MBR Validation
Primary Boot Loader Partition Table
Check
(446 B) (64 B)
(2B)
MBR (512Bytes)
• Contains information about GRUB
• Loads and executes GRUB
3
GRUB
• Stands for Grand Unified Bootloader
• Choose which Kernel image to be executed
• Loads the Kernel image specified in the configuration file
• GRUB configuration file is
– /boot/grub/grub.conf
• Load and execute Kernel and initrd (initial ram disk) image
• Knowledge of file system
4
Kernel
• Mounts/loads the root file system as specified in the grub
configuration file
• Execute init program /sbin/init
• Initrd is used as temporary root file system until Kernel
mounts the root file system
5
Init
• Init stands for Initialization
• Looks at the /etc/inittab file to decide the Linux run level
• Run level decides which initial programs are loaded at startup
• Following are the available run levels
6
Runlevel
• Depending on init level setting, the system will execute the program
from one of the following directories:
7
Login Prompt