SlideShare a Scribd company logo
1 of 17
5 – Boot process



Marian Marinov     Borislav Varadinov
CEO of 1H Ltd.   System Administrator
mm@1h.com             bobi [ at ] itp.bg
●   Local boot process
    –   HDD
    –   CD
    –   USB
●   Boot loaders
●   Remote booting
    –   With local drives
    –   Without local drives
➢ Hardware initialization
 ➢ Find all storage controllers
 ➢ Initialize all storage controllers
➢ BIOS storage search
 ➢ Depending on the BIOS boot priority list
  ➢ Hard Disks
  ➢ CD
  ➢ USB
  ➢ Floppy
  ➢ Network
●   Identify bootable device
●   Search for boot loader
●   Copy the loader into memory
➢ Search the first 1024 bytes
➢ If partition table is found, search for the first
PRIMARY partition marked as BOOT
➢ Search the first 1024 bytes of the partition
➢ Load the boot loader into memory
➢ Set the Instruction Pointer to the beginning of
the boot loader binary
Boot loaders


➢   LILO
➢   GRUB/GRUB2
➢   SYS/ISOLINUX
➢   uBoot
➢   PXElinux
Boot loaders
➢ LILO
 ➢ Direct block offset to the kernel
 ➢ The loader and its configuration is written
  directly in the MBR
 ➢ Support for serial console
 ➢ Kernel parameters prompt


      /etc/lilo.conf
      image = /boot/bzImage-3.8.2-terion
        root = /dev/sdb2
        label = Terion-3.8.2
        read-only
Boot loaders

➢ GRUB/GRUB2
 ➢ Only the base loader data is written in the
  MBR, everything else is read from the device
 ➢ Dynamic configuration
 ➢ Shell like command prompt
 ➢ Support for serial console
 ➢ Support network loading of binaries
Boot loaders


➢ GRUB
/boot/grub/menu.lst
title CentOS (2.6.32-279.14.1.el6.x86_64)
       root (hd0,1)
       kernel /vmlinuz-2.6.32-279.14.1.el6.x86_64 ro root=/dev/sda4
crashkernel=auto SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8
KEYTABLE=us
       initrd /initramfs-2.6.32-279.14.1.el6.x86_64.img
Boot loaders
➢ GRUB2
menuentry 'Fedora (3.7.6-201.fc18.i686)' --class fedora --class gnu-linux --class gnu
--class os {
       load_video
       set gfxpayload=keep
       insmod gzio
       insmod part_msdos
       insmod ext2
       set root='(hd0,msdos5)'
       search --no-floppy --fs-uuid --set=root f098d5f7-abf7-4161-966b-
b265c6179abe
       echo 'Loading Fedora (3.7.6-201.fc18.i686)'
       linux /vmlinuz-3.7.6-201.fc18.i686 root=UUID=c567e7ef-eb7e-4ced-8c21-
64d1075eb72e ro rd.md=0 rd.lvm=0 rd.dm=0 KEYTABLE=us quiet
SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 LANG=en_US.UTF-8
       echo 'Loading initial ramdisk ...'
       initrd /initramfs-3.7.6-201.fc18.i686.img
}
Boot loaders


➢ ISO/SYSLINUX
 ➢ Mainly used for live/install CD/USB
 ➢ Static configuration
 ➢ No command prompt
Boot loaders


➢ uBoot
 ➢ Developed entirely for embedded devices
 ➢ EVERYTHING embedded runs this
 ➢ Configuration similar to SYSLINUX
Network Boot

➢ Optional (boot)ROM
 ➢ Currently implemented directly in the BIOS
    on almost all new hardware

➢   With local storage
➢   Without local storage
Network Boot
                                                                 BIOS


DHCP Server                              Acquire IP address


              Load Network boot loader                        Optional ROM


TFTP Server



                                                              Boot loader

                                             Load OS Kernel




                                                                 Kernel
Boot process




http://academy.telerik.com/student-courses/software-technologies/os-windows-linux/
Beer time
Free Trainings @ Telerik Academy

   Operating Systems @ Telerik Academy
   http://telerikacademy.com/Courses/Courses/Details/35
 Telerik Software Academy

       academy.telerik.com
 Telerik Academy @ Facebook

       facebook.com/TelerikAcademy
 Telerik Software Academy Forums

       forums.academy.telerik.com

More Related Content

What's hot

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
 
