SlideShare a Scribd company logo
1 of 7
Booting Sequence Of Linux
Linux Booting sequence completes in 5
steps
BIOS Initialization
 When the machine is power on. The system firmware runs
POST.
 Firmware Are of two type
 UEFI (Unified Extensible Firmware Interface)
 BIOS (Basic Input Output System)
 POST stands for Power on self test. It is a 2 volt signal use to
test hardware devices connected into machine.
MBR (Master Boot Record)
 After the successful completion of POST the Firmware searches a bootable
device by searching MBR (Master Boot Record) for loading boot loader.
Master Boot Record (MBR) is the first 512 bytes of the boot drive that is read into
memory by the BIOS.
MBR is less than 512 bytes in size. This has three components
primary boot loader info in 1st 446 bytes.
partition table info in next 64 bytes.
MBR validation check in last 2 bytes.
Bootloader
Boot Loader is a program which contains the information about the
operating system.
The default bootloader program used on RHEL 7 is GRUB 2. GRUB stands
for GRand Unified Bootloader. GRUB 2 replaces the older GRUB
bootloader also called as legacy GRUB. The GRUB 2 configuration file is
/boot/grub2/grub.cfg. This file can configure by using grub2-mkconfig
command. This command executes the scripts from /etc/grub.d/ folder.
GRUB 2 menu-configuration settings are taken from /etc/default/grub
when generating grub.cfg.
GRUB2 searches the compressed kernel image file also called as vmlinuz in
the /boot directory.
Kernel Initialization
 Bootloader loads the vmlinuz kernel image file into memory and extracts the contents of the
initramfs image file into a temporary, memory-based file system (tmpfs).
 The initial RAM disk (initrd) is an initial root file system that is mounted before the real root file
system.
 Initramfs contains the information of kernel modules.
 The job of the initial RAM file system is to preload the block device modules, such as for IDE, SCSI, or
RAID, so that the root file system, on which those modules normally reside, can then be accessed
and mounted.
 Then the kernel initializes all the hardware for which it can find the drivers in the initramfs, then
executes /sbin/init from the initramfs as PID 1 in Redhat 7 the initramfs contains a working copy of
systemd as /sbin/init, as well as a udev daemons.
 The initramfs is bound to the kernel and the kernel mounts this initramfs as part of a two-stage boot
process.
 The dracut utility creates initramfs whenever a new kernel is installed.
 Use the lsinitrd command to view the contents of the image created by Dracut. /etc/dracut.conf
Systemd
The systemd instance from the initramfs all units for the initrd.target
and mounting the actual root file system on /sysroot.
Configured using: /etc/fstab
The kernel root file system is switched from the initramfs root file
system to the system root file system mounted on /sysroot.systemd.
Systemd looks for the default target, either passed in from the kernel
command line or configured on the system.
Configured using: etc/systemd/system/default.target ,/etc/systemd/system/

More Related Content

What's hot

Linux booting procedure
Linux booting procedureLinux booting procedure
Linux booting procedure
Dhaval Kaneria
 
Boot process -test
Boot process -testBoot process -test
Boot process -test
Hari Shankar
 

What's hot (20)

Linux installation and booting process
Linux installation and booting processLinux installation and booting process
Linux installation and booting process
 
Basics of boot-loader
Basics of boot-loaderBasics of boot-loader
Basics of boot-loader
 
Linux booting process!!
Linux booting process!!Linux booting process!!
Linux booting process!!
 
Linux booting process - Linux System Administration
Linux booting process - Linux System AdministrationLinux booting process - Linux System Administration
Linux booting process - Linux System Administration
 
System Booting Process overview
System Booting Process overviewSystem Booting Process overview
System Booting Process overview
 
Linux booting procedure
Linux booting procedureLinux booting procedure
Linux booting procedure
 
Code4vn - Linux day - linux boot process
Code4vn - Linux day - linux boot processCode4vn - Linux day - linux boot process
Code4vn - Linux day - linux boot process
 
Booting of Computer System
Booting of Computer SystemBooting of Computer System
Booting of Computer System
 
Linux Booting Steps
Linux Booting StepsLinux Booting Steps
Linux Booting Steps
 
Ch 2
Ch 2Ch 2
Ch 2
 
An Insight into the Linux Booting Process
An Insight into the Linux Booting ProcessAn Insight into the Linux Booting Process
An Insight into the Linux Booting Process
 
Booting & shut down,
Booting & shut down,Booting & shut down,
Booting & shut down,
 
Linux booting procedure
Linux booting procedureLinux booting procedure
Linux booting procedure
 
Boot process -test
Boot process -testBoot process -test
Boot process -test
 
Booting Process OS
Booting Process OSBooting Process OS
Booting Process OS
 
Linux Booting Process
Linux Booting ProcessLinux Booting Process
Linux Booting Process
 
Linux Boot Process
Linux Boot ProcessLinux Boot Process
Linux Boot Process
 
Description of GRUB 2
Description of GRUB 2Description of GRUB 2
Description of GRUB 2
 
Booting
BootingBooting
Booting
 
Booting
BootingBooting
Booting
 

Similar to Linux booting sequence

6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot process
Teja Bheemanapally
 
