SlideShare a Scribd company logo
Linux Booting Process
chandrashekarbs.1985@gmail.com
BIOS
MBR
Bootloader
Kernel
Init
Runlevel
6 Stages of Booting
BIOS(Basic Input/Output System)
Integrity checks.
Searches, loads and executes the boot loader.
Looks for boot loader in cd-rom, or hard
drive(Depending on the BIOS settings).
Once the boot loader program is detected and
loaded into the memory, BIOS gives the control to
MBR bootloader.
BIOS loads and executes the MBR boot loader.
MBR(Master Boot Record)
Located in 1st sector of the bootable disk
512 bytes in size (Bootloader info + Partition table info+ validation check).Loads and Executes
Bootloader
Bootloader (GRUB)
Grand Unified Bootloader.
Displays a splash screen.Loads kernel image specified in
grub configuration file.
Grub configuration file is /boot/grub/grub.conf sample
grub.conf of my CentOS.
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-194.el5PAE)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-194.el5PAE ro
root=LABEL=/
initrd /boot/initrd-2.6.18-194.el5PAE.img
Kernel
Decompressing the kernel image done by
<kernel_source>/arch/i386/boot/compressed/head
.S
Initialise segment values (%ds = %es = %fs =
%gs = __KERNEL_DS = 0x18).
Minimum memory management:Initialise page
tables and enable paging.
Copy kernel commandline params(2k).
Call start_kernel()
Kernel (Continued...)
Call mem_init():calculates max_mapnr, totalram_pages
and high_memory and prints out the "Memory: ..." line.
kmem_cache_sizes_init(), finish slab allocator
initialisation.Initialise data structures used by procfs.
fork_init()
Create various slab caches needed for VFS, VM, buffer
cache, etc.
If quota support is compiled into the kernel, create and
initialise a special slab cache for it.
Perform arch-specific "check for bugs"
Kernel (Continued...)
Create a kernel thread init() which execs
execute_command if supplied via "init=" boot parameter
or exec /sbin/init, /etc/init, /bin/init, /bin/sh.
Go into the idle loop, this is an idle thread with pid=0
Init
Looks at the /etc/inittab file to decide the Linux
run level.
Init identifies the default initlevel from /etc/inittab
and uses that to load all appropriate program.
Execute ‘grep initdefault /etc/inittab’ on your
system to identify the default run level
Typically you would set the default run level to
either 3 or 5.
Runlevel
Depending on default init level setting, the system will
execute the programs from one of the following directories.
Run level 0 – /etc/rc.d/rc0.d/
Run level 1 – /etc/rc.d/rc1.d/
.
.
.
Run level 6 – /etc/rc.d/rc6.d/
Under the /etc/rc.d/rc*.d/ directories, programs that start with
S and K.
Programs starts with S are used during startup. S for startup.
Programs starts with K are used during shutdown. K for kill.
Contact details:
chandrashekarbs.1985@gmail.com
OR
http://in.linkedin.com/in/chandrashekarbs2acceleration2d

More Related Content

PPT
Linux booting procedure
DOCX
6 stages of linux boot process
PPTX
Linux booting Process
PPTX
Code4vn - Linux day - linux boot process
PPTX
Linux booting process
PDF
Linux : Booting and runlevels
PDF
Linux booting procedure
DOCX
6 stages of linux boot process
Linux booting procedure
6 stages of linux boot process
Linux booting Process
Code4vn - Linux day - linux boot process
Linux booting process
Linux : Booting and runlevels
Linux booting procedure
6 stages of linux boot process

What's hot (20)

ODP
Description of GRUB 2
PDF
Ubuntu初體驗:脫離邪惡微軟帝國吧!_150606
PDF
Linux boot process
PDF
Grub2 Booting Process
PPTX
System Booting Process overview
PPTX
Linux Boot Process
PPTX
An Insight into the Linux Booting Process
PPTX
Linux booting process - Linux System Administration
ODP
Linux boot process
PPTX
Booting Process OS
PPTX
PPTX
Linux booting sequence
DOC
6 stages of linux boot process
PDF
Troubleshooting linux booting process
ODP
5. boot process
PPT
Booting
PPTX
Bootloader and bootloading
PPTX
Linux booting process!!
PPTX
Boot process
PPTX
BOOTABLE OPERATING SYSTEM PPT
Description of GRUB 2
Ubuntu初體驗:脫離邪惡微軟帝國吧!_150606
Linux boot process
Grub2 Booting Process
System Booting Process overview
Linux Boot Process
An Insight into the Linux Booting Process
Linux booting process - Linux System Administration
Linux boot process
Booting Process OS
Linux booting sequence
6 stages of linux boot process
Troubleshooting linux booting process
5. boot process
Booting
Bootloader and bootloading
Linux booting process!!
Boot process
BOOTABLE OPERATING SYSTEM PPT
Ad

Viewers also liked (18)

DOCX
PDF
Webcome digital
PDF
Liquid Lab Visual Strategy
PPTX
Introduction to windows kernel
PPTX
Window IO
PDF
Modernizing Data Quality & Governance: Unlocking Performance & Reducing Risk
PPT
Windows io manager
PDF
Những bài học từ ca dao
DOC
CV WEN WEN
PPT
Guide to Windows 7 - Managing File Systems
DOCX
Difference between various operating systems on the basis of single user ,mul...
PPTX
[Business Plan] PT Artoncode Indonesia May 2016
PPTX
Booting of Computer System
PPTX
Window architecture
PPT
Windows Architecture
PPTX
Windows vs linux prsentsn
PPT
Linux Booting Steps
Webcome digital
Liquid Lab Visual Strategy
Introduction to windows kernel
Window IO
Modernizing Data Quality & Governance: Unlocking Performance & Reducing Risk
Windows io manager
Những bài học từ ca dao
CV WEN WEN
Guide to Windows 7 - Managing File Systems
Difference between various operating systems on the basis of single user ,mul...
[Business Plan] PT Artoncode Indonesia May 2016
Booting of Computer System
Window architecture
Windows Architecture
Windows vs linux prsentsn
Linux Booting Steps
Ad

