SlideShare a Scribd company logo
Course PresentationCourse Presentation
Booting of aBooting of a
Computer SystemComputer System
Presentation By:Presentation By: Shehrevar DavierwalaShehrevar Davierwala
Contact:Contact: 96736515469673651546
Email:Email: shehrevar@live.comshehrevar@live.com
Course Presentation
Why is Booting Required ?Why is Booting Required ?
► Hardware doesn’t know where the operatingHardware doesn’t know where the operating
system resides and how to load it.system resides and how to load it.
► Need a special program to do this job –Need a special program to do this job – BootstrapBootstrap
loader.loader.
 E.g. BIOS – Boot Input Output System.E.g. BIOS – Boot Input Output System.
► Bootstrap loader locates the kernel, loads it intoBootstrap loader locates the kernel, loads it into
main memory and starts its execution.main memory and starts its execution.
► In some systems, a simple bootstrap loaderIn some systems, a simple bootstrap loader
fetches a more complex boot program from disk,fetches a more complex boot program from disk,
which in turn loads the kernel.which in turn loads the kernel.
Course Presentation
How Boot process occurs ?How Boot process occurs ?
►Reset event on CPU (power up, reboot)Reset event on CPU (power up, reboot)
causes instruction register to be loaded withcauses instruction register to be loaded with
a predefined memory location. It contains aa predefined memory location. It contains a
jump instruction that transfers execution tojump instruction that transfers execution to
the location of Bootstrap program.the location of Bootstrap program.
►This program is form of ROM, since RAM isThis program is form of ROM, since RAM is
in unknown state at system startup. ROM isin unknown state at system startup. ROM is
convenient as it needs no initialization andconvenient as it needs no initialization and
can’t be affected by virus.can’t be affected by virus.
Course Presentation
BIOS InteractionBIOS Interaction
Course Presentation
Tasks performed at boot upTasks performed at boot up
► Run diagnostics to determine the state ofRun diagnostics to determine the state of
machine. If diagnostics pass, booting continues.machine. If diagnostics pass, booting continues.
► Runs aRuns a Power-On Self TestPower-On Self Test ((POSTPOST) to check the) to check the
devices that the computer will rely on, aredevices that the computer will rely on, are
functioning.functioning.
► BIOS goes through a preconfigured list of devicesBIOS goes through a preconfigured list of devices
until it finds one that is bootable. If it finds no suchuntil it finds one that is bootable. If it finds no such
device, an error is given and the boot processdevice, an error is given and the boot process
stops.stops.
► Initializes CPU registers, device controllers andInitializes CPU registers, device controllers and
contents of the main memory. After this, it loadscontents of the main memory. After this, it loads
the OS.the OS.
Course Presentation
BIOS SetupBIOS Setup
Course Presentation
Boot ProcedureBoot Procedure
Course Presentation
Tasks performed at boot up (Contd)Tasks performed at boot up (Contd)
► On finding a bootable device, the BIOS loads andOn finding a bootable device, the BIOS loads and
executes itsexecutes its boot sectorboot sector. In the case of a hard. In the case of a hard
drive, this is referred to as thedrive, this is referred to as the master boot recordmaster boot record
((MBRMBR) and is often not OS specific.) and is often not OS specific.
► The MBR code checks theThe MBR code checks the partition tablepartition table for anfor an
active partition. If one is found, the MBR codeactive partition. If one is found, the MBR code
loads that partition'sloads that partition's boot sectorboot sector and executes it.and executes it.
► The boot sector is oftenThe boot sector is often operating systemoperating system specific,specific,
however in most operating systems its mainhowever in most operating systems its main
function is to load and execute afunction is to load and execute a kernelkernel, which, which
continues startup.continues startup.
Course Presentation
Secondary Boot LoadersSecondary Boot Loaders
► If there is no active partition or the active partition'sIf there is no active partition or the active partition's
boot sector is invalid, the MBR may load aboot sector is invalid, the MBR may load a
secondary boot loader and pass control to it andsecondary boot loader and pass control to it and
this secondary boot loader will select a partitionthis secondary boot loader will select a partition
(often via user input) and load its boot sector.(often via user input) and load its boot sector.
► Examples of secondary boot loadersExamples of secondary boot loaders
 GRUB – GRand Unified BootloaderGRUB – GRand Unified Bootloader
 LILO – LInux LOaderLILO – LInux LOader
 NTLDR – NT LoaderNTLDR – NT Loader
Course Presentation
GRUB LoaderGRUB Loader
Course Presentation
Booting and ROMBooting and ROM
►System such as cellular phones, PDAs andSystem such as cellular phones, PDAs and
game consoles stores entire OS on ROM.game consoles stores entire OS on ROM.
Done only for small OS, simple supportingDone only for small OS, simple supporting
hardware, and rugged operation.hardware, and rugged operation.
►Changing bootstrap code would requireChanging bootstrap code would require
changing ROM chips.changing ROM chips.
 EPROM – Erasable Programmable ROM.EPROM – Erasable Programmable ROM.