Windows booting
Windows bootingWindows booting
Windows booting
girish1993
 

Similar to Linux booting sequence (20)

Order of boot process in Linux
Order of boot process in LinuxOrder of boot process in Linux
Order of boot process in Linux
 
6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot process
 
Linux boot process
Linux boot processLinux boot process
Linux boot process
 
Linux boot process
Linux boot processLinux boot process
Linux boot process
 
101 1.2 boot the system
101 1.2 boot the system101 1.2 boot the system
101 1.2 boot the system
 
linux boot process ,kernal and file system
linux boot process ,kernal and file systemlinux boot process ,kernal and file system
linux boot process ,kernal and file system
 
Bootloaders (U-Boot)
Bootloaders (U-Boot) Bootloaders (U-Boot)
Bootloaders (U-Boot)
 
How to build and load linux to embedded system
How to build and load linux to embedded systemHow to build and load linux to embedded system
How to build and load linux to embedded system
 
6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot process
 
Grub and dracut ii
Grub and dracut iiGrub and dracut ii
Grub and dracut ii
 
Introduction to Operating Systems.pptx
Introduction to Operating Systems.pptxIntroduction to Operating Systems.pptx
Introduction to Operating Systems.pptx
 
Linux boot process – explained
Linux boot process – explainedLinux boot process – explained
Linux boot process – explained
 
Ch04 system administration
Ch04 system administration Ch04 system administration
Ch04 system administration
 
Ch04
Ch04Ch04
Ch04
 
Booting
BootingBooting
Booting
 
Windows booting
Windows bootingWindows booting
Windows booting
 
motherboard.pptx
motherboard.pptxmotherboard.pptx
motherboard.pptx
 
Linux booting Process
Linux booting ProcessLinux booting Process
Linux booting Process
 
Rhel 7/CentOS 7 boot process
Rhel 7/CentOS 7 boot processRhel 7/CentOS 7 boot process
Rhel 7/CentOS 7 boot process
 
Linux basics
Linux basics Linux basics
Linux basics
 

Recently uploaded

Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 

Recently uploaded (20)

Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
Economic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food AdditivesEconomic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food Additives
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of Play
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Introduction to TechSoup’s Digital Marketing Services and Use Cases
Introduction to TechSoup’s Digital Marketing  Services and Use CasesIntroduction to TechSoup’s Digital Marketing  Services and Use Cases
Introduction to TechSoup’s Digital Marketing Services and Use Cases
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 

Linux booting sequence

  • 2. Linux Booting sequence completes in 5 steps
  • 3. BIOS Initialization  When the machine is power on. The system firmware runs POST.  Firmware Are of two type  UEFI (Unified Extensible Firmware Interface)  BIOS (Basic Input Output System)  POST stands for Power on self test. It is a 2 volt signal use to test hardware devices connected into machine.
  • 4. MBR (Master Boot Record)  After the successful completion of POST the Firmware searches a bootable device by searching MBR (Master Boot Record) for loading boot loader. Master Boot Record (MBR) is the first 512 bytes of the boot drive that is read into memory by the BIOS. MBR is less than 512 bytes in size. This has three components primary boot loader info in 1st 446 bytes. partition table info in next 64 bytes. MBR validation check in last 2 bytes.
  • 5. Bootloader Boot Loader is a program which contains the information about the operating system. The default bootloader program used on RHEL 7 is GRUB 2. GRUB stands for GRand Unified Bootloader. GRUB 2 replaces the older GRUB bootloader also called as legacy GRUB. The GRUB 2 configuration file is /boot/grub2/grub.cfg. This file can configure by using grub2-mkconfig command. This command executes the scripts from /etc/grub.d/ folder. GRUB 2 menu-configuration settings are taken from /etc/default/grub when generating grub.cfg. GRUB2 searches the compressed kernel image file also called as vmlinuz in the /boot directory.
  • 6. Kernel Initialization  Bootloader loads the vmlinuz kernel image file into memory and extracts the contents of the initramfs image file into a temporary, memory-based file system (tmpfs).  The initial RAM disk (initrd) is an initial root file system that is mounted before the real root file system.  Initramfs contains the information of kernel modules.  The job of the initial RAM file system is to preload the block device modules, such as for IDE, SCSI, or RAID, so that the root file system, on which those modules normally reside, can then be accessed and mounted.  Then the kernel initializes all the hardware for which it can find the drivers in the initramfs, then executes /sbin/init from the initramfs as PID 1 in Redhat 7 the initramfs contains a working copy of systemd as /sbin/init, as well as a udev daemons.  The initramfs is bound to the kernel and the kernel mounts this initramfs as part of a two-stage boot process.  The dracut utility creates initramfs whenever a new kernel is installed.  Use the lsinitrd command to view the contents of the image created by Dracut. /etc/dracut.conf
  • 7. Systemd The systemd instance from the initramfs all units for the initrd.target and mounting the actual root file system on /sysroot. Configured using: /etc/fstab The kernel root file system is switched from the initramfs root file system to the system root file system mounted on /sysroot.systemd. Systemd looks for the default target, either passed in from the kernel command line or configured on the system. Configured using: etc/systemd/system/default.target ,/etc/systemd/system/