What is Booting?

booting.jpg

The operating system of a computer or any other computing device is stored on secondary storage, such as a hard drive or SSD, when the device is powered off. However, when the computer first starts up, the operating system needs to be loaded into the machine’s primary memory, or RAM. Behind the scenes, there is a lot that takes place to make this happen!

This blog will clarify “what booting means” in an operating system, outline different types of booting, explain how booting takes place, and discuss the significance of booting in the system’s startup process.

Table of Contents:

What is Booting?

When a computer is powered on, its operating system must be loaded from non-volatile storage (like a hard drive or SSD) into the main memory (RAM) for the computer to function. This is because the CPU can only access instructions and data from RAM and not directly from disk.

This process is called booting.

During startup, the system’s firmware, BIOS or UEFI, first performs a Power-On Self-Test (POST) to check the hardware. After that, it loads the bootstrap loader, which then loads the operating system into RAM, allowing the computer to start functioning normally.

So simply, Booting is defined as

“The process of loading the operating system into main memory is referred to as Boot or Booting.  It initiates the OS load, which causes the machine to boot up.”

Note: BIOS is an abbreviation for Basic Input/Output System, whereas UEFI is for Unified Extensible Firmware Interface.

What is a Bootstrap Loader?

A Bootstrap Loader (or Bootloader) is a small program that initiates the operating system loading process when a computer is powered on or restarted.

  • It’s stored in the system’s ROM or the Master Boot Record (MBR) of the storage device.
  • It is executed immediately after the BIOS/UEFI completes the Power-On Self-Test (POST).
  • Its main job is to locate the OS kernel (like vmlinuz for Linux or ntoskrnl.exe for Windows) and load it into memory.

Types of Booting

The boot process is different depending on how many operating systems are installed on the machine. 

Types of Booting In Computer

Boot types can be divided into the following:

  1. Cold or Hard Booting

“Cold booting occurs when you power on a computer from a completely turned-off state, triggering a full system check and loading the operating system into RAM.”

The operating system is loaded into RAM from the storage disk after a complete boot-up cycle, including a Power-On Self Test (POST) and hardware startup.

  1. Warm or Soft Booting

“Soft rebooting, often known as warm booting, is the process of restarting a computer without turning it off.”

A warm boot, as opposed to a cold boot, which begins the system from a powered-off state, occurs when the system is already functioning. It usually retains power to the hardware and is activated by an operating system command (such as Restart) or a key sequence (for example, Ctrl + Alt + Del). During a warm boot, the system restarts software processes but does not do a full power cycle or POST (Power-On Self-Test).

We came across a new term, “POST” up there; let’s define it before moving ahead!

What is Power-On Self Test?

POST is the first checkup the system performs as it boots. It confirms that critical hardware such as the CPU, RAM, storage devices, and other attached devices are functioning correctly. During which POST will either return output, display an error message, or generate a beep code if there is a problem. If all goes well, the system starts loading the OS.

What is Power-On Self Test

What is the Master Boot Record (MBR)?

The MBR or Master Boot Record is a key component of the boot process, which is stored in the very first sector of the hard drive. The MBR stores two things:

  • A map that shows how the drive is divided (called the partition table)
  • A short program that begins loading your operating system
What is the Master Boot Record (MBR)

When you turn on your computer, the system’s BIOS or UEFI looks at the MBR first. It then runs the program inside to help load the main operating system so your computer can start working.

How the Booting Process Works

When the system is powered on, the BIOS/UEFI firmware initializes it and picks a bootable device in the sequence specified by the user. BIOS reads the first 512 bytes (MBR) of the chosen storage device, which contains a bootstrap loader and partition table.

The bootloader, such as GRUB for Linux or BOOTMGR for Windows, is in charge of loading the operating system’s kernel (for example, vmlinuz or ntoskrnl.exe) into memory.

If necessary, a two-stage loader strategy is used: the first stage loads a more sophisticated second-stage loader, which can handle complex tasks such as switching between multiple operating systems, loading modules, and applying kernel settings.

From there, the kernel takes over, initializes drivers, mounts the root file system, and launches the init system to begin user-level operations.

Here’s a step-by-step process:

  1. BIOS is loaded: The Basic Input/Output System initializes hardware and prepares the system to load the OS.
  2. Power-On Self-Test (POST) is completed: The system checks RAM, keyboard, and other hardware to ensure everything works properly.
  3. Operating System is loaded: The BIOS hands over control to the bootloader, which then loads the operating system into memory.
  4. System Configuration is accomplished: System settings and configuration files are loaded and executed.
  5. System Utilities are loaded: Essential background programs and services are started.
  6. User is authenticated: The user logs in to gain access to the system.
