SlideShare a Scribd company logo
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

DOCX
6 stages of linux boot process
PDF
Grub2 Booting Process
PPTX
Linux startup
ODP
5. boot process
PPTX
Boot process
DOCX
6 stages of linux boot process
PDF
Understanding The Boot Process
PPTX
Bootloader and bootloading
6 stages of linux boot process
Grub2 Booting Process
Linux startup
5. boot process
Boot process
6 stages of linux boot process
Understanding The Boot Process
Bootloader and bootloading

What's hot (20)

PPT
Linux installation and booting process
ODP
Basics of boot-loader
PPTX
Linux booting process!!
PPTX
Linux booting process - Linux System Administration
PPTX
System Booting Process overview
PDF
Linux booting procedure
PPTX
Code4vn - Linux day - linux boot process
PPTX
Booting of Computer System
PPT
Linux Booting Steps
PPTX
PPTX
An Insight into the Linux Booting Process
PDF
Booting & shut down,
PPT
Linux booting procedure
PPTX
Boot process -test
PPTX
Booting Process OS
PPT
Linux Booting Process
PPTX
Linux Boot Process
ODP
Description of GRUB 2
PPT
Booting
Linux installation and booting process
Basics of boot-loader
Linux booting process!!
Linux booting process - Linux System Administration
System Booting Process overview
Linux booting procedure
Code4vn - Linux day - linux boot process
Booting of Computer System
Linux Booting Steps
An Insight into the Linux Booting Process
Booting & shut down,
Linux booting procedure
Boot process -test
Booting Process OS
Linux Booting Process
Linux Boot Process
Description of GRUB 2
Booting
Ad

Similar to Linux booting sequence (20)

PPTX
Order of boot process in Linux
PPT
Linux Booting Procedure system and networking.ppt
DOC
6 stages of linux boot process
PPTX
Linux boot process
ODP
Linux boot process
PPT
101 1.2 boot the system
PPTX
introduction to computer Linux essential.pptx
PPTX
linux boot process ,kernal and file system
PPTX
Bootloaders (U-Boot)
PPT
How to build and load linux to embedded system
DOCX
6 stages of linux boot process
ODP
Grub and dracut ii
PPTX
Introduction to Operating Systems.pptx
PDF
Linux boot process – explained
PPT
Ch04 system administration
PPT
DOCX
Windows booting
PPTX
motherboard.pptx
PPT
Operating systems, complete information.ppt
Order of boot process in Linux
Linux Booting Procedure system and networking.ppt
6 stages of linux boot process
Linux boot process
Linux boot process
101 1.2 boot the system
introduction to computer Linux essential.pptx
linux boot process ,kernal and file system
Bootloaders (U-Boot)
How to build and load linux to embedded system
6 stages of linux boot process
Grub and dracut ii
Introduction to Operating Systems.pptx
Linux boot process – explained
Ch04 system administration
Windows booting
motherboard.pptx
Operating systems, complete information.ppt
Ad

Recently uploaded (20)

PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
RMMM.pdf make it easy to upload and study
PPTX
Cell Types and Its function , kingdom of life
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Sports Quiz easy sports quiz sports quiz
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Computing-Curriculum for Schools in Ghana
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Cell Structure & Organelles in detailed.
PDF
Classroom Observation Tools for Teachers
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
01-Introduction-to-Information-Management.pdf
PPH.pptx obstetrics and gynecology in nursing
RMMM.pdf make it easy to upload and study
Cell Types and Its function , kingdom of life
Final Presentation General Medicine 03-08-2024.pptx
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Sports Quiz easy sports quiz sports quiz
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
human mycosis Human fungal infections are called human mycosis..pptx
STATICS OF THE RIGID BODIES Hibbelers.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Computing-Curriculum for Schools in Ghana
Microbial disease of the cardiovascular and lymphatic systems
Cell Structure & Organelles in detailed.
Classroom Observation Tools for Teachers
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
01-Introduction-to-Information-Management.pdf

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/