Boot process -test
Boot process -testBoot process -test
Boot process -test
Hari Shankar
 
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
 
booting steps of a computer
booting steps of a computerbooting steps of a computer
booting steps of a computer
Anusha Babooa
 

What's hot (20)

6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot process
 
Bootloader and bootloading
Bootloader and bootloadingBootloader and bootloading
Bootloader and bootloading
 
Booting Process OS
Booting Process OSBooting Process OS
Booting Process OS
 
Boot process -test
Boot process -testBoot process -test
Boot process -test
 
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 booting process!!Linux booting process!!
Linux booting process!!
 
Linux startup
Linux startupLinux startup
Linux startup
 
bios booting process
bios booting processbios booting process
bios booting process
 
Linux Booting Process
Linux Booting ProcessLinux Booting Process
Linux Booting Process
 
Linux Booting Steps
Linux Booting StepsLinux Booting Steps
Linux Booting Steps
 
6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot process
 
boot
bootboot
boot
 
BOOTABLE OPERATING SYSTEM PPT
BOOTABLE OPERATING SYSTEM PPTBOOTABLE OPERATING SYSTEM PPT
BOOTABLE OPERATING SYSTEM PPT
 
Description of GRUB 2
Description of GRUB 2Description of GRUB 2
Description of GRUB 2
 
Linux installation and booting process
Linux installation and booting processLinux installation and booting process
Linux installation and booting process
 
Booting
BootingBooting
Booting
 
Booting and Start-up Sequence
Booting and Start-up SequenceBooting and Start-up Sequence
Booting and Start-up Sequence
 
Windows 10 Operating System
Windows 10 Operating SystemWindows 10 Operating System
Windows 10 Operating System
 
Linux booting sequence
Linux booting sequenceLinux booting sequence
Linux booting sequence
 
booting steps of a computer
booting steps of a computerbooting steps of a computer
booting steps of a computer
 

Viewers also liked (11)

Kernel I/O subsystem
Kernel I/O subsystemKernel I/O subsystem
Kernel I/O subsystem
 
Disk allocation methods
Disk allocation methodsDisk allocation methods
Disk allocation methods
 
Cpu registers
Cpu registersCpu registers
Cpu registers
 
Memory management
Memory managementMemory management
Memory management
 
Registers
RegistersRegisters
Registers
 
Docker allocating resources
Docker allocating resourcesDocker allocating resources
Docker allocating resources
 
Operating systems
Operating systemsOperating systems
Operating systems
 
Spring Boot with Quartz
Spring Boot with QuartzSpring Boot with Quartz
Spring Boot with Quartz
 
File access methods.54
File access methods.54File access methods.54
File access methods.54
 
File organization
File organizationFile organization
File organization
 
Boot process: BIOS vs UEFI
Boot process: BIOS vs UEFIBoot process: BIOS vs UEFI
Boot process: BIOS vs UEFI
 

Similar to 5. boot process

Hypervisor and VDI security
Hypervisor and VDI securityHypervisor and VDI security
Hypervisor and VDI security
Denis Gundarev
 
Linux booting procedure
Linux booting procedureLinux booting procedure
Linux booting procedure
Dhaval Kaneria
 
Bootkits: past, present & future
Bootkits: past, present & futureBootkits: past, present & future
Bootkits: past, present & future
Alex Matrosov
 

Similar to 5. boot process (20)

U-Boot Porting on New Hardware
U-Boot Porting on New HardwareU-Boot Porting on New Hardware
U-Boot Porting on New Hardware
 
Launch the First Process in Linux System
Launch the First Process in Linux SystemLaunch the First Process in Linux System
Launch the First Process in Linux System
 
A million ways to provision embedded linux devices
A million ways to provision embedded linux devicesA million ways to provision embedded linux devices
A million ways to provision embedded linux devices
 
Hypervisor and VDI security
Hypervisor and VDI securityHypervisor and VDI security
Hypervisor and VDI security
 
BeagleBoard-xM Booting Process
BeagleBoard-xM Booting ProcessBeagleBoard-xM Booting Process
BeagleBoard-xM 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
 
Getting started with LinuxBoot Firmware on AArch64 Server
Getting started with LinuxBoot Firmware on AArch64 Server Getting started with LinuxBoot Firmware on AArch64 Server
Getting started with LinuxBoot Firmware on AArch64 Server
 
