What is Booting in Operating System? Types and Steps

 

       

What is Booting in Operating System
What is Booting in Operating System

      


The process of booting up a computer is called booting. It can be started by a software command or by hardware, like pressing a button. Certain procedures require the loading of software into memory prior to execution since a CPU lacks software in its main memory when it is turned on. A separate processor within the computer system or hardware or firmware in the CPU may be used to do this.


Rebooting is another term for restarting a computer. Rebooting can be "soft," in which case the power is left on, or "hard," in which case the CPU's electrical power is turned from off to on. A soft boot may optionally empty RAM to zero on some computers. Hardware, such as a button press or software command, can start both hard and soft booting. When the operating system and a few apps—the operative runtime system—are reached, booting is finished.


Rebooting a computer is not necessary when it is brought out of sleep; it is necessary when it is brought out of hibernation. When turned on, certain embedded systems may run operational programs that are stored in ROM and minimally require a perceptible boot sequence to work. Since all computers are state machines, the only way to get from an unexpected, locked state to a specified zero-state could be to reset the system.


The boot procedure can load a storage dump software for operating system diagnostics in addition to an operating system or standalone utility.



Sequencing of Booting


When a computer is turned on, the booting process initiates the operating system. The first series of tasks the computer does when it is turned on is known as the boot sequence. There is a boot sequence for every machine.


1.Boot Loader: Central processor unit-powered computers can only run programs stored in the memory of the machine. Nonvolatile memories are used to store data, application program code, and operating systems in modern computers. Upon initial boot up, a computer can only use the code and information kept in nonvolatile memory sections of the system. Many complicated system functions cannot be performed by the computer's hardware, and the operating system is not fully loaded at boot time.


The boot loader, also known as the bootstrap loader, is the program that initiates the series of events that culminate in the loading of the full operating system. The boot loader's sole responsibility is to load additional software so that the operating system can begin.


2. Boot Devices: The device that loads the operating system is known as the boot device. The Basic Input/Output System (BIOS) of a contemporary PC allows booting from a variety of sources. These consist of a network interface card, a USB device, an optical drive, a floppy drive, and the local hard disk drive. The user can set up a boot order in the BIOS. If the following is the boot order:


Hard drive, CD drive, and network

First, the BIOS will attempt to boot from the CD drive. If that doesn't work, it will try to boot from the hard drive. If that doesn't work either, it will try to boot from the network. Finally, if it doesn't work at all, it won't boot at all.


3. Boot Procedure: Every personal computer has a standard boot sequence. Initially, an instruction for the BIOS is executed by the CPU in memory. A jump instruction that moves to the BIOS start-up program is contained in that instruction. This software performs a power-on self-test, or POST, to ensure that the hardware the computer will be using is in good working order. The BIOS then proceeds with the preconfigured boot process until it locates a device that can be booted. The BIOS loads the bootsector and moves execution to the boot sector after identifying a bootable disk. It is a master boot record (MBR) if the boot device is a hard drive.


The partition table is searched by the MBR code for an active partition. 

 The MBR code loads and runs the boot sector of the partition, if one is found. Although the boot sector varies depending on the operating system, in the majority of them, its primary purpose is to load and run the operating system kernel, which completes the startup process. Let's say the boot sector of the active partition is invalid or there isn't an active partition at all. In that scenario, a secondary boot loader that chooses a partition and loads its boot sector—which typically boots the matching operating system kernel—may be loaded by the MBR.


Types of Booting


An operating system can boot in one of two ways.


1.Cold Booting:  This form of computer startup procedure is when the computer boots up for the first time or when it is shut down and the power button is pressed to restart the system. The operating system loads automatically into the system during cold booting, and the system reads all of the instructions from the ROM (BIOS). Compared to Hot or Warm Booting, this booting takes longer.


2.Warm booting:  Also known as hot booting, this procedure is what happens to computers that hang or stop responding, allowing them to restart while they are in the on status. Another name for it is restarting. The only way to fix this condition, which has numerous causes, is to restart the computer. It might be necessary to restart after installing new hardware or software. Rebooting the system is necessary to apply software or hardware configuration changes. Occasionally, systems may exhibit strange behavior or exhibit improper response. The system must be forced to restart in such a situation. Rebooting the machine is often accomplished by pressing the Ctrl+Alt+Del button. If not, certain systems may allow you to restart it by pressing the external reset button.