►Code execution in ROM is slower. Copied toCode execution in ROM is slower. Copied to
RAM for faster execution.RAM for faster execution.
Course Presentation
Example : DOSExample : DOS
► After identifying the location of boot files, BIOS looks at the first sectorAfter identifying the location of boot files, BIOS looks at the first sector
(512 bytes) and copies information to specific location in RAM (7C00H)(512 bytes) and copies information to specific location in RAM (7C00H)
-- Boot RecordBoot Record..
► Control passes from BIOS to a program residing in the boot record.Control passes from BIOS to a program residing in the boot record.
► Boot record loads the initial system file into RAM. For DOS, it isBoot record loads the initial system file into RAM. For DOS, it is
IO.SYS .IO.SYS .
► The initial file, IO.SYS includes a file called SYSINIT which loads theThe initial file, IO.SYS includes a file called SYSINIT which loads the
remaining OS into the RAM.remaining OS into the RAM.
► SYSINIT loads a system file MSDOS.SYS that knows how to work withSYSINIT loads a system file MSDOS.SYS that knows how to work with
BIOS.BIOS.
► One of the first OS files that is loaded is the system configuration file,One of the first OS files that is loaded is the system configuration file,
CONFIG.SYS in case of DOS. Information in the configuration file tellsCONFIG.SYS in case of DOS. Information in the configuration file tells
loading program which OS files need to be loaded (e.g. drivers)loading program which OS files need to be loaded (e.g. drivers)
► Another special file that is loaded is one which tells what specificAnother special file that is loaded is one which tells what specific
applications or commands user wants to be performed as part ofapplications or commands user wants to be performed as part of
booting process. In DOS, it is AUTOEXEC.BAT. In Windows, it’sbooting process. In DOS, it is AUTOEXEC.BAT. In Windows, it’s
WIN.INI .WIN.INI .
Course Presentation
ReferencesReferences
►Operating System Principles – Silberchatz,Operating System Principles – Silberchatz,
Galvin and Gagne.Galvin and Gagne.
► http://en.wikipedia.org/wiki/Bootinghttp://en.wikipedia.org/wiki/Booting
► http://computer.howstuffworks.com/bios2.htmhttp://computer.howstuffworks.com/bios2.htm
Course Presentation
QuestionsQuestions
► What is the effect on boot sector and boot loader when you install twoWhat is the effect on boot sector and boot loader when you install two
OS, for e.g. Windows and Linux in two separate partitions ?OS, for e.g. Windows and Linux in two separate partitions ?
► Suppose, you install Windows first. The default boot loader installed inSuppose, you install Windows first. The default boot loader installed in
MBR is NTLDR and contains information regarding the active partitionMBR is NTLDR and contains information regarding the active partition
of Windows. When you install Linux on this system, the installationof Windows. When you install Linux on this system, the installation
prompts to overwrite a new secondary boot loader which identifies bothprompts to overwrite a new secondary boot loader which identifies both
Windows and Linux active partitions and therefore we get a choice ofWindows and Linux active partitions and therefore we get a choice of
booting the desired OS when the system is started.booting the desired OS when the system is started.
In contrast, if Linux is installed first and then Windows, theIn contrast, if Linux is installed first and then Windows, the
Windows Installer overwrites the MBR with its own boot loader whichWindows Installer overwrites the MBR with its own boot loader which
doesn’t recognize the Linux active partition. This creates a problem.doesn’t recognize the Linux active partition. This creates a problem.
The problem can be corrected by using a LiveCD or any bootable discThe problem can be corrected by using a LiveCD or any bootable disc
which can be used to reinstall a secondary boot loader which identifieswhich can be used to reinstall a secondary boot loader which identifies
both the OS and gives true choice.both the OS and gives true choice.
Course Presentation
QuestionsQuestions
► (1) Why is ROM slower than RAM ?(1) Why is ROM slower than RAM ?
(2) How is the boot loader copied from ROM to RAM ?(2) How is the boot loader copied from ROM to RAM ?
► (1)(1) Semi-conductor Technology used in constructing theseSemi-conductor Technology used in constructing these
two type of memories gives the answer. RAM is based ontwo type of memories gives the answer. RAM is based on
positive feedback/capacitive charge for storing thepositive feedback/capacitive charge for storing the
information while ROM contains permanent and non-information while ROM contains permanent and non-
changeable information stored in its structure.changeable information stored in its structure.
(2) There is a small routine loaded by the BIOS which does(2) There is a small routine loaded by the BIOS which does
this task. This routine could also be part of BIOS (thoughthis task. This routine could also be part of BIOS (though
not sure).not sure).
Course Presentation
QuestionsQuestions
► Examples of Applications that access the BIOSExamples of Applications that access the BIOS
directly.directly.
► Windows Server 2003 SP1 versions of theWindows Server 2003 SP1 versions of the
Windows Preinstallation Environment (WinPE) -Windows Preinstallation Environment (WinPE) -
http://www.microsoft.com/technet/prodtechnol/windowhttp://www.microsoft.com/technet/prodtechnol/window
► The operating system and application programsThe operating system and application programs
both directly access BIOS routines to provideboth directly access BIOS routines to provide
better compatibility for such functions as screenbetter compatibility for such functions as screen
display.display.
Course Presentation
QuestionsQuestions
► If I have only a single OS, is there a secondary boot loaderIf I have only a single OS, is there a secondary boot loader
present on the system ?present on the system ?
► Older machines might not have this feature. But now-a-Older machines might not have this feature. But now-a-
days, even Windows is installed with a default secondarydays, even Windows is installed with a default secondary
boot loader (NTLDR). Linux is also installed usually withboot loader (NTLDR). Linux is also installed usually with
LILO or GRUB as the default boot loader.LILO or GRUB as the default boot loader.
You might have also encountered that your systemYou might have also encountered that your system
(Windows) is not able to boot after flashing the BIOS and is(Windows) is not able to boot after flashing the BIOS and is
displaying the message “NTLDR missing”. This is becausedisplaying the message “NTLDR missing”. This is because
the primary boot loader transfer to NTLDR which mightthe primary boot loader transfer to NTLDR which might
have become corrupt or deleted by mistake.have become corrupt or deleted by mistake.
Course Presentation
QuestionsQuestions
► Difference between Boot Loader and BootDifference between Boot Loader and Boot
Manager ?Manager ?
► Basically, these two are different but areBasically, these two are different but are
sometimes combined into a single program.sometimes combined into a single program.
► IBM's Boot Manager, PowerQuest's BootMagicIBM's Boot Manager, PowerQuest's BootMagic
and V Communications' System Commander areand V Communications' System Commander are
some examples of boot managers.some examples of boot managers.
► Dual bootingDual booting is the act of installing multipleis the act of installing multiple
operating systemsoperating systems on aon a computercomputer, and being able, and being able
to choose which one toto choose which one to bootboot when switching onwhen switching on
the computer. The program, which makes dualthe computer. The program, which makes dual
booting possible is called abooting possible is called a boot loaderboot loader..
Course Presentation
InformationInformation
► Dual BootDual Boot
► In theIn the OS/2OS/2 world, the termworld, the term dual bootdual boot has a more specific meaning.has a more specific meaning.
► In aIn a dual bootdual boot installation, two (or more)installation, two (or more) operating systemsoperating systems areare
installed in ainstalled in a singlesingle partitionpartition. Selection of which operating system to. Selection of which operating system to
boot is performed by running aboot is performed by running a dual bootdual boot utility program, whichutility program, which
switches around the necessaryswitches around the necessary boot loadersboot loaders programs (by renamingprograms (by renaming
files and copyingfiles and copying boot sectorsboot sectors) to ensure that the chosen operating) to ensure that the chosen operating
system is loaded at the next boot.system is loaded at the next boot.
► In aIn a boot managerboot manager installation, by contrast, the two (or more)installation, by contrast, the two (or more)
operating systemsoperating systems are installed in their own, separate, individual,are installed in their own, separate, individual,
partitionspartitions. Rather than booting directly into an operating system, the. Rather than booting directly into an operating system, the
machine boots into a specialised,machine boots into a specialised, operating systemoperating system neutral,neutral,
boot loaderboot loader program (such as IBM's eponymousprogram (such as IBM's eponymous Boot ManagerBoot Manager))
installed on a floppy disk or in its own partition on a hard disk. Thisinstalled on a floppy disk or in its own partition on a hard disk. This
boot loader program presents a list of the available bootable partitionsboot loader program presents a list of the available bootable partitions
from which the user can choose, and then loads and invokes the bootfrom which the user can choose, and then loads and invokes the boot
loader in the boot sector of the chosen partition, to boot the chosenloader in the boot sector of the chosen partition, to boot the chosen
operating system.operating system.
Course Presentation
InformationInformation
► When installing an OS on a computer from scratch, here is how the partitionWhen installing an OS on a computer from scratch, here is how the partition
table is created.table is created.
► The hard disk is denoted as “hda” where hd=hard disk, and the third letterThe hard disk is denoted as “hda” where hd=hard disk, and the third letter
could mean the hard-disk on the system. For e.g. the first hard disk is “hda”,could mean the hard-disk on the system. For e.g. the first hard disk is “hda”,
the second is “hdb”.the second is “hdb”.
► When the partitioning is done, “hda0” is the place of MBR. “hda1” is the primaryWhen the partitioning is done, “hda0” is the place of MBR. “hda1” is the primary
partition. Then a secondary partition may be created which is further subdividedpartition. Then a secondary partition may be created which is further subdivided
into logical drives. Another OS could be installed on any of these logical drives.into logical drives. Another OS could be installed on any of these logical drives.
► hda0 – MBRhda0 – MBR
hda1 – Primary Partition e.g. Windows XPhda1 – Primary Partition e.g. Windows XP
hda2 – Secondary Partitionhda2 – Secondary Partition
hda3 – Logical Drive 1 (FAT32 or NTFS partition)hda3 – Logical Drive 1 (FAT32 or NTFS partition)
hda4 – Logical Drive 2 (FAT32 or NTFS partition)hda4 – Logical Drive 2 (FAT32 or NTFS partition)
hda5 – Logical Drive 3 (Swap for Linux Partition)hda5 – Logical Drive 3 (Swap for Linux Partition)
hda6 – Logical Drive 4 (Root for Linux Partition)hda6 – Logical Drive 4 (Root for Linux Partition)
The above example is a simple example. Specific cases can be different.The above example is a simple example. Specific cases can be different.
Course Presentation
InformationInformation
► When the kernel is being loaded, the control is inWhen the kernel is being loaded, the control is in
the privileged mode. If the user is allowed to loginthe privileged mode. If the user is allowed to login
in the same mode, any user will be “root” orin the same mode, any user will be “root” or
“administrator” (super-user). When the booting is“administrator” (super-user). When the booting is
almost complete, which is with the privileged right.almost complete, which is with the privileged right.
But this login program, after verifying yourBut this login program, after verifying your
password, gives you a shell by creating anotherpassword, gives you a shell by creating another
process which intentionally drops the super-userprocess which intentionally drops the super-user
privileges and assume the privileges of this user.privileges and assume the privileges of this user.
Login program is trusted by the kernel. If that isLogin program is trusted by the kernel. If that is
hacked or replaced, you can get a root shell fromhacked or replaced, you can get a root shell from
any login.any login.

