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

What's hot

Description of GRUB 2
Description of GRUB 2Description of GRUB 2
Description of GRUB 2
iamumr
 
Ubuntu初體驗:脫離邪惡微軟帝國吧!_150606
Ubuntu初體驗:脫離邪惡微軟帝國吧!_150606Ubuntu初體驗:脫離邪惡微軟帝國吧!_150606
Ubuntu初體驗:脫離邪惡微軟帝國吧!_150606
Eunice Lin
 
Linux boot process
Linux boot processLinux boot process
Linux boot process
Archana Chandrasekharan
 
Grub2 Booting Process
Grub2 Booting ProcessGrub2 Booting Process
Grub2 Booting Process
Mike Wang
 
System Booting Process overview
System Booting Process overviewSystem Booting Process overview
System Booting Process overview
RajKumar Rampelli
 
Linux Boot Process
Linux Boot ProcessLinux Boot Process
Linux Boot Process
darshhingu
 
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
Hardeep Bhurji
 
Linux booting process - Linux System Administration
Linux booting process - Linux System AdministrationLinux booting process - Linux System Administration
Linux booting process - Linux System Administration
Sreenatha Reddy K R
 
Linux boot process
Linux boot processLinux boot process
Linux boot process
brusnigin
 
Booting Process OS
Booting Process OSBooting Process OS
Booting Process OS
anilinvns
 
Linux booting sequence
Linux booting sequenceLinux booting sequence
Linux booting sequence
kuldeep singh shishodia
 
6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot process
sagarpdalvi
 
Troubleshooting linux booting process
Troubleshooting linux booting processTroubleshooting linux booting process
Troubleshooting linux booting process
Manolis Kartsonakis
 
Booting
BootingBooting
Booting
Ashish K
 
Bootloader and bootloading
Bootloader and bootloadingBootloader and bootloading
Bootloader and bootloadingArpita Gupta
 
Linux booting process!!
Linux booting process!!Linux booting process!!
Linux booting process!!
sourav verma
 
Boot process
Boot processBoot process
Boot process
Salman Memon
 
BOOTABLE OPERATING SYSTEM PPT
BOOTABLE OPERATING SYSTEM PPTBOOTABLE OPERATING SYSTEM PPT
BOOTABLE OPERATING SYSTEM PPT
Shahzeb Pirzada
 

What's hot (20)

Description of GRUB 2
Description of GRUB 2Description of GRUB 2
Description of GRUB 2
 
Ubuntu初體驗:脫離邪惡微軟帝國吧!_150606
Ubuntu初體驗:脫離邪惡微軟帝國吧!_150606Ubuntu初體驗:脫離邪惡微軟帝國吧!_150606
Ubuntu初體驗:脫離邪惡微軟帝國吧!_150606
 
Linux boot process
Linux boot processLinux boot process
Linux boot process
 
Grub2 Booting Process
Grub2 Booting ProcessGrub2 Booting Process
Grub2 Booting Process
 
System Booting Process overview
System Booting Process overviewSystem Booting Process overview
System Booting Process overview
 
Linux Boot Process
Linux Boot ProcessLinux Boot Process
Linux Boot Process
 
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
 
Linux booting process - Linux System Administration
Linux booting process - Linux System AdministrationLinux booting process - Linux System Administration
Linux booting process - Linux System Administration
 
Linux boot process
Linux boot processLinux boot process
Linux boot process
 
Booting Process OS
Booting Process OSBooting Process OS
Booting Process OS
 
Ch 2
Ch 2Ch 2
Ch 2
 
Linux booting sequence
Linux booting sequenceLinux booting sequence
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
 
Troubleshooting linux booting process
Troubleshooting linux booting processTroubleshooting linux booting process
Troubleshooting linux booting process
 
5. boot process
5. boot process5. boot process
5. boot process
 
Booting
BootingBooting
Booting
 
Bootloader and bootloading
Bootloader and bootloadingBootloader and bootloading
Bootloader and bootloading
 
Linux booting process!!
Linux booting process!!Linux booting process!!
Linux booting process!!
 
Boot process
Boot processBoot process
Boot process
 
BOOTABLE OPERATING SYSTEM PPT
BOOTABLE OPERATING SYSTEM PPTBOOTABLE OPERATING SYSTEM PPT
BOOTABLE OPERATING SYSTEM PPT
 

Viewers also liked

