SlideShare a Scribd company logo
Bootloader and bootloading
Bootloader and bootloading
Bootloader and bootloading
 Booting is a bootstrapping process that starts
operating systems when the user turns on a
computer system
 A boot sequence is the set of operations the
computer performs when it is switched on that load
an operating system
1. Turn on
2. CPU jump to address of BIOS (0xFFFF0)
3. BIOS runs POST (Power-On Self Test)
4. Find bootale devices
5. Loads and execute boot sector form MBR
6. Load OS
 BIOS refers to the software code run by a computer
when first powered on
 The primary function of BIOS is code program
embedded on a chip that recognizes and controls
various devices that make up the computer.
Bootloader and bootloading
 OS is booted from a hard disk, where the Master
Boot Record (MBR) contains the primary boot loader
 The MBR is a 512-byte sector, located in the first
sector on the disk (sector 1 of cylinder 0, head 0)
 After the MBR is loaded into RAM, the BIOS yields
control to it.
Bootloader and bootloading
 To see the contents of MBR, use this command:
 # dd if=/dev/hda of=mbr.bin bs=512 count=1
 # od -xa mbr.bin
Bootloader and bootloading
1. The BIOS finds a bootable device (hard disk) and
transfers control to the master boot record
2. The MBR contains GRUB stage 1. Given the small size of
the MBR, Stage 1 just load the next stage of GRUB
3. GRUB Stage 1.5 is located in the first 30 kilobytes of hard
disk immediately following the MBR. Stage 1.5 loads
Stage 2.
4. GRUB Stage 2 receives control, and displays to the user
the GRUB boot menu (where the user can manually
specify the boot parameters).
5. GRUB loads the user-selected (or default) kernel into
memory and passes control on to the kernel.
Bootloader and bootloading
 The kernel is the central part in most computer operating
systems because of its task, which is the management of the
system's resources and the communication between
hardware and software components
 Task of kernel
 Process management
 Memory management
 Device management
 System call
Bootloader and bootloading
The first thing the kernel does is to execute init
program
Init runs startup scripts (normal shell scripts) to
perform specific tasks, eg.
 Setting the hostname, time zone, etc
 Checking and mouting the disks etc
 The init process is identified by process id "1“
Init is responsible for starting system processes as
defined in the /etc/inittab file
Upon shutdown, init controls the sequence and
processes for shutdown
Inittab file
 The inittab file describes which processes are started at
bootup and during normal operation
 /etc/init.d/boot
 /etc/init.d/rc
 The computer will be booted to the runlevel as defined by
the initdefault directive in the /etc/inittab file
 id:5:initdefault:
 A runlevel is a software configuration of the system
which allows only a selected group of processes to
exist
 The processes spawned by init for each of these
runlevels are defined in the /etc/inittab file
 Init can be in one of eight runlevels: 0-6
 Depending on your 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 2 – /etc/rc.d/rc2.d/
 Run level 3 – /etc/rc.d/rc3.d/
 Run level 4 – /etc/rc.d/rc4.d/
 Run level 5 – /etc/rc.d/rc5.d/
 Run level 6 – /etc/rc.d/rc6.d/
Bootloader and bootloading
 Boot loader could be more aptly called the kernel loader.
The task at this stage is to load the Linux kernel
 GRUB and LILO are the most popular Linux boot loader.
 Other boot loader
Eg bootman
 LILO
 BootX
 Gujin
 loadlin etc
 GRUB is an operating system independant boot
loader
 Support multiple executable format
 GRUB version 1
 GRUB version 2
 Not depend on a specific file system
 Can boot from hard disk and floppy
 Up to 16 different images
 Must change LILO when kernel image file or config
file is changed
 LILO has no interactive command interface, whereas
GRUB does.
 LILO does not support booting from a
network, whereas GRUB does.
 LILO only loads linux and other boot loaders. and
GRUB loads a large number of OS's.
 Yet another way to boot Linux is
from DOS or Windows 9x, where the Linux kernel
completely replaces the running copy of this
operating system.
 This can be useful in the case of hardware which
needs to be switched on via software and for which
such configuration programs are only available for
DOS.
THANK YOU

More Related Content

What's hot (20)

PDF
Block Drivers
Anil Kumar Pugalia
 
PDF
BeagleBone Black: Platform Bring-Up with Upstream Components
GlobalLogic Ukraine
 
PDF
Arm device tree and linux device drivers
Houcheng Lin
 
PDF
Multi-signed Kernel Module
SUSE Labs Taipei
 
DOCX
6 stages of linux boot process
Teja Bheemanapally
 
PDF
Jagan Teki - U-boot from scratch
linuxlab_conf
 
PPT
Linux Booting Steps
Anando Kumar Paul
 
PPTX
Linux Boot Process
darshhingu
 
PDF
淺談探索 Linux 系統設計之道
National Cheng Kung University
 
PPTX
U-Boot presentation 2013
Wave Digitech
 
PPTX
Boot process
Salman Memon
 
PPT
U Boot or Universal Bootloader
Satpal Parmar
 
PDF
HKG15-311: OP-TEE for Beginners and Porting Review
Linaro
 