More Related Content

What's hot

Operating systems
Operating systems Operating systems
Operating systems
vinothinisureshbabu
 
Operating system services 9
Operating system services 9Operating system services 9
Operating system services 9myrajendra
 
Input output organization
Input output organizationInput output organization
Input output organizationabdulugc
 
Bootstrap loader
Bootstrap loaderBootstrap loader
Bootstrap loader
Saiteja Enimidigandla
 
System software
System softwareSystem software
System software
Harsha Sachdeva
 
Input output interface
Input output interfaceInput output interface
Input output interface
Christ University
 
Installation of Windows & Linux operating system
Installation of Windows & Linux operating systemInstallation of Windows & Linux operating system
Installation of Windows & Linux operating system
Sathishnkl561998
 
Operating system.ppt (1)
Operating system.ppt (1)Operating system.ppt (1)
Operating system.ppt (1)Vaibhav Bajaj
 
Functional units of computer
Functional units of computerFunctional units of computer
Functional units of computer
gaurav jain
 
ROM (Read Only Memory)
ROM (Read Only Memory)ROM (Read Only Memory)
ROM (Read Only Memory)
JaneAlamAdnan
 
Booting and Start-up Sequence
Booting and Start-up SequenceBooting and Start-up Sequence
Booting and Start-up Sequence
Trinity Dwarka
 
Computer architecture input output organization
Computer architecture input output organizationComputer architecture input output organization
Computer architecture input output organization
Mazin Alwaaly
 
Context switching
Context switchingContext switching
Context switching
DarakhshanNayyab
 
Understanding The Boot Process
Understanding The Boot ProcessUnderstanding The Boot Process
Understanding The Boot Process
Dominique Cimafranca
 
Processes description and process control.
Processes description and process control.Processes description and process control.
Processes description and process control.
Ahsan Rahim
 
Ms dos boot process
Ms dos boot process Ms dos boot process
Ms dos boot process
Zahra Sadeghi
 
Compilers
CompilersCompilers
Fundamentals of operating system
Fundamentals of operating systemFundamentals of operating system
Fundamentals of operating system
Jayesh Chauhan
 
memory hierarchy
memory hierarchymemory hierarchy
memory hierarchy
sreelakshmikv
 
Presentation on Operating System & its Components
Presentation on Operating System & its ComponentsPresentation on Operating System & its Components
Presentation on Operating System & its ComponentsMahmuda Rahman
 

What's hot (20)

Operating systems
Operating systems Operating systems
Operating systems
 