Similar to Linux boot process (20)

DOCX
6 stages of linux boot process
PPT
101 1.2 boot the system
PPTX
Order of boot process in Linux
PDF
Linux boot process – explained
PPTX
Linux startup
PPT
Linux Booting Procedure system and networking.ppt
PPT
How to build and load linux to embedded system
PPT
Linux Booting Process
PPT
1.2 boot the system v2
PDF
Recipe of a linux Live CD (archived)
PPT
Ch04 system administration
PPTX
introduction to computer Linux essential.pptx
PDF
Understanding The Boot Process
PPTX
Introduction to Operating Systems.pptx
PPTX
Bootloaders (U-Boot)
PPT
101 1.2 boot the system
PDF
Beagleboard xm-setup
PPTX
Rhel 7/CentOS 7 boot process
PPSX
Linux booting process
6 stages of linux boot process
101 1.2 boot the system
Order of boot process in Linux
Linux boot process – explained
Linux startup
Linux Booting Procedure system and networking.ppt
How to build and load linux to embedded system
Linux Booting Process
1.2 boot the system v2
Recipe of a linux Live CD (archived)
Ch04 system administration
introduction to computer Linux essential.pptx
Understanding The Boot Process
Introduction to Operating Systems.pptx
Bootloaders (U-Boot)
101 1.2 boot the system
Beagleboard xm-setup
Rhel 7/CentOS 7 boot process
Linux booting process

Recently uploaded (20)

PDF
cuic standard and advanced reporting.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PPT
Teaching material agriculture food technology
PDF
Approach and Philosophy of On baking technology
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
Spectroscopy.pptx food analysis technology
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
cuic standard and advanced reporting.pdf
Empathic Computing: Creating Shared Understanding
Mobile App Security Testing_ A Comprehensive Guide.pdf
Spectral efficient network and resource selection model in 5G networks
Teaching material agriculture food technology
Approach and Philosophy of On baking technology
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Encapsulation_ Review paper, used for researhc scholars
20250228 LYD VKU AI Blended-Learning.pptx
The AUB Centre for AI in Media Proposal.docx
Reach Out and Touch Someone: Haptics and Empathic Computing
Per capita expenditure prediction using model stacking based on satellite ima...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Spectroscopy.pptx food analysis technology
“AI and Expert System Decision Support & Business Intelligence Systems”
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Unlocking AI with Model Context Protocol (MCP)
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows

Linux boot process

  • 3. BIOS(Basic Input/Output System) Integrity checks. Searches, loads and executes the boot loader. Looks for boot loader in cd-rom, or hard drive(Depending on the BIOS settings). Once the boot loader program is detected and loaded into the memory, BIOS gives the control to MBR bootloader. BIOS loads and executes the MBR boot loader.
  • 4. MBR(Master Boot Record) Located in 1st sector of the bootable disk 512 bytes in size (Bootloader info + Partition table info+ validation check).Loads and Executes Bootloader
  • 5. Bootloader (GRUB) Grand Unified Bootloader. Displays a splash screen.Loads kernel image specified in grub configuration file. Grub configuration file is /boot/grub/grub.conf sample grub.conf of my CentOS. #boot=/dev/sda default=0 timeout=5 splashimage=(hd0,0)/boot/grub/splash.xpm.gz hiddenmenu title CentOS (2.6.18-194.el5PAE) root (hd0,0) kernel /boot/vmlinuz-2.6.18-194.el5PAE ro root=LABEL=/ initrd /boot/initrd-2.6.18-194.el5PAE.img
  • 6. Kernel Decompressing the kernel image done by <kernel_source>/arch/i386/boot/compressed/head .S Initialise segment values (%ds = %es = %fs = %gs = __KERNEL_DS = 0x18). Minimum memory management:Initialise page tables and enable paging. Copy kernel commandline params(2k). Call start_kernel()
  • 7. Kernel (Continued...) Call mem_init():calculates max_mapnr, totalram_pages and high_memory and prints out the "Memory: ..." line. kmem_cache_sizes_init(), finish slab allocator initialisation.Initialise data structures used by procfs. fork_init() Create various slab caches needed for VFS, VM, buffer cache, etc. If quota support is compiled into the kernel, create and initialise a special slab cache for it. Perform arch-specific "check for bugs"
  • 8. Kernel (Continued...) Create a kernel thread init() which execs execute_command if supplied via "init=" boot parameter or exec /sbin/init, /etc/init, /bin/init, /bin/sh. Go into the idle loop, this is an idle thread with pid=0
  • 9. Init Looks at the /etc/inittab file to decide the Linux run level. Init identifies the default initlevel from /etc/inittab and uses that to load all appropriate program. Execute ‘grep initdefault /etc/inittab’ on your system to identify the default run level Typically you would set the default run level to either 3 or 5.
  • 10. Runlevel Depending on default init level setting, the system will execute the programs from one of the following directories. Run level 0 – /etc/rc.d/rc0.d/ Run level 1 – /etc/rc.d/rc1.d/ . . . Run level 6 – /etc/rc.d/rc6.d/ Under the /etc/rc.d/rc*.d/ directories, programs that start with S and K. Programs starts with S are used during startup. S for startup. Programs starts with K are used during shutdown. K for kill.