Ofi
OfiOfi
Webcome digital
Webcome digitalWebcome digital
Webcome digital
Webcome Digital
 
Liquid Lab Visual Strategy
Liquid Lab Visual StrategyLiquid Lab Visual Strategy
Liquid Lab Visual Strategy
Michael Burnett
 
Introduction to windows kernel
Introduction to windows kernelIntroduction to windows kernel
Introduction to windows kernelSisimon Soman
 
Window IO
Window IOWindow IO
Window IO
ramcse777
 
Modernizing Data Quality & Governance: Unlocking Performance & Reducing Risk
Modernizing Data Quality & Governance: Unlocking Performance & Reducing RiskModernizing Data Quality & Governance: Unlocking Performance & Reducing Risk
Modernizing Data Quality & Governance: Unlocking Performance & Reducing Risk
Worldwide Business Research
 
Những bài học từ ca dao
Những bài học từ ca daoNhững bài học từ ca dao
Những bài học từ ca dao
Little Daisy
 
Guide to Windows 7 - Managing File Systems
Guide to Windows 7 - Managing File SystemsGuide to Windows 7 - Managing File Systems
Guide to Windows 7 - Managing File Systems
Gene Carboni
 
Difference between various operating systems on the basis of single user ,mul...
Difference between various operating systems on the basis of single user ,mul...Difference between various operating systems on the basis of single user ,mul...
Difference between various operating systems on the basis of single user ,mul...Anu Garg
 
[Business Plan] PT Artoncode Indonesia May 2016
[Business Plan] PT Artoncode Indonesia May 2016 [Business Plan] PT Artoncode Indonesia May 2016
[Business Plan] PT Artoncode Indonesia May 2016
Marlin Sugama
 
Booting of Computer System
Booting of Computer SystemBooting of Computer System
Booting of Computer System
Arzath Areeff
 
Window architecture
Window architecture Window architecture
Window architecture
IGZ Software house
 
Windows Architecture
Windows ArchitectureWindows Architecture
Windows Architecture
Amrith Krishna
 
Windows vs linux prsentsn
Windows vs linux prsentsnWindows vs linux prsentsn
Windows vs linux prsentsn
Anadi Vatsa
 
Linux Booting Steps
Linux Booting StepsLinux Booting Steps
Linux Booting Steps
Anando Kumar Paul
 
windows vs Linux
windows vs Linuxwindows vs Linux

Viewers also liked (18)

Ofi
OfiOfi
Ofi
 
Webcome digital
Webcome digitalWebcome digital
Webcome digital
 
Liquid Lab Visual Strategy
Liquid Lab Visual StrategyLiquid Lab Visual Strategy
Liquid Lab Visual Strategy
 
Introduction to windows kernel
Introduction to windows kernelIntroduction to windows kernel
Introduction to windows kernel
 
Window IO
Window IOWindow IO
Window IO
 
Modernizing Data Quality & Governance: Unlocking Performance & Reducing Risk
Modernizing Data Quality & Governance: Unlocking Performance & Reducing RiskModernizing Data Quality & Governance: Unlocking Performance & Reducing Risk
Modernizing Data Quality & Governance: Unlocking Performance & Reducing Risk
 
Windows io manager
Windows io managerWindows io manager
Windows io manager
 
Những bài học từ ca dao
Những bài học từ ca daoNhững bài học từ ca dao
Những bài học từ ca dao
 
CV WEN WEN
CV WEN WENCV WEN WEN
CV WEN WEN
 
Guide to Windows 7 - Managing File Systems
Guide to Windows 7 - Managing File SystemsGuide to Windows 7 - Managing File Systems
Guide to Windows 7 - Managing File Systems
 
Difference between various operating systems on the basis of single user ,mul...
Difference between various operating systems on the basis of single user ,mul...Difference between various operating systems on the basis of single user ,mul...
Difference between various operating systems on the basis of single user ,mul...
 
[Business Plan] PT Artoncode Indonesia May 2016
[Business Plan] PT Artoncode Indonesia May 2016 [Business Plan] PT Artoncode Indonesia May 2016
[Business Plan] PT Artoncode Indonesia May 2016
 
Booting of Computer System
Booting of Computer SystemBooting of Computer System
Booting of Computer System
 
Window architecture
Window architecture Window architecture
Window architecture
 
Windows Architecture
Windows ArchitectureWindows Architecture
Windows Architecture
 