Operating system services 9
Operating system services 9Operating system services 9
Operating system services 9
 
Input output organization
Input output organizationInput output organization
Input output organization
 
Bootstrap loader
Bootstrap loaderBootstrap loader
Bootstrap loader
 
System software
System softwareSystem software
System software
 
Input output interface
Input output interfaceInput output interface
Input output interface
 
Installation of Windows & Linux operating system
Installation of Windows & Linux operating systemInstallation of Windows & Linux operating system
Installation of Windows & Linux operating system
 
Operating system.ppt (1)
Operating system.ppt (1)Operating system.ppt (1)
Operating system.ppt (1)
 
Functional units of computer
Functional units of computerFunctional units of computer
Functional units of computer
 
ROM (Read Only Memory)
ROM (Read Only Memory)ROM (Read Only Memory)
ROM (Read Only Memory)
 
Booting and Start-up Sequence
Booting and Start-up SequenceBooting and Start-up Sequence
Booting and Start-up Sequence
 
Computer architecture input output organization
Computer architecture input output organizationComputer architecture input output organization
Computer architecture input output organization
 
Context switching
Context switchingContext switching
Context switching
 
Understanding The Boot Process
Understanding The Boot ProcessUnderstanding The Boot Process
Understanding The Boot Process
 
Processes description and process control.
Processes description and process control.Processes description and process control.
Processes description and process control.
 
Ms dos boot process
Ms dos boot process Ms dos boot process
Ms dos boot process
 
Compilers
CompilersCompilers
Compilers
 
Fundamentals of operating system
Fundamentals of operating systemFundamentals of operating system
Fundamentals of operating system
 
memory hierarchy
memory hierarchymemory hierarchy
memory hierarchy
 
Presentation on Operating System & its Components
Presentation on Operating System & its ComponentsPresentation on Operating System & its Components
Presentation on Operating System & its Components
 

Viewers also liked

booting steps of a computer
booting steps of a computerbooting steps of a computer
booting steps of a computerAnusha Babooa
 
System Booting Process overview
System Booting Process overviewSystem Booting Process overview
System Booting Process overview
RajKumar Rampelli
 
The Boot Process
The Boot ProcessThe Boot Process
The Boot Process
Amir Villas
 
Booting Process OS
Booting Process OSBooting Process OS
Booting Process OS
anilinvns
 
Booting Up And Shutting Down Computer
Booting Up And Shutting Down ComputerBooting Up And Shutting Down Computer
Booting Up And Shutting Down Computer
LUZ PINGOL
 
Functions Of Operating Systems
Functions Of Operating SystemsFunctions Of Operating Systems
Functions Of Operating Systems
Akshay Kurup
 
Bootstrap process boot loader
Bootstrap process boot loaderBootstrap process boot loader
Bootstrap process boot loaderidrajeev
 
Bootloader and MMU (english)
Bootloader and MMU (english)Bootloader and MMU (english)
Bootloader and MMU (english)
Sneeker Yeh
 
MSDOS
MSDOSMSDOS
MSDOS
santivago1
 
Unit 1 introduction to operating system
Unit 1 introduction to operating systemUnit 1 introduction to operating system
Unit 1 introduction to operating system
Bhushan Pawar -Java Trainer
 
Microsoft Powerpoint
Microsoft PowerpointMicrosoft Powerpoint
Microsoft Powerpoint
Jack Frost
 
Bootloader and bootloading
Bootloader and bootloadingBootloader and bootloading
Bootloader and bootloadingArpita Gupta
 
決戰巴別塔之巔:Cross platform with c++
決戰巴別塔之巔:Cross platform with c++決戰巴別塔之巔:Cross platform with c++
決戰巴別塔之巔:Cross platform with c++
boyw165
 
GIT Model Paper
GIT Model PaperGIT Model Paper
GIT Model Paper
Mahesh Kodituwakku
 
AMD Radeon R7 Series SSD
AMD Radeon R7 Series SSDAMD Radeon R7 Series SSD
AMD Radeon R7 Series SSD
Low Hong Chuan
 
Microsoft PowerPoint
Microsoft PowerPointMicrosoft PowerPoint
Microsoft PowerPoint
sensei-computer-angel
 

Viewers also liked (20)

booting steps of a computer
booting steps of a computerbooting steps of a computer
booting steps of a computer
 
System Booting Process overview
System Booting Process overviewSystem Booting Process overview
System Booting Process overview
 
5. boot process
5. boot process5. boot process
5. boot process
 
The Boot Process
The Boot ProcessThe Boot Process
The Boot Process
 
Booting Process OS
Booting Process OSBooting Process OS
Booting Process OS
 
Booting Up And Shutting Down Computer
Booting Up And Shutting Down ComputerBooting Up And Shutting Down Computer
Booting Up And Shutting Down Computer
 
Functions Of Operating Systems
Functions Of Operating SystemsFunctions Of Operating Systems
Functions Of Operating Systems
 
Bootstrap process boot loader
Bootstrap process boot loaderBootstrap process boot loader
Bootstrap process boot loader
 
bios booting process
bios booting processbios booting process
bios booting process
 
Bootloader and MMU (english)
Bootloader and MMU (english)Bootloader and MMU (english)
Bootloader and MMU (english)
 
Ch 2
Ch 2Ch 2
Ch 2
 
MSDOS
MSDOSMSDOS
MSDOS
 
Unit 1 introduction to operating system
Unit 1 introduction to operating systemUnit 1 introduction to operating system
Unit 1 introduction to operating system
 
Microsoft Powerpoint
Microsoft PowerpointMicrosoft Powerpoint
Microsoft Powerpoint
 
Bootloader and bootloading
Bootloader and bootloadingBootloader and bootloading
Bootloader and bootloading
 
決戰巴別塔之巔:Cross platform with c++
決戰巴別塔之巔:Cross platform with c++決戰巴別塔之巔:Cross platform with c++
決戰巴別塔之巔:Cross platform with c++
 
GIT Model Paper
GIT Model PaperGIT Model Paper
GIT Model Paper
 
Dual boot
Dual bootDual boot
Dual boot
 
AMD Radeon R7 Series SSD
AMD Radeon R7 Series SSDAMD Radeon R7 Series SSD
AMD Radeon R7 Series SSD
 
Microsoft PowerPoint
Microsoft PowerPointMicrosoft PowerPoint
Microsoft PowerPoint
 

