Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
OF ENGINEERING, SHEGAON
(DEPT. OF CSE)
REPORT ON
BOOTING SEQUENCE
Presented By
Introduction 3
Bootstrapping 4
Boot Loader 7
NTLDR 8
LILO 9
GNU GRUB 9
Steps in Booting 10
Boot Sequence 11
Logon Stage 15
1
Flow Chart 16
Reboot 17
Shutdown 18
Dual Booting 20
References 22
2
INTRODUCTION:
Each time a computer boots up, it goes through an initial series of
processes. This sequence of events is aptly named a "boot sequence." During
the boot sequence, the computer activates the necessary hardware components
and loads the appropriate software so that a user can interact with the machine.
The boot sequence starts by accessing the the computer's BIOS on
Windows PCs or the system ROM on a Macintosh. The BIOS and ROM contain
basic instructions that tell the computer how to boot up. These instructions are
then passed to the computer's CPU, which begins loading information into the
system RAM. Once a valid boot disk or startup disk is found, the computer
begins loading the operating system into the system memory. After the
operating system finishes loading, the computer is ready to be used.
3
HISTORY:
The computer word boot is short for 'bootstrap' (short for
'bootstrap load'). The term bootstrap began as a metaphor derived from
pull straps sewn onto the backs of leather boots with which a person
could pull on their boots without outside help. In computers in the 1950s,
pressing a bootstrap button caused a hardwired program to read a
bootstrap program from a punched card and then execute the loaded boot
program which loaded a larger system of programs from punched cards
into memory, without further help from the human operator. In a
computing context, that word has been used since at least 1958.
The GE 645 (c. 1965) had a 'BOOT' button– it could be that the
contraction started as a way to label the button with fewer letters than the
full word.
The Multics operating system (c. 1967) had a boot command. Multics
documents also refer to 'boot tapes', but it is hard to determine exactly
when that term was first used.
In the Unix operating system, the earliest reference for 'boot' is probably
in The Unix Programmer's Manual, first edition 1971.11.03.
The bootstrap concept was used in the IBM 701 computer (1952-1956)
which had a "load button" which initiated reading of the first 36-bit word
from a punched card in a card reader, or from a magnetic tape unit, or
drum unit (predecessor of the hard disk drive). The left 18-bit half-word
was then executed as an instruction which read additional words into
memory.
4
BOOTSTRAPPING:
Bootstrapping refers to a process where a simple system
activates another more complicated system that serves the same purpose.
The term is most often applied to the process of starting up a computer, in
which a mechanism is needed to execute the software program that is
responsible for executing software programs.
5
MASTER BOOT RECORD:
When you turn on your PC, the processor attempts to begin
the process of processing data. But, since the system memory is empty,
the processor doesn't really have anything to execute, or even begin to
know where to look for it. Every hard disk must have a consistent
"starting point" where key information is stored about the disk, such as
the number of partitions and what type they are. There also must be
someplace where the BIOS can load the initial boot program that starts
the process of loading the operating system. The place where this
information is stored is called the master boot record (MBR).
6
BOOT LOADER:
The computer's hardware alone cannot perform complex
actions such as loading a program from disk, so an apparent paradox
exists: to load the operating system into memory, Boot Loader’s only job
is to load other software for the operating system to start. The boot loader
would then read the operating system in from an outside storage medium
such as paper tape, punched card, or a disk drive.A boot loader loads the
operating system. When your machine loads its operating system, the
BIOS reads the first 512 bytes of your bootable media which is known as
the master boot record, or MBR. You can store the boot record of only
one operating system in a single MBR.
7
NTLDR
8
LILO(LInux LOader):
A versatile boot manager that supports:
Characteristics:
GNU GRUB:
More recently, the GRand Unified Boot loader (commonly
known as GRUB) seems to have somewhat taken the boot loaders crown
from LILO. GNU GRUB is actively developed by the Free Software
Foundation and based on the original GRUB program.
9
STEPS IN BOOTING:
The Boot process occurs in five stages:
Pre-boot sequence
Boot sequence
Kernel load
Kernel initialization
Logon
1. Pre-boot sequence:
The computer runs power-on self test (POST) routines.The
POST routines determine the amount of physical memory, the presence
of hardware components, and so on. If the computer has a Plug and Play
BIOS, enumeration and configuration of hardware devices occur at this
stage. The computer BIOS locates the boot device and loads and runs the
master boot record (MBR).
The MBR:
1.Scans the partition table to locate the active partition.
2.Loads the boot sector on the active partition into memory .
3.Executes the boot sector
The computer loads and initializes the NTLDR file, which is the
operating system loader.
The first thing that the BIOS does when it boots the PC is to
perform what is called the Power-On Self-Test, or POST for short. The
POST is a built-in diagnostic program that checks your hardware to
ensure that everything is present and functioning properly, before the
BIOS begins the actual boot. It later continues with additional tests (such
as the memory test that you see printed on the screen) as the boot process
is proceeding.
The POST runs very quickly, and you will normally not even
noticed that it is happening--unless it finds a problem (amazing how
many things are like that, isn't it?) You may have encountered a PC that,
when turned on, made beeping sounds and then stopped without booting
10
up. That is the POST telling you something is wrong with the machine.
The speaker is used because this test happens so early on, that the video
isn't even activated yet! These beep patterns can be used to diagnose
many hardware problems with your PC.
2. Boot Sequence:
The second stage of the boot process is the boot sequence.
After the computer loads NTLDR into memory, the boot sequence
gathers information about hardware and drivers to prepare for the load
phases.
11
Operating system selection:
During the boot sequence, NTLDR reads the BOOT.INI file.
If more than one operating system selection is available in BOOT.INI, the
Please Select The Operating System To Start screen appears. If no
operating system is selected before the timer reaches zero, NTLDR loads
the operating system specified by the default parameter in BOOT.INI. If
there is only one entry in BOOT.INI, the default operating system is
automatically loaded. If BOOT.INI is not present, NTLDR attempts to
load Windows XP Professional from the first partition of the first disk,
typically C:\.
i. Bus/adapter type
ii. Communication ports
iii. Floating-point coprocessor
iv. Floppy disks
v. Keyboard
vi. Mouse/pointing device
vii. Parallel ports
viii. SCSI adapters
ix. Video adapters
12
The first hardware profile on the Hardware Profile/Configuration
Recovery menu is highlighted.
13
The Hardware Key Is Created:-
On successful initialization, the kernel uses the data
collected during hardware detection to create the registry key
HKEY_LOCAL_MACHINE\HARDWARE
The key contains information about
14
If the boot sequence is currently using the LastKnownGood control set, it
ignores the error and proceeds.
0x3 (Critical): the boot sequence fails and then restarts using the
LastKnownGood control set. However, if the LastKnownGood control set
is causing the critical error, the boot sequence stops and displays an error
message. Error Control values appear in the registry under the sub key
HKEY_LOCAL_MACHINE\
SYSTEM\CurrentControlSet\Services\
name_of_service_or_driver\ErrorControl
Logon Stage:
The logon process begins when kernel initialization ends.
The Win32 subsystem automatically starts WINLOGON.EXE.
WINLOGON.EXE starts the Local Security Authority (LSASS.EXE) and
displays the Logon dialog box. The Service Controller executes and
makes a final scan of the HKEY_LOCAL_MACHINE\SYSTEM\
CurrentControlSet\Services sub key and starts the following services:
15
FLOW CHART
16
REBOOT:
17
SHUTDOWN/BOOTING DOWN:
Any user issued command to the kernel to shutdown
should result in a “graceful” termination of services.Prevent any further
creation of user processes.Flush any pending I/O the kernel may be
buffering.
18
NETWORK BOOTING:
The central idea is that the computer has some bootstrap
code in non-volatile memory, e.g. a ROM chip, that will allow it to
contact a server and obtain system files over a network link. One goal is
to avoid the use of a hard disk for booting. With network booting the files
are held at a central server and can be updated at one location. Another
goal is to use computers in locations where hard disks are not robust
enough. Network booting often co-exists with disk booting. For example,
a system could run Windows from disk but sometimes boot Linux from
the network. In order to boot over the network, the computer must get An
identity, An operating system image and Usually, a working file system.
19
DUAL BOOTING:
Step1: Defrag : -Before you can begin to reallocate the hard drive to
multiply partitions, you have to run Microsoft Defrag to move all of your
files to the front of the drive. This is the most important step to not losing
files during a dual-boot creation.
command.com
IO.sys
scandisk.exe
part240.exe
Step4 : Resizing: - using your arrow keys, select the partition you wish
to resize, most likely it’s “Windows FAT32 LBA”. Now move over to the
Ending columns, specifically “Cyl”.
Step5 : MBR resizing: - If you got an error message at the top of the
screen, then you are doing it right. The error message means that you
have successfully changed one of two partition tables. Now you can
always discard the changes at this point if you messed up by hitting esc a
few times.
Step6 : Done: - Almost. All you have to do is exit out of ranish and make
sure it is saved. What about the linux partition? Well, from my own
experience, it is better to leave unused space so linux can partition it how
it likes instead of how you want it.
20
CHANGING BOOT SEQUENCE:
Direct after the power-up sequence, your Com/PC is booting the
Windows XP operating system from the internal hard disk drive (HDD).
It is also possible to boot a second operating system (e.g. the SSV
Embedded Gateway Linux) from a Compact Flash card in the Com/PC
front panel.
Step 1: Restart your Com/PC and enter the BIOS Setup Utility. Then
select the Boot item from main menu. Change the Boot Device Priority to
the following values:
Step 2: Select the Exit item from the main menu and save the current
BIOS setup.
Step 3: Turn the Com/PC off and insert a bootable Compact Flash card
into the Compact Flash socket. After the next power-up sequence, the
Com/PC tries to boot an operating system directly from the Compact
Flash card.
21
REFERENCES:
http://dotnetjunkies.com/WebLog/unknownreference/articles/1228
4.aspx
http://www.pctoday.com/Editorial/article.asp?article=articles/
2004/t0206/06t06/06t06.asp&guid
http://www.kernelthread.com/mac/osx/arch_boot.html
http://www.cs.rpi.edu/~gerbal/BootX.pdf
http://computer.howstuffworks.com/
http://www. pcworld.com/
http://www.google.co.in/
http://www.wikipedia.org/
THANK YOU!!!
22