PDF
Linux Synchronization Mechanism: RCU (Read Copy Update)
Adrian Huang
 
PPTX
Linux Initialization Process (2)
shimosawa
 
PPTX
Linux Device Driver’s
Rashmi Warghade
 
PDF
Linux Porting
Champ Yen
 
PDF
Uboot startup sequence
Houcheng Lin
 
PDF
Kernel debug log and console on openSUSE
SUSE Labs Taipei
 
Block Drivers
Anil Kumar Pugalia
 
BeagleBone Black: Platform Bring-Up with Upstream Components
GlobalLogic Ukraine
 
Arm device tree and linux device drivers
Houcheng Lin
 
Multi-signed Kernel Module
SUSE Labs Taipei
 
6 stages of linux boot process
Teja Bheemanapally
 
Jagan Teki - U-boot from scratch
linuxlab_conf
 
Linux Booting Steps
Anando Kumar Paul
 
Linux Boot Process
darshhingu
 
淺談探索 Linux 系統設計之道
National Cheng Kung University
 
U-Boot presentation 2013
Wave Digitech
 
Boot process
Salman Memon
 
U Boot or Universal Bootloader
Satpal Parmar
 
HKG15-311: OP-TEE for Beginners and Porting Review
Linaro
 
Linux Synchronization Mechanism: RCU (Read Copy Update)
Adrian Huang
 
Linux Initialization Process (2)
shimosawa
 
Linux Device Driver’s
Rashmi Warghade
 
Linux Porting
Champ Yen
 
Uboot startup sequence
Houcheng Lin
 
Kernel debug log and console on openSUSE
SUSE Labs Taipei
 

Viewers also liked (20)

PPTX
Android Booting Sequence
Jayanta Ghoshal
 
PPT
Grub
Amir Hadad
 
PDF
Android for Embedded Linux Developers
Opersys inc.
 
PPTX
Critical section problem in operating system.
MOHIT DADU
 
PDF
Linux Basic Commands
Hanan Nmr
 
ODP
5. boot process
Marian Marinov
 
PPTX
The Boot Process
Amir Villas
 
PPT
Android booting sequece and setup and debugging
Utkarsh Mankad
 
PPTX
Booting of Computer System
Arzath Areeff
 
PDF
Porting Android
Opersys inc.
 
PDF
Hacking Android OS
Jimmy Software
 
PPTX
Booting Process OS
anilinvns
 
PDF
Android Internals
Opersys inc.
 
PPTX
Operating system critical section
Harshana Madusanka Jayamaha
 
PPT
Learning AOSP - Android Booting Process
Nanik Tolaram
 
PPT
Peterson Critical Section Problem Solution
Bipul Chandra Kar
 
PPTX
Apache JMeter - A brief introduction
silenceIT Inc.
 
Android Booting Sequence
Jayanta Ghoshal
 
Android for Embedded Linux Developers
Opersys inc.
 
Critical section problem in operating system.
MOHIT DADU
 
Linux Basic Commands
Hanan Nmr
 
5. boot process
Marian Marinov
 
The Boot Process
Amir Villas
 
Android booting sequece and setup and debugging
Utkarsh Mankad
 
Booting of Computer System
Arzath Areeff
 
Porting Android
Opersys inc.
 
Hacking Android OS
Jimmy Software
 
Booting Process OS
anilinvns
 
Android Internals
Opersys inc.
 
Operating system critical section
Harshana Madusanka Jayamaha
 
Learning AOSP - Android Booting Process
Nanik Tolaram
 
Peterson Critical Section Problem Solution
Bipul Chandra Kar
 
Apache JMeter - A brief introduction
silenceIT Inc.
 
Ad

Similar to Bootloader and bootloading (20)

PPT
Linux booting procedure
Dhaval Kaneria
 
PDF
Linux booting procedure
Dhaval Kaneria
 
DOCX
6 stages of linux boot process
Teja Bheemanapally
 
PPTX
Order of boot process in Linux
Siddhesh Palkar
 
DOCX
6 stages of linux boot process
Hari Shankar
 
PPTX
Linux booting process - Linux System Administration
Sreenatha Reddy K R
 
DOC
6 stages of linux boot process
sagarpdalvi
 
PPT
Linux Booting Procedure system and networking.ppt
ubaidullah75790
 
PDF
Linux boot process – explained
LinuxConcept
 
PPTX
An Insight into the Linux Booting Process
Hardeep Bhurji
 
PDF
Unit 4 booting & shut down
Bhushan Pawar -Java Trainer
 
PPTX
Linux startup
Amin Hashemi
 
PDF
Linux kernel booting
Ramin Farajpour Cami
 
PDF
Booting & shut down,
Bhushan Pawar -Java Trainer
 
PPT
Booting how boot to the system and details
MadniFareed1
 
PDF
Understanding The Boot Process
Dom Cimafranca
 
ODP
Grub and dracut ii
plarsen67
 
PPT
Ch04 system administration
Raja Waseem Akhtar
 
ODP
Linux boot process
brusnigin
 
