Booting Process3
Booting Process3
Brian kathabasya
What is booting
Booting: The process of starting a computer(electronic device).
When we start our Computer then there is an operation which is performed
automatically by the Computer which is also called Booting.
In the Booting, System will check all the hardware’s and Software’s those
installed or Attached with the System and this will also load all the Files those are
needed for running a system.
In the Booting Process all the Files that are Stored into the ROM Chip will also be
Loaded for Running the System.
In the Booting Process the System will read all the information from the Files that
are Stored into the ROM Chip and the ROM chip will read all the instructions that
are Stored into these Files.
After the Booting of the System this will automatically display all
the information on the System.
The Instructions necessary to Start the System will be read at the Time of
Booting.
Types booting
Cold Booting:
when the System Starts from the Starting or from initial State.
In the Cold Booting the System will be Started from its beginning State
means first of all, the user will press the Power Button , then this will read all
the instructions from the ROM and the Operating System will be Automatically
loaded into the System.
Warm Booting:
The worm Booting is that in which System Automatically Starts when we are
Running the System, For Example due to Light Fluctuation the system will
Automatically Restarts So that in this Chances Damaging of system are More.
and the System will not be started from its initial State So that some files may
not be Damaged if they are not Properly Stored into the System.
Bios and Booting Process
BIOS is the main part of Booting process of a Computer.
BIOS means Basic Input Output System.
When We start our computer and the starting screen comes in front
of us.
The process between this is called booting process of the Computer.
Most of the people are not interested to know about booting process.
They just start the computer and do their work.
.
What is BIOS
When we push the power of PC, there are absolutely no instructions
in memory for the PC to execute.
In fact, when the PC is first powered on, it is almost like it is being
turned on for the very first time ever.
The importance of the PC’s BIOS (Basic Input/output System) is that it
performs all of the functions the PC needs to get started.
It contains that first instruction the computer needs to get started,
programming that checks that computer’s hardware is attached and
ready, and other routines to help the computer get up and running.
Cont.
A PC’s BIOS (Basic Input/output System) includes the
programming to perform three vital and useful functions for
the PC:
(1) It boots the computer.
(2) It validates the PC’s configuration.
(3) It provides an interface between the hardware of the PC and its
software.
Step by step booting process
(1)When you turn on the PC’s power switch, the internal
power supply initializes itself.
The power supply does not provide power to the rest of
the PC As soon as the power supply is able to supply
reliable power to the motherboard, it transmits a “good
power” signal to the motherboard’s chip set , which sends
a system reset command to the processor.
(9) With the device BIOS loaded, the system BIOS checks if the
devices listed in the CMOS configuration data (“Complementary
Metal-Oxide Semiconductor (CMOS)” are present and functioning,
including their speeds, access modes, and other parameters.
In this sequence, the serial and parallel ports are assigned to their
identities.
As each device is passed, a message is displayed that it was found,
configured, and tested.
Step by step booting process cont.
10) If the BIOS supports Plug and Play (PnP) technology, any PnP
devices detected are configured.
Information on each PnP device is displayed on the screen, although
it typically goes by much too fast to read.
(11) At the end of the test and configuration sequence, the BIOS
should display a summary data screen that details the PC as the BIOS
sees it and indicating that the system is verified and ready for use.
Step by step booting process cont.
(12) To start the operating system running, the BIOS must first find it.
Included in the CMOS data is a parameter that indicates the disk
drives (floppy, hard, or CD-ROM) and the order in which they should
be accessed to find the operating system.
In most cases, the boot sequence parameters will be set to look for
the operating system on first the floppy disk drive, then the hard disk
drive, and perhaps, if all else fails, the CD-ROM drive.
Step by step booting process cont.
You have to partition a disk drive before you can use it.
MBR (Master Boot Record) and GPT (GUID Partition Table) are two
different ways of storing the partitioning information on a drive.
This information includes where partitions start and begin, so your
operating system knows which sectors belong to each partition and
which partition is bootable.
This is why you have to choose MBR or GPT before creating partitions
on a drive.
MBR does have its limitations. For starters, MBR only works with disks
up to 2 TB in size. MBR also only supports up to four primary
partitions—if you want more, you have to make one of your primary
partitions an “extended partition” and create logical partitions inside
it. This is a silly little hack and shouldn’t be necessary.
GPT advantages
GPT stands for GUID Partition Table.
It’s a new standard that’s gradually replacing MBR.
It’s associated with UEFI, which replaces the clunky old BIOS with something more modern.
GPT, in turn, replaces the clunky old MBR partitioning system with something more
modern.
It’s called GUID Partition Table because every partition on your drive has a “globally
unique identifier,” or GUID—a random string so long that every GPT partition on earth likely
has its own unique identifier.
GPT doesn’t suffer from MBR’s limits. GPT-based drives can be much larger, with size limits
dependent on the operating system and its file systems.
GPT also allows for a nearly unlimited number of partitions.
Again, the limit here will be your operating system—Windows allows up to 128 partitions
on a GPT drive, and you don’t have to create an extended partition to make them work.
On an MBR disk, the partitioning and boot data is stored in one place.
If this data is overwritten or corrupted, you’re in trouble. In contrast, GPT stores multiple
copies of this data across the disk, so it’s much more robust and can recover if the data is
UEFI
Unified Extensible Firmware Interface (UEFI) is a specification for a
software program that connects a computer's firmware to its
operating system (OS). UEFI is expected to eventually replace BIOS.
It ensures that a special start-up program (referred to as a
bootloader) can be loaded in the memory and then execute additional
operational routines. Usually, this process ends with the login screen.
The user then enters the required information (user name and
password) at which point the computer can be used for specific tasks
(e.g. word processing, etc.).
UEFI Vs. BIOS
1 UEFI enables users to handle drives that are larger than 2 TB, while the old legacy
BIOS couldn't handle large storage drives.
2. UEFI supports more than 4 primary partitions with a GUID Partition Table.
3. Computers who use UEFI firmware have faster booting process than the BIOS.
Various optimizations and enhancement in the UEFI can help your system boot more
quickly than it could before.
4. UEFI supports secure startup, which means that the validity of the operating
system can be checked to ensure that no malware tampers with the startup process.
5. UEFI supports networking function in the UEFI firmware itself, which helps remote
troubleshooting and UEFI configuration.
6. UEFI has a simpler graphical user interface and also has much richer setup menus
than legacy BIOS.
4. Boot Menu: Select the Device to Load the
OS
In Linux, the boot menu is a drop-down menu where you
can select your operating system. If you have had multiple
Linux distributions or other operating systems installed
inside your machine, you can add them to the boot menu.
As Linux is a kernel-based operating system, the latest
installed OS will be shown at the top of the boot menu.
In the picture below, you can see that I have installed
Ubuntu, Fedora, Manjaro, and Windows operating system
on my machine.
As all of the operating systems are installed in the EFI
(Extensible Firmware Interface) mode, I can choose
whichever Linux operating system I want to boot.
You can change the order of the boot menu from the boot
menu under the BIOS settings.
5. GRUB and initrd: Load the OS on the
Boot Process
The Initial RAM Disk (intrd) is designed to be used
as a temporary file system for a Linux system to
find the mounted EFI boot files.
You might have remembered that you have to
assign a disk partition to store the bootloader files
when you make a clean installing of a Linux
distribution. Otherwise, you would not be able to
load the operating system.
In most Linux distributions, the bootloader files
are stored inside the /boot/efi directory.
An alternative boot loader, called GRUB (GRand
Unified Bootloader), is used with Red Hat Linux.
LILO is the most popular boot loader among
computer users that employ Linux as the main, or
only, operating system.
In Linux, there two primary types of bootloader
are available to load the operating system. They
are known as the LILO and GRUB. The LILO stands
for Linux Loader, and the GRUB stands for GNU
GRUB.
The LILO bootloader was seen in the earlier
versions of Linux distributions. On the other hand,
the GRUB bootloader is modern and can load
multiple bootloaders.
When the bootloader part is done, you have to
face a login stage to enter the Linux system. In
Linux, two types of display managers are mostly
used.
They are the GNOME Display Manager (GDM) and
the LightDM. On Ubuntu and other Debian
distributions, the GDM is pre-installed inside the
system. However, you can change and customize
the display manager anytime you want.
6. Linux Kernel: Interact with the Core of your
Computer