Steps of Booting Process in Operating System


The following are the six steps that occur when the operating system boots up.


Step 1: BIOS is loaded


Firstly, the power must be turned on. It provides electricity to the necessary components, such as the processor and BIOS.



Step 2: BIOS: Power on Self-Test


This is the BIOS's initial test. This test also does an initial check of the computer's input/output devices, disk drives, main memory, etc. In addition, the system sounds a beep if there are any problems.



Step 3: Loading of OS


When POST completes successfully, BIOS reads the bootable sequence that is contained in the CMOS (Common Metal Oxide Semiconductor). It will search for the Master Boot Record (MBR) on bootable media, such as floppy disks, CD-ROMs, and hard disks, based on the bootable sequence.

If the MBR is not located in any of them, a message stating "No Boot Device Found" will appear, and the system will crash. In the event that MBR is found, the BIOS will start the Boot Loader, a special piece of software that eventually launches the operating system.


Step 4: System Configuration


After the operating system is loaded, device drivers are loaded into the memory to guarantee our devices operate as intended.


Step 5: Loading System Utilities


System utilities like volume control and antivirus software are loaded into the RAM at this step.


Step 6: User Authentication


If user authentication is set up, the system will ask the user to provide their credentials. The system will normally start the GUI shell or the CLI shell after receiving correct credentials.


What is Dual Booting?


Dual Booting is the term for using two separate operating systems on one computer. However, because there are now several operating systems available, the bootloader must load the OS that the user chooses from the menu that is shown on the monitor. The default operating system loads if nothing is done in a few seconds.


How Does a System Boot?


Pressing the power button provides power to all system components and initializes them. Once initialized, the CPU must carry out instructions. A short set of instructions called the BIOS is being loaded from ROM. The bootable sequence is located by the BIOS from the CMOS once the Power-On Self-Test (POST) is finished.


Based on the bootable sequence, it finds the first bootable device.

It loads instructions from the first bootable device's Master Boot Record, which is located in logical Sector 0.

This set of instructions contains information about the Boot Loader, which is capable of loading the Operating System.

Specific operating systems are covered by this boot loader information; for example, the boot loader for Linux is called GRUB ( GRand Unified Bootloader).

After that, the boot loader loads the operating system into memory.


At last, the operating system gains control and all necessary system files and drivers are loaded into memory.


Why Do We Need Booting in Operating System?


The booting process is required for the following reasons.


  • Booting stops the system's memory from leaking.
  • It installs updates after checking for them.
  • RAM is cleared while it's working.
  • Make minor adjustments to program errors.


Conclusion


In conclusion, booting is the process of putting the operating system into main memory when a computer is turned on. In contrast, dual booting is a more advanced method of booting that entails setting up two different operating systems on one machine. The boot manager menu is then used by the user to choose which operating system to use.



Frequently Asked Questions


How can I set up a dual boot system?


Usually, we have to partition our hard drive into distinct regions for each operating system in order to set up a dual boot system. Next, we install every operating system on a separate partition and choose between them at boot using a boot manager (like GRUB for Linux, for example).


What is BIOS?


The BIOS stands for Basic Input/Output SystemIt makes all input/output devices easier to use.

 It also helps start and initiate all of the devices' functions during the boot process.


What are the boot devices?



Devices known as "boots" are particular pieces of hardware that hold the software required to start the booting process. These storage media, which include USB drives, optical drives, SSDs, and hard disks, hold the boot loader or operating system necessary for system starting.


What is booting and types of booting?


Two kinds of booting exist:1. Cold booting: the process of turning on a computer after it has been turned off. 2. Warm booting: The process of restarting the operating system by itself following a freeze or crash.


What are the functions of booting?


The boot procedure can load a storage dump software for operating system diagnostics in addition to an operating system or standalone utility. The term "boot," which means "bootstrap burden" or "lift oneself up by one's bootstraps," is derived from this expression.



 .