Booting Process in OS

We learned a new term here, Multiple Operating Systems, so let’s know it better!

What is Dual Booting?

“Dual booting refers to the setup where two operating systems are installed on the same computer. Some systems even have more than two, which is then called multi-booting.”

What is Dual Booting

In such setups, the hard drive is divided into multiple partitions, with each partition containing a separate operating system. When the computer starts, a boot manager (like GRUB or Windows Boot Manager) presents a menu, allowing you to choose which OS to boot into. The boot manager understands multiple file systems and OS types, helping the system load the selected one properly.

Difference Between Booting and Rebooting

Booting is the process of starting a computer from a completely powered-off state and loading the operating system. While Rebooting is the process of restarting a running computer without turning off the power completely. Let’s dive into the differences in brief:

FeatureBootingRebooting
DefinitionStarting the computer from a powered-off stateRestarting the computer while it is already on
Also CalledCold boot or Hard bootWarm boot or Soft boot
Power SupplyRequires turning the power onDoes not involve powering off completely
TriggerOccurs when the PC is turned onTriggered manually or by software/system error
System StateStarts from zero; no processes are runningRestarts with current settings or updates
Common Use CaseTurning on the PC in the morningApplying system updates or fixing minor issues
BIOS/UEFI ExecutionExecutes from scratchMay skip or quickly re-execute depending on system

Modern Booting Methods (UEFI vs BIOS)

What is BIOS?

The typical firmware embedded on a computer’s motherboard is known as BIOS (Basic Input/Output System). Once the system powers up, it loads the operating system from storage into memory and checks peripherals, including the keyboard and RAM, for problems.

There are some limitations to BIOS, however. It can only address a limited amount of memory since it runs in 16-bit mode. It’s also not as well-suited for today as it does not recognize massive data storage drives and modern technology.

Modern Booting Methods (UEFI vs BIOS)

What is UEFI?

UEFI (Unified Extensible Firmware Interface) is a far better and modern replacement for the BIOS. It performs the same initial steps, like the operating system and hardware diagnostics, but does it faster, is more versatile, and has kept up with times.

UEFI has access to significantly more RAM than BIOS, as it runs in 32-bit or 64-bit mode. Large hard drives, more security options, faster boot times, and even a GUI were included in it. UEFI is more “user-friendly” in the large corporation environment because it supports remote troubleshooting and system recovery.

Common Boot Issues and Their Causes

When a computer fails to start, it is usually due to a problem with the boot process. These issues might be caused by hardware defects, incorrectly adjusted settings, or corrupted system files.

Boot IssueCause
No Boot Device FoundIncorrect boot order, disconnected hard drive, or failed SSD/HDD
Operating System Not FoundMissing or corrupt OS files, damaged bootloader, or deleted partition
Blue Screen on Boot (BSOD)Faulty drivers, hardware failure, or incompatible updates
System Stuck on BIOS/UEFI ScreenPeripheral device issues, outdated BIOS, or hardware conflicts
Reboot LoopCorrupt system files, failed update, or malware
Black Screen After BootDisplay issues, GPU/driver problems, or corrupted user profile
GRUB Rescue Mode (Linux)GRUB loader corrupted or missing configuration files
Boot Takes Too LongToo many startup programs, failing hard drive, or background processes

Conclusion

Finally, booting is the fundamental process that starts up your computer and prepares it to run the operating system in memory. It begins by running a check on your hardware and then starts the OS loading so you can actually use your device. Understanding booting is also good to know what goes on in the background when you fire up your computer (cold boot), restart your computer (warm boot), or run two operating systems (dual boot). Understanding BIOS, UEFI, MBR, and typical boot difficulties can also help you troubleshoot problems more quickly.

FAQ

1. What are the main steps in booting?

The main steps in booting include powering on the system, running the Power-On Self-Test (POST), locating the bootable device, loading the bootstrap loader, and finally loading the operating system into RAM.

2. Is booting different from restarting?

Yes, booting starts the computer from an off state, while restarting reboots the system without turning off the power completely.

3. What is the first step in booting?

The first step in booting is running the POST (Power-On Self-Test), which checks hardware like RAM and keyboard before loading the operating system.

About the Author

Senior Consultant Analytics & Data Science, Eli Lilly and Company

Sahil Mattoo, a Senior Software Engineer at Eli Lilly and Company, is an accomplished professional with 14 years of experience in languages such as Java, Python, and JavaScript. Sahil has a strong foundation in system architecture, database management, and API integration. 

fullstack