Embedded Linux BSP Training (Intro)
Embedded Linux BSP Training (Intro)Embedded Linux BSP Training (Intro)
Embedded Linux BSP Training (Intro)
 
Bootloaders (U-Boot)
Bootloaders (U-Boot) Bootloaders (U-Boot)
Bootloaders (U-Boot)
 
BeagleBone Black Booting Process
BeagleBone Black Booting ProcessBeagleBone Black Booting Process
BeagleBone Black Booting Process
 
Linux booting procedure
Linux booting procedureLinux booting procedure
Linux booting procedure
 
Linux booting procedure
Linux booting procedureLinux booting procedure
Linux booting procedure
 
Linux kernel booting
Linux kernel bootingLinux kernel booting
Linux kernel booting
 
101 1.2 boot the system
101 1.2 boot the system101 1.2 boot the system
101 1.2 boot the system
 
Introduction to Modern U-Boot
Introduction to Modern U-BootIntroduction to Modern U-Boot
Introduction to Modern U-Boot
 
Bootkits: past, present & future
Bootkits: past, present & futureBootkits: past, present & future
Bootkits: past, present & future
 
Grub and dracut ii
Grub and dracut iiGrub and dracut ii
Grub and dracut ii
 
101 1.2 boot the system
101 1.2 boot the system101 1.2 boot the system
101 1.2 boot the system
 
Linux booting process, Dual booting, Components involved
Linux booting process, Dual booting, Components involvedLinux booting process, Dual booting, Components involved
Linux booting process, Dual booting, Components involved
 
File000124
File000124File000124
File000124
 

More from Marian Marinov

More from Marian Marinov (20)

Dev.bg DevOps March 2024 Monitoring & Logging
Dev.bg DevOps March 2024 Monitoring & LoggingDev.bg DevOps March 2024 Monitoring & Logging
Dev.bg DevOps March 2024 Monitoring & Logging
 
Basic presentation of cryptography mechanisms
Basic presentation of cryptography mechanismsBasic presentation of cryptography mechanisms
Basic presentation of cryptography mechanisms
 
Microservices: Benefits, drawbacks and are they for me?
Microservices: Benefits, drawbacks and are they for me?Microservices: Benefits, drawbacks and are they for me?
Microservices: Benefits, drawbacks and are they for me?
 
Introduction and replication to DragonflyDB
Introduction and replication to DragonflyDBIntroduction and replication to DragonflyDB
Introduction and replication to DragonflyDB
 
Message Queuing - Gearman, Mosquitto, Kafka and RabbitMQ
Message Queuing - Gearman, Mosquitto, Kafka and RabbitMQMessage Queuing - Gearman, Mosquitto, Kafka and RabbitMQ
Message Queuing - Gearman, Mosquitto, Kafka and RabbitMQ
 
How to successfully migrate to DevOps .pdf
How to successfully migrate to DevOps .pdfHow to successfully migrate to DevOps .pdf
How to successfully migrate to DevOps .pdf
 
How to survive in the work from home era
How to survive in the work from home eraHow to survive in the work from home era
How to survive in the work from home era
 
Managing sysadmins
Managing sysadminsManaging sysadmins
Managing sysadmins
 
Improve your storage with bcachefs
Improve your storage with bcachefsImprove your storage with bcachefs
Improve your storage with bcachefs
 
Control your service resources with systemd
 Control your service resources with systemd  Control your service resources with systemd
Control your service resources with systemd
 
Comparison of-foss-distributed-storage
Comparison of-foss-distributed-storageComparison of-foss-distributed-storage
Comparison of-foss-distributed-storage
 
Защо и как да обогатяваме знанията си?
Защо и как да обогатяваме знанията си?Защо и как да обогатяваме знанията си?
Защо и как да обогатяваме знанията си?
 
Securing your MySQL server
Securing your MySQL serverSecuring your MySQL server
Securing your MySQL server
 
Sysadmin vs. dev ops
Sysadmin vs. dev opsSysadmin vs. dev ops
Sysadmin vs. dev ops
 
DoS and DDoS mitigations with eBPF, XDP and DPDK
DoS and DDoS mitigations with eBPF, XDP and DPDKDoS and DDoS mitigations with eBPF, XDP and DPDK
DoS and DDoS mitigations with eBPF, XDP and DPDK
 
Challenges with high density networks
Challenges with high density networksChallenges with high density networks
Challenges with high density networks
 
