What does the booting process do?

Learn what is booting in the operating system.

Booting is the process which is initiated once the computer system starts and executes small set of instructions present in the ROM which will setup system hardware by testing them and load the operating system so that computer system can carry out further tasks.

  • This article explains the Booting an Operating System, how boot sequence takes place, and different types of booting.
  • This articles does not cover any practical demonstration of booting in Operating System.

Lets understant What happens when the computer switch is pressed? How our computer gets started? What all things go in backend so that our computer is ready to run the application programs? We have been using the computer from a long time but have never thought what steps our computer system goes through.

let’s learn this all new concept what is booting, booting process, types of booting etc. by the end on this article.

Whenever we press the power button of our computer system, all the devices gets the power and they are initialized. Our main memory which is responsible to hold the instructions will be initially empty as RAM is volatile memory. So, there will be small set of instructions present in the non-volatile memory called ROM. These instructions will be passed to CPU and the execution of instructions takes place which will check all the hardware connected with the system. If there are any problems with the hardware, we will get the alert by beep sounds or even on-screen messages. After the testing of hardware is completed, the booting process continues and load the operating system.

What does the booting process do?

The instructions present in non-volatile memory are hardwired on motherboard so it can’t be erased.

The small set of instructions present in the ROM is called BIOS which stands for Basic Input Output System.

Let’s look into detail, the steps involved in the booting process of operating system now.

When computer is powered on, all the hardware components receive the power and they get initialized. After that, the computer system goes through 6 step booting process as follows:

What does the booting process do?

  1. Loading of BIOS: The small set on instructions present in the ROM is loaded into the computer memory and CPU executes those instruction.

  2. Power-On Self Test (POST): In order to check the operability of all the hardware connected to our computer system, BIOS carries out POST which will check the hardware components and if any problem is found user is alerted with POST beeps and POST screen messaged.

  3. Loading of Operating System:

    • After the successful completion of POST, the bootable sequence present in CMOS (Common Metal Oxide Semiconductor) is read by BIOS.
    • Based on the bootable sequence it will search for Master Boot Record (MBR) in bootable device like floppy disk, CD-ROM and hard disk.
    • If MBR is not found in any of them, the system will halt by displaying “No Boot Device Found”.
    • if MBR is found, the BIOS will load the special application program called Boot Loader, that will eventually load the Operating system.
  4. System Configuration is Accomplished: After the OS is loaded, device drivers are loaded into the memory so that our devices can function correctly.

  5. System Utilities are Loaded: System utilities like antivirus, volume control etc. are loaded into the memory in this step

  6. User Authentication: If any user authentication is being set, the system will ask the user to enter the credentials and on receiving the correct credentials the computer system will run GUI shell (in most cases) or CLI shell.

As BIOS is lightweight, it will just load the Boot Loader which can load the Complex set of libraries required for loading the Operating System. BIOS can’t directly load the heavy weighted set of instructions responsible for loading the Operating System.

Now let’s learn type of booting.

There are two types of Booting available:

  1. Cold Booting/ Hard Booting: Cold booting is the process when our computer system moves from shut down state to the start by pressing the power button. The system reads the BIOS from ROM and will eventually load the Operating System.

  2. Warm Booting/ Soft Booting: Warm booting is the process in which the computer gets restart due to reasons like setting the configuration for newly installed software or hardware. Warm booting is called as rebooting.

When our system get’s hang and we restart the device, we are doing the Warm booting.

Let’s see the how the system boots in detail.

  • When we press the power button, all the components of system get power and they get initialized. Once the CPU is initialized, it needs instruction to be executed.
  • The small set of instructions called BIOS are being loaded from ROM.
  • After the successful completion of Power-On-Self-Test (POST) BIOS find the bootable sequence from CMOS.
  • Based on the bootable sequence, it finds the first bootable device.
  • From the first bootable device, it loads instructions present from Master Boot Record which is present in logical Sector 0.
  • This set of instructions contains the information about the Boot Loader which can load the Operating System.
  • This boot loader information is Operating System specific, for example the boot loader for Linux is GRUB ( GRand Unified Bootloader).
  • The boot loader then load the operating system into the memory.
  • Lastly all the important system files and drivers are loaded into memory and the control is being passed to operating system.

Lets learn about having two Operating System on a single computer system.

When we have two different operating system on our computer it is called Dual Booting. But now as we have multiple OS present, bootloader need to load the Operating System which user selects from the menu that is being displayed on the monitor. If no action is performed withing few seconds, the default Operating System is loaded.

We can have multiple Operating System on single bootable device by Creating Partitions.

By creating partition on the bootable device like hard disk, each partition can have its own Operating System and during run time on selection of the Operating System from user, that particular Operating System is loaded into the memory of the computer system.

Let’s conclude what we learnt

  • Booting is the process through which Operating System is loaded into memory.
  • Booting process is done in 6 steps:
    • Loading of BIOS
    • POST i.e. power-on self test
    • Loading of Operating System
    • System Configuration
    • Loading utilities
    • User Authentication
  • There are two types of booting available:
    • Warm Booting
    • Cold Booting
  • We can have two different OS in our system, which is termed as Dual Booting.

  • Boot types; cold, warm, hot. 11 GEN
  • Boot Process: concept, including POST. 11 ATAR, 12 GEN

What is the Boot Process?

  • The boot process is a series of internal processes a computer system goes through before it's ready to use.
  • The boot process is controlled by the computer's BIOS (basic input output system)which usually starts in Read Only Memory ROM.
  • The bootstrap loader from ROM then loads the operating system.

Summary of the Boot Process

  1. The power button is pressed = sends power to the motherboard and other components
  2. The computer performs a power on self test (POST). See below for more details.
  3. The computer displays a splash screen of the manufacturer's logo, or alternatively text-base specifications of the computer.
  4. The BIOS access the boot disk, which is typically the same hard disk drive (HDD) or solid-state drive (SSD) that contains the operating system (OS).
  5. The BIOS loads the bootstrap loader from ROM into the random access memory (RAM). The bootstrap loader is a small program which is used to search for and launch the computer's operating system.
  6. The BIOS then passes on the work to the boot loader and beings launching the OS.
  7. Once the boot loader has finished, the operating system takes control of the computer, which is now ready for use.

What is the Power On Self Test (POST)?

  • The POST is a test a computer system runs to make sure that all hardware is functioning correctly before continuing with the boot process.
  • If everything is in order, the computer may return a single beep and continue on with the boot process.
  • If there's a form of hardware failure, a beep code is generated (a series of beeps in a specific pattern) and the boot is interrupted. This is used to diagnose the problem.

Types of Booting

  • Cold Boot = When the computer is turned on after being switched off.
    • A cold reboot will clear anything stuck in the computer's memory.
  • Warm Boot = When the computer is restarted via the Operating System, such as when restarted due to a system crash.
    • A warm reboot is generally used to install software that has modified a system file that can't be altered when in use.
    • A warm reboot won't clear anything from the computer's memory.

Further Research

  1. 'Booting Process' by Devendra Gupta here
Found an error or have an enhancement? Please let us know via this contact form