Linux booting procedure
Dhaval Kaneria
 
Linux booting procedure
Dhaval Kaneria
 
6 stages of linux boot process
Teja Bheemanapally
 
Order of boot process in Linux
Siddhesh Palkar
 
6 stages of linux boot process
Hari Shankar
 
Linux booting process - Linux System Administration
Sreenatha Reddy K R
 
6 stages of linux boot process
sagarpdalvi
 
Linux Booting Procedure system and networking.ppt
ubaidullah75790
 
Linux boot process – explained
LinuxConcept
 
An Insight into the Linux Booting Process
Hardeep Bhurji
 
Unit 4 booting & shut down
Bhushan Pawar -Java Trainer
 
Linux startup
Amin Hashemi
 
Linux kernel booting
Ramin Farajpour Cami
 
Booting & shut down,
Bhushan Pawar -Java Trainer
 
Booting how boot to the system and details
MadniFareed1
 
Understanding The Boot Process
Dom Cimafranca
 
Grub and dracut ii
plarsen67
 
Ch04 system administration
Raja Waseem Akhtar
 
Linux boot process
brusnigin
 
Ad

Recently uploaded (20)

PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
July Patch Tuesday
Ivanti
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
July Patch Tuesday
Ivanti
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 

Bootloader and bootloading

  • 4.  Booting is a bootstrapping process that starts operating systems when the user turns on a computer system  A boot sequence is the set of operations the computer performs when it is switched on that load an operating system
  • 5. 1. Turn on 2. CPU jump to address of BIOS (0xFFFF0) 3. BIOS runs POST (Power-On Self Test) 4. Find bootale devices 5. Loads and execute boot sector form MBR 6. Load OS
  • 6.  BIOS refers to the software code run by a computer when first powered on  The primary function of BIOS is code program embedded on a chip that recognizes and controls various devices that make up the computer.
  • 8.  OS is booted from a hard disk, where the Master Boot Record (MBR) contains the primary boot loader  The MBR is a 512-byte sector, located in the first sector on the disk (sector 1 of cylinder 0, head 0)  After the MBR is loaded into RAM, the BIOS yields control to it.
  • 10.  To see the contents of MBR, use this command:  # dd if=/dev/hda of=mbr.bin bs=512 count=1  # od -xa mbr.bin
  • 12. 1. The BIOS finds a bootable device (hard disk) and transfers control to the master boot record 2. The MBR contains GRUB stage 1. Given the small size of the MBR, Stage 1 just load the next stage of GRUB 3. GRUB Stage 1.5 is located in the first 30 kilobytes of hard disk immediately following the MBR. Stage 1.5 loads Stage 2. 4. GRUB Stage 2 receives control, and displays to the user the GRUB boot menu (where the user can manually specify the boot parameters). 5. GRUB loads the user-selected (or default) kernel into memory and passes control on to the kernel.
  • 14.  The kernel is the central part in most computer operating systems because of its task, which is the management of the system's resources and the communication between hardware and software components  Task of kernel  Process management  Memory management  Device management  System call
  • 16. The first thing the kernel does is to execute init program Init runs startup scripts (normal shell scripts) to perform specific tasks, eg.  Setting the hostname, time zone, etc  Checking and mouting the disks etc  The init process is identified by process id "1“ Init is responsible for starting system processes as defined in the /etc/inittab file
  • 17. Upon shutdown, init controls the sequence and processes for shutdown Inittab file  The inittab file describes which processes are started at bootup and during normal operation  /etc/init.d/boot  /etc/init.d/rc  The computer will be booted to the runlevel as defined by the initdefault directive in the /etc/inittab file  id:5:initdefault:
  • 18.  A runlevel is a software configuration of the system which allows only a selected group of processes to exist  The processes spawned by init for each of these runlevels are defined in the /etc/inittab file  Init can be in one of eight runlevels: 0-6
  • 19.  Depending on your 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 2 – /etc/rc.d/rc2.d/  Run level 3 – /etc/rc.d/rc3.d/  Run level 4 – /etc/rc.d/rc4.d/  Run level 5 – /etc/rc.d/rc5.d/  Run level 6 – /etc/rc.d/rc6.d/
  • 21.  Boot loader could be more aptly called the kernel loader. The task at this stage is to load the Linux kernel  GRUB and LILO are the most popular Linux boot loader.  Other boot loader Eg bootman  LILO  BootX  Gujin  loadlin etc
  • 22.  GRUB is an operating system independant boot loader  Support multiple executable format  GRUB version 1  GRUB version 2
  • 23.  Not depend on a specific file system  Can boot from hard disk and floppy  Up to 16 different images  Must change LILO when kernel image file or config file is changed
  • 24.  LILO has no interactive command interface, whereas GRUB does.  LILO does not support booting from a network, whereas GRUB does.  LILO only loads linux and other boot loaders. and GRUB loads a large number of OS's.
  • 25.  Yet another way to boot Linux is from DOS or Windows 9x, where the Linux kernel completely replaces the running copy of this operating system.  This can be useful in the case of hardware which needs to be switched on via software and for which such configuration programs are only available for DOS.