Linux Booting Process
Linux Booting Process
Linux Booting Process
Presented by:
MD. Ashraful Alam
ID: 181-15-1844
PC:G
CONTENTS
1. What is BOOTING?
2. The 6 steps of Linux booting process
3. BIOS
4. MBR
5. GRUB
6. KERNEL
7. Init Process
8. Run Level Process
What is Booting?
Restarting a computer or its operating system software.
It is of two types :
(1) Cold booting: when the computer is started after having been switched off.
(2) Warm booting: when the operating system alone is restarted (without being switched off) after a
system crash or 'freeze.'
Both types of booting clear out (for the time being) the bugs, bombs, memory conflicts, and other
idiosyncrasies of the operating system.
THE 6 STEPS OF LINUX BOOTING PROCESS
1. BIOS
• BIOS stands for Basic Input/Output System
• Performs some system integrity checks
• Searches, loads, and executes the boot loader
program.
• It looks for boot loader in floppy, cd-rom, or hard
drive.
• You can press a key (typically F12 of F2, but it
depends on your system) during the BIOS
startup to change the boot sequence.
• Once the boot loader program is detected and
loaded into the memory, BIOS gives the control
to it.
2. MASTER BOOT
• RECORD
So, (MBR)
in simple terms BIOS loads and
executes the MBR boot loader.
• It is located in the 1st sector of the
bootable disk. MBR is less than 512
bytes in size.
• This has three components 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.
• It contains information about GRUB .
• So, in simple terms MBR loads and
executes the GRUB boot loader.
3. Grand Unified Bootloader (GRUB)
• GRUB stands for Grand Unified
Bootloader.
• If you have multiple kernel images
installed on your system, you can
choose which one to be
executed.
• GRUB displays a splash screen, waits
for few seconds, if you don’t enter
anything, it loads the default kernel
image as specified in the grub
configuration file.
• GRUB has the knowledge of the
filesystem.
• So, in simple terms GRUB just
loads and executes Kernel and
initrd images.
4. KERNEL
This can be considered the heart of operating system responsible for handling all system
processes.