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

+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 

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...
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
 
ManageIQ - Sprint 236 Review - Slide Deck
ManageIQ - Sprint 236 Review - Slide DeckManageIQ - Sprint 236 Review - Slide Deck
ManageIQ - Sprint 236 Review - Slide Deck
 
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-...
 
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfAzure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
 
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
 
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
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
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
 
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
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 

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