SlideShare a Scribd company logo
1 of 12
BOOTING AND SHUTTING
DOWN
Amirhadad.ir
6 Stages of Linux Boot Process
BIOS stands for Basic Input/Output System
• Perf orms some syst em int egrit y checks
• Searches, loads, and execut es t he boot
loader program.
• I t looks f or boot loader in f loppy, CD-ROM,
or hard drive. You can press a key
(t ypically F12 of F2, but it depends on your
syst em) during t he BI OS st art up t o
change t he boot sequence.
• So, in simple t erms BI OS loads and
execut es t he MBR boot loader.
MBR stands for Master Boot Record.
• I t is locat ed in t he 1st sect or of t he
boot able disk. Typically / dev/ hda, or
/ dev/ sda
• MBR is less t han 512 byt es in size. This
has t hree component s 1) primary boot
loader inf o in 1st 446 byt es 2) part it ion
t able inf o in next 64 byt es 3) mbr
validat ion check in last 2 byt es.
• I t cont ains inf ormat ion about GRUB (or
LI LO in old syst ems)
MBR stands for Master Boot Record.
• Furt hermore, GRUB works in st ages.
• St age 1 is locat ed in t he MBR and mainly
point s t o St age 2, since t he MBR is t oo small
t o cont ain all of t he needed dat a.
• St age 2 point s t o it s conf igurat ion f ile,
which cont ains all of t he complex user
int erf ace and opt ions we are normally
f amiliar wit h when t alking about GRUB.
St age 2 can be locat ed anywhere on t he disk.
I f St age 2 cannot f ind it s conf igurat ion
GRUB “Grand Unified Bootloader”
GRUB “Grand Unified Bootloader”
• I f you have mult iple kernel images
inst alled on your syst em, you can choose
which one t o be execut ed.
• GRUB displays a splash screen, wait s f or
f ew seconds, if you don’t ent er anyt hing, it
loads t he def ault kernel image as specif ied
in t he grub conf igurat ion f ile.
• GRUB has t he knowledge of t he f ilesyst em
• Grub conf igurat ion f ile is
/ boot / grub/ grub.conf
GRUB “Grand Unified Bootloader”
GRUB “Grand Unified Bootloader”
GRUB “Grand Unified Bootloader”
• This is t he f irst operat ing syst em ent ry in t he
menu.
• t it le is as simple as it sounds. I t ' s merely a
st ring t hat ' s meant t o help t he user read t he
menu in human t erminology.
• root (hd0,2) t ells GRUB where it s conf igurat ion
f iles are locat ed. I n t his inst ance, t hey can be
f ound under (hd0,2)/ boot / grub.
• kernel / boot / vmlinuz-... boot s t he act ual kernel
image. There can be many such images available.
The f act t here is no device specif ied bef ore t he
/ boot / vmlinuz indicat es t he image is locat ed on
t he same part it ion as t he GRUB it self . This is
Linux and Unix shutdown command
• The shut down command br ings t he syst em
down in a secure way. All logged-in user s ar e
not if ied t hat t he syst em is going down, and
login operat ions ar e blocked. I t is possible t o
shut t he syst em down immediat ely, or af t er a
specif ied delay.
• All processes are f irst not if ied t hat t he
syst em is going down by t he signal SI GTERM.
This gives programs like vi t ime t o save t he
f ile being edit ed, mail and news pr ocessing
GOOD LUCK

More Related Content

What's hot

BIOS and Secure Boot Attacks Uncovered
BIOS and Secure Boot Attacks UncoveredBIOS and Secure Boot Attacks Uncovered
BIOS and Secure Boot Attacks Uncovered
Alex Matrosov
 
Embedded_Linux_Booting
Embedded_Linux_BootingEmbedded_Linux_Booting
Embedded_Linux_Booting
Rashila Rr
 
6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot process
Hari Shankar
 
Bootloader and bootloading
Bootloader and bootloadingBootloader and bootloading
Bootloader and bootloading
Arpita Gupta
 

What's hot (20)

Basics of boot-loader
Basics of boot-loaderBasics of boot-loader
Basics of boot-loader
 
BIOS and Secure Boot Attacks Uncovered
BIOS and Secure Boot Attacks UncoveredBIOS and Secure Boot Attacks Uncovered
BIOS and Secure Boot Attacks Uncovered
 