SiteGround building automation
SiteGround building automationSiteGround building automation
SiteGround building automation
 
Preventing cpu side channel attacks with kernel tracking
Preventing cpu side channel attacks with kernel trackingPreventing cpu side channel attacks with kernel tracking
Preventing cpu side channel attacks with kernel tracking
 
Managing a lot of servers
Managing a lot of serversManaging a lot of servers
Managing a lot of servers
 
Let's Encrypt failures
Let's Encrypt failuresLet's Encrypt failures
Let's Encrypt failures
 

Recently uploaded

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Recently uploaded (20)

Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 

5. boot process

  • 1. 5 – Boot process Marian Marinov Borislav Varadinov CEO of 1H Ltd. System Administrator mm@1h.com bobi [ at ] itp.bg
  • 2. Local boot process – HDD – CD – USB ● Boot loaders ● Remote booting – With local drives – Without local drives
  • 3. ➢ Hardware initialization ➢ Find all storage controllers ➢ Initialize all storage controllers ➢ BIOS storage search ➢ Depending on the BIOS boot priority list ➢ Hard Disks ➢ CD ➢ USB ➢ Floppy ➢ Network
  • 4. Identify bootable device ● Search for boot loader ● Copy the loader into memory
  • 5. ➢ Search the first 1024 bytes ➢ If partition table is found, search for the first PRIMARY partition marked as BOOT ➢ Search the first 1024 bytes of the partition ➢ Load the boot loader into memory ➢ Set the Instruction Pointer to the beginning of the boot loader binary
  • 6. Boot loaders ➢ LILO ➢ GRUB/GRUB2 ➢ SYS/ISOLINUX ➢ uBoot ➢ PXElinux
  • 7. Boot loaders ➢ LILO ➢ Direct block offset to the kernel ➢ The loader and its configuration is written directly in the MBR ➢ Support for serial console ➢ Kernel parameters prompt /etc/lilo.conf image = /boot/bzImage-3.8.2-terion root = /dev/sdb2 label = Terion-3.8.2 read-only
  • 8. Boot loaders ➢ GRUB/GRUB2 ➢ Only the base loader data is written in the MBR, everything else is read from the device ➢ Dynamic configuration ➢ Shell like command prompt ➢ Support for serial console ➢ Support network loading of binaries
  • 9. Boot loaders ➢ GRUB /boot/grub/menu.lst title CentOS (2.6.32-279.14.1.el6.x86_64) root (hd0,1) kernel /vmlinuz-2.6.32-279.14.1.el6.x86_64 ro root=/dev/sda4 crashkernel=auto SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us initrd /initramfs-2.6.32-279.14.1.el6.x86_64.img
  • 10. Boot loaders ➢ GRUB2 menuentry 'Fedora (3.7.6-201.fc18.i686)' --class fedora --class gnu-linux --class gnu --class os { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos5)' search --no-floppy --fs-uuid --set=root f098d5f7-abf7-4161-966b- b265c6179abe echo 'Loading Fedora (3.7.6-201.fc18.i686)' linux /vmlinuz-3.7.6-201.fc18.i686 root=UUID=c567e7ef-eb7e-4ced-8c21- 64d1075eb72e ro rd.md=0 rd.lvm=0 rd.dm=0 KEYTABLE=us quiet SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 LANG=en_US.UTF-8 echo 'Loading initial ramdisk ...' initrd /initramfs-3.7.6-201.fc18.i686.img }
  • 11. Boot loaders ➢ ISO/SYSLINUX ➢ Mainly used for live/install CD/USB ➢ Static configuration ➢ No command prompt
  • 12. Boot loaders ➢ uBoot ➢ Developed entirely for embedded devices ➢ EVERYTHING embedded runs this ➢ Configuration similar to SYSLINUX
  • 13. Network Boot ➢ Optional (boot)ROM ➢ Currently implemented directly in the BIOS on almost all new hardware ➢ With local storage ➢ Without local storage
  • 14. Network Boot BIOS DHCP Server Acquire IP address Load Network boot loader Optional ROM TFTP Server Boot loader Load OS Kernel Kernel
  • 17. Free Trainings @ Telerik Academy  Operating Systems @ Telerik Academy  http://telerikacademy.com/Courses/Courses/Details/35  Telerik Software Academy  academy.telerik.com  Telerik Academy @ Facebook  facebook.com/TelerikAcademy  Telerik Software Academy Forums  forums.academy.telerik.com