Similar to Booting

Booting
BootingBooting
Booting
BootingBooting
Booting
Ashish K
 
Booting how boot to the system and details
Booting how boot to the system and detailsBooting how boot to the system and details
Booting how boot to the system and details
MadniFareed1
 
3996234.ppt
3996234.ppt3996234.ppt
3996234.ppt
KdpKumar
 
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
 
Bootloaders (U-Boot)
Bootloaders (U-Boot) Bootloaders (U-Boot)
Bootloaders (U-Boot)
Omkar Rane
 
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 booting process!!Linux booting process!!
Linux booting process!!
sourav verma
 
Linux Booting Steps
Linux Booting StepsLinux Booting Steps
Linux Booting Steps
Anando Kumar Paul
 
BOOTING.ppt
BOOTING.pptBOOTING.ppt
BOOTING.ppt
TripleRainbow
 
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
 
IRJET- Orchestration of Operating System Start-Up
IRJET- Orchestration of Operating System Start-UpIRJET- Orchestration of Operating System Start-Up
IRJET- Orchestration of Operating System Start-Up
IRJET Journal
 
Configuring startup and troubleshooting startup issues
Configuring startup and troubleshooting startup issuesConfiguring startup and troubleshooting startup issues
Configuring startup and troubleshooting startup issueselboob2025
 
Windows booting
Windows bootingWindows booting
Windows bootinggirish1993
 
CSS-PPT-W1-D1.pdf
CSS-PPT-W1-D1.pdfCSS-PPT-W1-D1.pdf
CSS-PPT-W1-D1.pdf
ivy buncaras
 
boot from lan
boot from lanboot from lan
boot from lan
ssuser1eca7d
 

Similar to Booting (20)

Booting
BootingBooting
Booting
 
Booting
BootingBooting
Booting
 
Booting how boot to the system and details
Booting how boot to the system and detailsBooting how boot to the system and details
Booting how boot to the system and details
 
3996234.ppt
3996234.ppt3996234.ppt
3996234.ppt
 
1.2 boot the system v2
1.2 boot the system v21.2 boot the system v2
1.2 boot the system v2
 
Bootloaders (U-Boot)
Bootloaders (U-Boot) Bootloaders (U-Boot)
Bootloaders (U-Boot)
 
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!!
 
Ch04
Ch04Ch04
Ch04
 
Ch04 system administration
Ch04 system administration Ch04 system administration
Ch04 system administration
 
Linux Booting Steps
Linux Booting StepsLinux Booting Steps
Linux Booting Steps
 
File000124
File000124File000124
File000124
 
BOOTING.ppt
BOOTING.pptBOOTING.ppt
BOOTING.ppt
 
101 1.2 boot the system
101 1.2 boot the system101 1.2 boot the system
101 1.2 boot the system
 
IRJET- Orchestration of Operating System Start-Up
IRJET- Orchestration of Operating System Start-UpIRJET- Orchestration of Operating System Start-Up
IRJET- Orchestration of Operating System Start-Up
 
Configuring startup and troubleshooting startup issues
Configuring startup and troubleshooting startup issuesConfiguring startup and troubleshooting startup issues
Configuring startup and troubleshooting startup issues
 
Windows booting
Windows bootingWindows booting
Windows booting
 
CSS-PPT-W1-D1.pdf
CSS-PPT-W1-D1.pdfCSS-PPT-W1-D1.pdf
CSS-PPT-W1-D1.pdf
 
101 1.2 boot the system
101 1.2 boot the system101 1.2 boot the system
101 1.2 boot the system
 
boot from lan
boot from lanboot from lan
boot from lan
 

More from Shehrevar Davierwala

Introduction_Swift
Introduction_SwiftIntroduction_Swift
Introduction_Swift
Shehrevar Davierwala
 
PsudoCode.pptx
PsudoCode.pptxPsudoCode.pptx
PsudoCode.pptx
Shehrevar Davierwala
 
Number System.pptx
Number System.pptxNumber System.pptx
Number System.pptx
Shehrevar Davierwala
 
Java Script (Module 1).pptx
Java Script (Module 1).pptxJava Script (Module 1).pptx
Java Script (Module 1).pptx
Shehrevar Davierwala
 
Website in Clicks Day 2
Website in Clicks Day 2Website in Clicks Day 2
Website in Clicks Day 2
Shehrevar Davierwala
 
Develop Website in Clicks
Develop Website in ClicksDevelop Website in Clicks
Develop Website in Clicks
Shehrevar Davierwala
 
Build Virtual Assistant Using AI
Build Virtual Assistant Using AI Build Virtual Assistant Using AI
Build Virtual Assistant Using AI
Shehrevar Davierwala
 
Build brand reputation using facebook
Build brand reputation using facebookBuild brand reputation using facebook
Build brand reputation using facebook
Shehrevar Davierwala
 
Digital Marketing Session 2
Digital Marketing Session 2Digital Marketing Session 2
Digital Marketing Session 2
Shehrevar Davierwala
 
Learn Digital Marketing : 0 to Hero Day 1
Learn Digital Marketing :  0 to Hero Day 1 Learn Digital Marketing :  0 to Hero Day 1
Learn Digital Marketing : 0 to Hero Day 1
Shehrevar Davierwala
 
Standard template
Standard templateStandard template
Standard template
Shehrevar Davierwala
 
Digital Marketing for Sustainable Business - Afghan Perspective
Digital Marketing for Sustainable Business - Afghan Perspective  Digital Marketing for Sustainable Business - Afghan Perspective
Digital Marketing for Sustainable Business - Afghan Perspective
Shehrevar Davierwala
 
Developing stunning website in clicks - 2
Developing stunning website in clicks - 2Developing stunning website in clicks - 2
Developing stunning website in clicks - 2
Shehrevar Davierwala
 
Developing stunning website in clicks
Developing stunning website in clicksDeveloping stunning website in clicks
Developing stunning website in clicks
Shehrevar Davierwala
 
Google forms for data analysis
Google forms for data analysisGoogle forms for data analysis
Google forms for data analysis
Shehrevar Davierwala
 
Webdesign session1
Webdesign session1Webdesign session1
Webdesign session1
Shehrevar Davierwala
 
Tech talk webtech
Tech talk webtechTech talk webtech
Tech talk webtech
Shehrevar Davierwala
 