Embedded_Linux_Booting
Embedded_Linux_BootingEmbedded_Linux_Booting
Embedded_Linux_Booting
 
Comparison between grub-legacy ,lilo and grub -2
Comparison between grub-legacy ,lilo and grub -2Comparison between grub-legacy ,lilo and grub -2
Comparison between grub-legacy ,lilo and grub -2
 
Understanding The Boot Process
Understanding The Boot ProcessUnderstanding The Boot Process
Understanding The Boot Process
 
Linux booting sequence
Linux booting sequenceLinux booting sequence
Linux booting sequence
 
Boot process
Boot processBoot process
Boot process
 
20130729 advantech bios-training
20130729 advantech bios-training20130729 advantech bios-training
20130729 advantech bios-training
 
BIOS/UEFI
BIOS/UEFIBIOS/UEFI
BIOS/UEFI
 
Uefi and bios
Uefi and biosUefi and bios
Uefi and bios
 
BOOTABLE OPERATING SYSTEM PPT
BOOTABLE OPERATING SYSTEM PPTBOOTABLE OPERATING SYSTEM PPT
BOOTABLE OPERATING SYSTEM PPT
 
System Booting Process overview
System Booting Process overviewSystem Booting Process overview
System Booting Process overview
 
Booting & shut down,
Booting & shut down,Booting & shut down,
Booting & shut down,
 
Ch 2
Ch 2Ch 2
Ch 2
 
BIOS basic input output system
BIOS basic input output systemBIOS basic input output system
BIOS basic input output system
 
Review paper on bios vs uefi
Review  paper on bios vs uefiReview  paper on bios vs uefi
Review paper on bios vs uefi
 
6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot process
 
Making your own bootloader
Making your own bootloaderMaking your own bootloader
Making your own bootloader
 
Bootloader and bootloading
Bootloader and bootloadingBootloader and bootloading
Bootloader and bootloading
 
Booting of Computer System
Booting of Computer SystemBooting of Computer System
Booting of Computer System
 

Viewers also liked (7)

UEFI presentation
UEFI presentationUEFI presentation
UEFI presentation
 
Bios uefi y legacy
Bios uefi y legacyBios uefi y legacy
Bios uefi y legacy
 
UEFI Spec Version 2.4 Facilitates Secure Update
UEFI Spec Version 2.4 Facilitates Secure UpdateUEFI Spec Version 2.4 Facilitates Secure Update
UEFI Spec Version 2.4 Facilitates Secure Update
 
Unified Extensible Firmware Interface (UEFI)
Unified Extensible Firmware Interface (UEFI)Unified Extensible Firmware Interface (UEFI)
Unified Extensible Firmware Interface (UEFI)
 
Implementing a UEFI BIOS into an Embedded System
Implementing a UEFI BIOS into an Embedded SystemImplementing a UEFI BIOS into an Embedded System
Implementing a UEFI BIOS into an Embedded System
 
Real time Operating System
Real time Operating SystemReal time Operating System
Real time Operating System
 
Real Time OS For Embedded Systems
Real Time OS For Embedded SystemsReal Time OS For Embedded Systems
Real Time OS For Embedded Systems
 

Similar to Grub

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
 
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
 

Similar to Grub (20)

Linux booting Process
Linux booting ProcessLinux booting Process
Linux booting Process
 
Grub and dracut ii
Grub and dracut iiGrub and dracut ii
Grub and dracut ii
 
Order of boot process in Linux
Order of boot process in LinuxOrder of boot process in Linux
Order of boot process in Linux
 
Linux booting process
Linux booting processLinux booting process
Linux booting process
 
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
 
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
 
Unit 4 booting & shut down
Unit 4 booting & shut downUnit 4 booting & shut down
Unit 4 booting & shut down
 
Linux Booting Process
Linux Booting ProcessLinux Booting Process
Linux Booting Process
 
Crafting GNU/ linux distributions for embedded target using Builroot
Crafting GNU/ linux distributions for embedded target using BuilrootCrafting GNU/ linux distributions for embedded target using Builroot
Crafting GNU/ linux distributions for embedded target using Builroot
 
6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of 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 process
 
Life Preserver - AsiaBSDCon2014
Life Preserver - AsiaBSDCon2014Life Preserver - AsiaBSDCon2014
Life Preserver - AsiaBSDCon2014
 