Windows vs linux prsentsn
Windows vs linux prsentsnWindows vs linux prsentsn
Windows vs linux prsentsn
 
Linux Booting Steps
Linux Booting StepsLinux Booting Steps
Linux Booting Steps
 
windows vs Linux
windows vs Linuxwindows vs Linux
windows vs Linux
 

Similar to Linux boot process

6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot processTeja Bheemanapally
 
Order of boot process in Linux
Order of boot process in LinuxOrder of boot process in Linux
Order of boot process in Linux
Siddhesh Palkar
 
Linux boot process – explained
Linux boot process – explainedLinux boot process – explained
Linux boot process – explained
LinuxConcept
 
Linux startup
Linux startupLinux startup
Linux startup
Amin Hashemi
 
Linux Booting Process
Linux Booting ProcessLinux Booting Process
Linux Booting Process
Rishabh5121993
 
1.2 boot the system v2
1.2 boot the system v21.2 boot the system v2
1.2 boot the system v2
Acácio Oliveira
 
Recipe of a linux Live CD (archived)
Recipe of a linux Live CD (archived)Recipe of a linux Live CD (archived)
Recipe of a linux Live CD (archived)
Bud Siddhisena
 
Understanding The Boot Process
Understanding The Boot ProcessUnderstanding The Boot Process
Understanding The Boot Process
Dominique Cimafranca
 
Introduction to Operating Systems.pptx
Introduction to Operating Systems.pptxIntroduction to Operating Systems.pptx
Introduction to Operating Systems.pptx
MohamedSaied877003
 
Bootloaders (U-Boot)
Bootloaders (U-Boot) Bootloaders (U-Boot)
Bootloaders (U-Boot)
Omkar Rane
 
101 1.2 boot the system
101 1.2 boot the system101 1.2 boot the system
101 1.2 boot the system
Acácio Oliveira
 
Beagleboard xm-setup
Beagleboard xm-setupBeagleboard xm-setup
Beagleboard xm-setup
Premjith Achemveettil
 
Rhel 7/CentOS 7 boot process
Rhel 7/CentOS 7 boot processRhel 7/CentOS 7 boot process
Rhel 7/CentOS 7 boot process
Nilesh Vaghela
 
Linux booting process
Linux booting processLinux booting process
Linux booting process
Prashant Hegde
 
Linux basics
Linux basics Linux basics
Linux basics
suniljosekerala
 
Linux kernel
Linux kernelLinux kernel

Similar to Linux boot process (20)

6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of 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
 
Order of boot process in Linux
Order of boot process in LinuxOrder of boot process in Linux
Order of boot process in Linux
 
Linux boot process – explained
Linux boot process – explainedLinux boot process – explained
Linux boot process – explained
 
Linux startup
Linux startupLinux startup
Linux startup
 
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
 
Linux Booting Process
Linux Booting ProcessLinux Booting Process
Linux Booting Process
 
1.2 boot the system v2
1.2 boot the system v21.2 boot the system v2
1.2 boot the system v2
 
Recipe of a linux Live CD (archived)
Recipe of a linux Live CD (archived)Recipe of a linux Live CD (archived)
Recipe of a linux Live CD (archived)
 
Ch04
Ch04Ch04
Ch04
 
Ch04 system administration
Ch04 system administration Ch04 system administration
Ch04 system administration
 
Understanding The Boot Process
Understanding The Boot ProcessUnderstanding The Boot Process
Understanding The Boot Process
 
Introduction to Operating Systems.pptx
Introduction to Operating Systems.pptxIntroduction to Operating Systems.pptx
Introduction to Operating Systems.pptx
 
Bootloaders (U-Boot)
Bootloaders (U-Boot) Bootloaders (U-Boot)
Bootloaders (U-Boot)
 
101 1.2 boot the system
101 1.2 boot the system101 1.2 boot the system
101 1.2 boot the system
 
Beagleboard xm-setup
Beagleboard xm-setupBeagleboard xm-setup
Beagleboard xm-setup
 
Rhel 7/CentOS 7 boot process
Rhel 7/CentOS 7 boot processRhel 7/CentOS 7 boot process
Rhel 7/CentOS 7 boot process
 
Linux booting process
Linux booting processLinux booting process
Linux booting process
 
Linux basics
Linux basics Linux basics
Linux basics
 
Linux kernel
Linux kernelLinux kernel
Linux kernel
 

Recently uploaded

FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 

Recently uploaded (20)

FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 

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.