Tech talk php_cms
Tech talk php_cmsTech talk php_cms
Tech talk php_cms
Shehrevar Davierwala
 
Ph pbasics
Ph pbasicsPh pbasics
Php mysql
Php mysqlPhp mysql

More from Shehrevar Davierwala (20)

Introduction_Swift
Introduction_SwiftIntroduction_Swift
Introduction_Swift
 
PsudoCode.pptx
PsudoCode.pptxPsudoCode.pptx
PsudoCode.pptx
 
Number System.pptx
Number System.pptxNumber System.pptx
Number System.pptx
 
Java Script (Module 1).pptx
Java Script (Module 1).pptxJava Script (Module 1).pptx
Java Script (Module 1).pptx
 
Website in Clicks Day 2
Website in Clicks Day 2Website in Clicks Day 2
Website in Clicks Day 2
 
Develop Website in Clicks
Develop Website in ClicksDevelop Website in Clicks
Develop Website in Clicks
 
Build Virtual Assistant Using AI
Build Virtual Assistant Using AI Build Virtual Assistant Using AI
Build Virtual Assistant Using AI
 
Build brand reputation using facebook
Build brand reputation using facebookBuild brand reputation using facebook
Build brand reputation using facebook
 
Digital Marketing Session 2
Digital Marketing Session 2Digital Marketing Session 2
Digital Marketing Session 2
 
Learn Digital Marketing : 0 to Hero Day 1
Learn Digital Marketing :  0 to Hero Day 1 Learn Digital Marketing :  0 to Hero Day 1
Learn Digital Marketing : 0 to Hero Day 1
 
Standard template
Standard templateStandard template
Standard template
 
Digital Marketing for Sustainable Business - Afghan Perspective
Digital Marketing for Sustainable Business - Afghan Perspective  Digital Marketing for Sustainable Business - Afghan Perspective
Digital Marketing for Sustainable Business - Afghan Perspective
 
Developing stunning website in clicks - 2
Developing stunning website in clicks - 2Developing stunning website in clicks - 2
Developing stunning website in clicks - 2
 
Developing stunning website in clicks
Developing stunning website in clicksDeveloping stunning website in clicks
Developing stunning website in clicks
 
Google forms for data analysis
Google forms for data analysisGoogle forms for data analysis
Google forms for data analysis
 
Webdesign session1
Webdesign session1Webdesign session1
Webdesign session1
 
Tech talk webtech
Tech talk webtechTech talk webtech
Tech talk webtech
 
Tech talk php_cms
Tech talk php_cmsTech talk php_cms
Tech talk php_cms
 
Ph pbasics
Ph pbasicsPh pbasics
Ph pbasics
 
Php mysql
Php mysqlPhp mysql
Php mysql
 

Recently uploaded

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
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
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
 
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
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
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
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
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
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
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
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
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
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 

Recently uploaded (20)

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
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
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
 
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 !
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
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
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
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...
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.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
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
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
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 