Linux basics 1/2
Linux basics 1/2Linux basics 1/2
Linux basics 1/2
 
Linux boot process
Linux boot processLinux boot process
Linux boot process
 
Linux Boot Process
Linux Boot ProcessLinux Boot Process
Linux Boot Process
 
Bringing up Android on your favorite X86 Workstation or VM (AnDevCon Boston, ...
Bringing up Android on your favorite X86 Workstation or VM (AnDevCon Boston, ...Bringing up Android on your favorite X86 Workstation or VM (AnDevCon Boston, ...
Bringing up Android on your favorite X86 Workstation or VM (AnDevCon Boston, ...
 
1.2 boot the system v2
1.2 boot the system v21.2 boot the system v2
1.2 boot the system v2
 
101 1.2 boot the system
101 1.2 boot the system101 1.2 boot the system
101 1.2 boot the system
 
Booting
BootingBooting
Booting
 

Recently uploaded

CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
anilsa9823
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
anilsa9823
 

Recently uploaded (20)

W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 

Grub

  • 2. 6 Stages of Linux Boot Process
  • 3. BIOS stands for Basic Input/Output System • Perf orms some syst em int egrit y checks • Searches, loads, and execut es t he boot loader program. • I t looks f or boot loader in f loppy, CD-ROM, or hard drive. You can press a key (t ypically F12 of F2, but it depends on your syst em) during t he BI OS st art up t o change t he boot sequence. • So, in simple t erms BI OS loads and execut es t he MBR boot loader.
  • 4. MBR stands for Master Boot Record. • I t is locat ed in t he 1st sect or of t he boot able disk. Typically / dev/ hda, or / dev/ sda • MBR is less t han 512 byt es in size. This has t hree component s 1) primary boot loader inf o in 1st 446 byt es 2) part it ion t able inf o in next 64 byt es 3) mbr validat ion check in last 2 byt es. • I t cont ains inf ormat ion about GRUB (or LI LO in old syst ems)
  • 5. MBR stands for Master Boot Record.
  • 6. • Furt hermore, GRUB works in st ages. • St age 1 is locat ed in t he MBR and mainly point s t o St age 2, since t he MBR is t oo small t o cont ain all of t he needed dat a. • St age 2 point s t o it s conf igurat ion f ile, which cont ains all of t he complex user int erf ace and opt ions we are normally f amiliar wit h when t alking about GRUB. St age 2 can be locat ed anywhere on t he disk. I f St age 2 cannot f ind it s conf igurat ion GRUB “Grand Unified Bootloader”
  • 7. GRUB “Grand Unified Bootloader” • I f you have mult iple kernel images inst alled on your syst em, you can choose which one t o be execut ed. • GRUB displays a splash screen, wait s f or f ew seconds, if you don’t ent er anyt hing, it loads t he def ault kernel image as specif ied in t he grub conf igurat ion f ile. • GRUB has t he knowledge of t he f ilesyst em • Grub conf igurat ion f ile is / boot / grub/ grub.conf
  • 8. GRUB “Grand Unified Bootloader”
  • 9. GRUB “Grand Unified Bootloader”
  • 10. GRUB “Grand Unified Bootloader” • This is t he f irst operat ing syst em ent ry in t he menu. • t it le is as simple as it sounds. I t ' s merely a st ring t hat ' s meant t o help t he user read t he menu in human t erminology. • root (hd0,2) t ells GRUB where it s conf igurat ion f iles are locat ed. I n t his inst ance, t hey can be f ound under (hd0,2)/ boot / grub. • kernel / boot / vmlinuz-... boot s t he act ual kernel image. There can be many such images available. The f act t here is no device specif ied bef ore t he / boot / vmlinuz indicat es t he image is locat ed on t he same part it ion as t he GRUB it self . This is
  • 11. Linux and Unix shutdown command • The shut down command br ings t he syst em down in a secure way. All logged-in user s ar e not if ied t hat t he syst em is going down, and login operat ions ar e blocked. I t is possible t o shut t he syst em down immediat ely, or af t er a specif ied delay. • All processes are f irst not if ied t hat t he syst em is going down by t he signal SI GTERM. This gives programs like vi t ime t o save t he f ile being edit ed, mail and news pr ocessing