Booting

  • 1. Course PresentationCourse Presentation Booting of aBooting of a Computer SystemComputer System Presentation By:Presentation By: Shehrevar DavierwalaShehrevar Davierwala Contact:Contact: 96736515469673651546 Email:Email: shehrevar@live.comshehrevar@live.com
  • 2. Course Presentation Why is Booting Required ?Why is Booting Required ? ► Hardware doesn’t know where the operatingHardware doesn’t know where the operating system resides and how to load it.system resides and how to load it. ► Need a special program to do this job –Need a special program to do this job – BootstrapBootstrap loader.loader.  E.g. BIOS – Boot Input Output System.E.g. BIOS – Boot Input Output System. ► Bootstrap loader locates the kernel, loads it intoBootstrap loader locates the kernel, loads it into main memory and starts its execution.main memory and starts its execution. ► In some systems, a simple bootstrap loaderIn some systems, a simple bootstrap loader fetches a more complex boot program from disk,fetches a more complex boot program from disk, which in turn loads the kernel.which in turn loads the kernel.
  • 3. Course Presentation How Boot process occurs ?How Boot process occurs ? ►Reset event on CPU (power up, reboot)Reset event on CPU (power up, reboot) causes instruction register to be loaded withcauses instruction register to be loaded with a predefined memory location. It contains aa predefined memory location. It contains a jump instruction that transfers execution tojump instruction that transfers execution to the location of Bootstrap program.the location of Bootstrap program. ►This program is form of ROM, since RAM isThis program is form of ROM, since RAM is in unknown state at system startup. ROM isin unknown state at system startup. ROM is convenient as it needs no initialization andconvenient as it needs no initialization and can’t be affected by virus.can’t be affected by virus.
  • 5. Course Presentation Tasks performed at boot upTasks performed at boot up ► Run diagnostics to determine the state ofRun diagnostics to determine the state of machine. If diagnostics pass, booting continues.machine. If diagnostics pass, booting continues. ► Runs aRuns a Power-On Self TestPower-On Self Test ((POSTPOST) to check the) to check the devices that the computer will rely on, aredevices that the computer will rely on, are functioning.functioning. ► BIOS goes through a preconfigured list of devicesBIOS goes through a preconfigured list of devices until it finds one that is bootable. If it finds no suchuntil it finds one that is bootable. If it finds no such device, an error is given and the boot processdevice, an error is given and the boot process stops.stops. ► Initializes CPU registers, device controllers andInitializes CPU registers, device controllers and contents of the main memory. After this, it loadscontents of the main memory. After this, it loads the OS.the OS.
  • 8. Course Presentation Tasks performed at boot up (Contd)Tasks performed at boot up (Contd) ► On finding a bootable device, the BIOS loads andOn finding a bootable device, the BIOS loads and executes itsexecutes its boot sectorboot sector. In the case of a hard. In the case of a hard drive, this is referred to as thedrive, this is referred to as the master boot recordmaster boot record ((MBRMBR) and is often not OS specific.) and is often not OS specific. ► The MBR code checks theThe MBR code checks the partition tablepartition table for anfor an active partition. If one is found, the MBR codeactive partition. If one is found, the MBR code loads that partition'sloads that partition's boot sectorboot sector and executes it.and executes it. ► The boot sector is oftenThe boot sector is often operating systemoperating system specific,specific, however in most operating systems its mainhowever in most operating systems its main function is to load and execute afunction is to load and execute a kernelkernel, which, which continues startup.continues startup.
  • 9. Course Presentation Secondary Boot LoadersSecondary Boot Loaders ► If there is no active partition or the active partition'sIf there is no active partition or the active partition's boot sector is invalid, the MBR may load aboot sector is invalid, the MBR may load a secondary boot loader and pass control to it andsecondary boot loader and pass control to it and this secondary boot loader will select a partitionthis secondary boot loader will select a partition (often via user input) and load its boot sector.(often via user input) and load its boot sector. ► Examples of secondary boot loadersExamples of secondary boot loaders  GRUB – GRand Unified BootloaderGRUB – GRand Unified Bootloader  LILO – LInux LOaderLILO – LInux LOader  NTLDR – NT LoaderNTLDR – NT Loader
  • 11. Course Presentation Booting and ROMBooting and ROM ►System such as cellular phones, PDAs andSystem such as cellular phones, PDAs and game consoles stores entire OS on ROM.game consoles stores entire OS on ROM. Done only for small OS, simple supportingDone only for small OS, simple supporting hardware, and rugged operation.hardware, and rugged operation. ►Changing bootstrap code would requireChanging bootstrap code would require changing ROM chips.changing ROM chips.  EPROM – Erasable Programmable ROM.EPROM – Erasable Programmable ROM. ►Code execution in ROM is slower. Copied toCode execution in ROM is slower. Copied to RAM for faster execution.RAM for faster execution.
  • 12. Course Presentation Example : DOSExample : DOS ► After identifying the location of boot files, BIOS looks at the first sectorAfter identifying the location of boot files, BIOS looks at the first sector (512 bytes) and copies information to specific location in RAM (7C00H)(512 bytes) and copies information to specific location in RAM (7C00H) -- Boot RecordBoot Record.. ► Control passes from BIOS to a program residing in the boot record.Control passes from BIOS to a program residing in the boot record. ► Boot record loads the initial system file into RAM. For DOS, it isBoot record loads the initial system file into RAM. For DOS, it is IO.SYS .IO.SYS . ► The initial file, IO.SYS includes a file called SYSINIT which loads theThe initial file, IO.SYS includes a file called SYSINIT which loads the remaining OS into the RAM.remaining OS into the RAM. ► SYSINIT loads a system file MSDOS.SYS that knows how to work withSYSINIT loads a system file MSDOS.SYS that knows how to work with BIOS.BIOS. ► One of the first OS files that is loaded is the system configuration file,One of the first OS files that is loaded is the system configuration file, CONFIG.SYS in case of DOS. Information in the configuration file tellsCONFIG.SYS in case of DOS. Information in the configuration file tells loading program which OS files need to be loaded (e.g. drivers)loading program which OS files need to be loaded (e.g. drivers) ► Another special file that is loaded is one which tells what specificAnother special file that is loaded is one which tells what specific applications or commands user wants to be performed as part ofapplications or commands user wants to be performed as part of booting process. In DOS, it is AUTOEXEC.BAT. In Windows, it’sbooting process. In DOS, it is AUTOEXEC.BAT. In Windows, it’s WIN.INI .WIN.INI .
  • 13. Course Presentation ReferencesReferences ►Operating System Principles – Silberchatz,Operating System Principles – Silberchatz, Galvin and Gagne.Galvin and Gagne. ► http://en.wikipedia.org/wiki/Bootinghttp://en.wikipedia.org/wiki/Booting ► http://computer.howstuffworks.com/bios2.htmhttp://computer.howstuffworks.com/bios2.htm
  • 14. Course Presentation QuestionsQuestions ► What is the effect on boot sector and boot loader when you install twoWhat is the effect on boot sector and boot loader when you install two OS, for e.g. Windows and Linux in two separate partitions ?OS, for e.g. Windows and Linux in two separate partitions ? ► Suppose, you install Windows first. The default boot loader installed inSuppose, you install Windows first. The default boot loader installed in MBR is NTLDR and contains information regarding the active partitionMBR is NTLDR and contains information regarding the active partition of Windows. When you install Linux on this system, the installationof Windows. When you install Linux on this system, the installation prompts to overwrite a new secondary boot loader which identifies bothprompts to overwrite a new secondary boot loader which identifies both Windows and Linux active partitions and therefore we get a choice ofWindows and Linux active partitions and therefore we get a choice of booting the desired OS when the system is started.booting the desired OS when the system is started. In contrast, if Linux is installed first and then Windows, theIn contrast, if Linux is installed first and then Windows, the Windows Installer overwrites the MBR with its own boot loader whichWindows Installer overwrites the MBR with its own boot loader which doesn’t recognize the Linux active partition. This creates a problem.doesn’t recognize the Linux active partition. This creates a problem. The problem can be corrected by using a LiveCD or any bootable discThe problem can be corrected by using a LiveCD or any bootable disc which can be used to reinstall a secondary boot loader which identifieswhich can be used to reinstall a secondary boot loader which identifies both the OS and gives true choice.both the OS and gives true choice.
  • 15. Course Presentation QuestionsQuestions ► (1) Why is ROM slower than RAM ?(1) Why is ROM slower than RAM ? (2) How is the boot loader copied from ROM to RAM ?(2) How is the boot loader copied from ROM to RAM ? ► (1)(1) Semi-conductor Technology used in constructing theseSemi-conductor Technology used in constructing these two type of memories gives the answer. RAM is based ontwo type of memories gives the answer. RAM is based on positive feedback/capacitive charge for storing thepositive feedback/capacitive charge for storing the information while ROM contains permanent and non-information while ROM contains permanent and non- changeable information stored in its structure.changeable information stored in its structure. (2) There is a small routine loaded by the BIOS which does(2) There is a small routine loaded by the BIOS which does this task. This routine could also be part of BIOS (thoughthis task. This routine could also be part of BIOS (though not sure).not sure).
  • 16. Course Presentation QuestionsQuestions ► Examples of Applications that access the BIOSExamples of Applications that access the BIOS directly.directly. ► Windows Server 2003 SP1 versions of theWindows Server 2003 SP1 versions of the Windows Preinstallation Environment (WinPE) -Windows Preinstallation Environment (WinPE) - http://www.microsoft.com/technet/prodtechnol/windowhttp://www.microsoft.com/technet/prodtechnol/window ► The operating system and application programsThe operating system and application programs both directly access BIOS routines to provideboth directly access BIOS routines to provide better compatibility for such functions as screenbetter compatibility for such functions as screen display.display.
  • 17. Course Presentation QuestionsQuestions ► If I have only a single OS, is there a secondary boot loaderIf I have only a single OS, is there a secondary boot loader present on the system ?present on the system ? ► Older machines might not have this feature. But now-a-Older machines might not have this feature. But now-a- days, even Windows is installed with a default secondarydays, even Windows is installed with a default secondary boot loader (NTLDR). Linux is also installed usually withboot loader (NTLDR). Linux is also installed usually with LILO or GRUB as the default boot loader.LILO or GRUB as the default boot loader. You might have also encountered that your systemYou might have also encountered that your system (Windows) is not able to boot after flashing the BIOS and is(Windows) is not able to boot after flashing the BIOS and is displaying the message “NTLDR missing”. This is becausedisplaying the message “NTLDR missing”. This is because the primary boot loader transfer to NTLDR which mightthe primary boot loader transfer to NTLDR which might have become corrupt or deleted by mistake.have become corrupt or deleted by mistake.
  • 18. Course Presentation QuestionsQuestions ► Difference between Boot Loader and BootDifference between Boot Loader and Boot Manager ?Manager ? ► Basically, these two are different but areBasically, these two are different but are sometimes combined into a single program.sometimes combined into a single program. ► IBM's Boot Manager, PowerQuest's BootMagicIBM's Boot Manager, PowerQuest's BootMagic and V Communications' System Commander areand V Communications' System Commander are some examples of boot managers.some examples of boot managers. ► Dual bootingDual booting is the act of installing multipleis the act of installing multiple operating systemsoperating systems on aon a computercomputer, and being able, and being able to choose which one toto choose which one to bootboot when switching onwhen switching on the computer. The program, which makes dualthe computer. The program, which makes dual booting possible is called abooting possible is called a boot loaderboot loader..
  • 19. Course Presentation InformationInformation ► Dual BootDual Boot ► In theIn the OS/2OS/2 world, the termworld, the term dual bootdual boot has a more specific meaning.has a more specific meaning. ► In aIn a dual bootdual boot installation, two (or more)installation, two (or more) operating systemsoperating systems areare installed in ainstalled in a singlesingle partitionpartition. Selection of which operating system to. Selection of which operating system to boot is performed by running aboot is performed by running a dual bootdual boot utility program, whichutility program, which switches around the necessaryswitches around the necessary boot loadersboot loaders programs (by renamingprograms (by renaming files and copyingfiles and copying boot sectorsboot sectors) to ensure that the chosen operating) to ensure that the chosen operating system is loaded at the next boot.system is loaded at the next boot. ► In aIn a boot managerboot manager installation, by contrast, the two (or more)installation, by contrast, the two (or more) operating systemsoperating systems are installed in their own, separate, individual,are installed in their own, separate, individual, partitionspartitions. Rather than booting directly into an operating system, the. Rather than booting directly into an operating system, the machine boots into a specialised,machine boots into a specialised, operating systemoperating system neutral,neutral, boot loaderboot loader program (such as IBM's eponymousprogram (such as IBM's eponymous Boot ManagerBoot Manager)) installed on a floppy disk or in its own partition on a hard disk. Thisinstalled on a floppy disk or in its own partition on a hard disk. This boot loader program presents a list of the available bootable partitionsboot loader program presents a list of the available bootable partitions from which the user can choose, and then loads and invokes the bootfrom which the user can choose, and then loads and invokes the boot loader in the boot sector of the chosen partition, to boot the chosenloader in the boot sector of the chosen partition, to boot the chosen operating system.operating system.
  • 20. Course Presentation InformationInformation ► When installing an OS on a computer from scratch, here is how the partitionWhen installing an OS on a computer from scratch, here is how the partition table is created.table is created. ► The hard disk is denoted as “hda” where hd=hard disk, and the third letterThe hard disk is denoted as “hda” where hd=hard disk, and the third letter could mean the hard-disk on the system. For e.g. the first hard disk is “hda”,could mean the hard-disk on the system. For e.g. the first hard disk is “hda”, the second is “hdb”.the second is “hdb”. ► When the partitioning is done, “hda0” is the place of MBR. “hda1” is the primaryWhen the partitioning is done, “hda0” is the place of MBR. “hda1” is the primary partition. Then a secondary partition may be created which is further subdividedpartition. Then a secondary partition may be created which is further subdivided into logical drives. Another OS could be installed on any of these logical drives.into logical drives. Another OS could be installed on any of these logical drives. ► hda0 – MBRhda0 – MBR hda1 – Primary Partition e.g. Windows XPhda1 – Primary Partition e.g. Windows XP hda2 – Secondary Partitionhda2 – Secondary Partition hda3 – Logical Drive 1 (FAT32 or NTFS partition)hda3 – Logical Drive 1 (FAT32 or NTFS partition) hda4 – Logical Drive 2 (FAT32 or NTFS partition)hda4 – Logical Drive 2 (FAT32 or NTFS partition) hda5 – Logical Drive 3 (Swap for Linux Partition)hda5 – Logical Drive 3 (Swap for Linux Partition) hda6 – Logical Drive 4 (Root for Linux Partition)hda6 – Logical Drive 4 (Root for Linux Partition) The above example is a simple example. Specific cases can be different.The above example is a simple example. Specific cases can be different.
  • 21. Course Presentation InformationInformation ► When the kernel is being loaded, the control is inWhen the kernel is being loaded, the control is in the privileged mode. If the user is allowed to loginthe privileged mode. If the user is allowed to login in the same mode, any user will be “root” orin the same mode, any user will be “root” or “administrator” (super-user). When the booting is“administrator” (super-user). When the booting is almost complete, which is with the privileged right.almost complete, which is with the privileged right. But this login program, after verifying yourBut this login program, after verifying your password, gives you a shell by creating anotherpassword, gives you a shell by creating another process which intentionally drops the super-userprocess which intentionally drops the super-user privileges and assume the privileges of this user.privileges and assume the privileges of this user. Login program is trusted by the kernel. If that isLogin program is trusted by the kernel. If that is hacked or replaced, you can get a root shell fromhacked or replaced, you can get a root shell from any login.any login.