Boot process

Also known as: booting · boot sequence

On this page 7

The boot process, also called booting or the boot sequence, is the ordered chain of steps that takes a computer from the moment power is applied to the point where a fully initialized operating system is ready to run programs. In operating systems, the boot process belongs to the domain of boot & firmware: it covers everything that happens before and while the kernel takes control of the hardware.

Each stage of booting has a narrow job: initialize just enough hardware, find the next stage, verify it where security policy requires, and hand over control. Because every stage depends on the one before it, the boot process is also where many of the hardest failures and the most important security guarantees of a computer are located.

Stages of the boot process

A modern PC boots in a fixed sequence of stages, from the CPU reset vector to the first user-space process. The same structure applies to servers and, with different firmware names, to most ARM devices. The table below shows the typical order on a UEFI-based computer.

StageCode that runsMain result
Power-on and resetCPU reset vector in firmware flashFirst instruction executes
Hardware initializationUEFI firmware, including POSTMemory, chipset and devices ready
Boot device selectionFirmware boot managerBoot entry chosen from boot order
BootloaderFor example GRUB or Windows Boot ManagerKernel and initial ramdisk loaded
Kernel initializationOperating system kernelDrivers, memory management, scheduler
User space startinit or systemd, or Windows session managerServices and login screen
Typical boot stages on a UEFI computer

The earliest stage is the most constrained. When the CPU leaves reset, main memory is not yet usable, so firmware first runs from cache or flash and trains the DRAM controller. Only after memory initialization can larger firmware modules, drivers and option ROMs load.

BIOS and UEFI boot paths

The boot process differs significantly between legacy BIOS and UEFI firmware. A legacy BIOS reads the first 512-byte sector of a disk, the master boot record, and jumps into it in 16-bit real mode. UEFI instead reads a FAT-formatted EFI system partition and runs a bootloader file as a proper executable in 32-bit or 64-bit mode.

AspectLegacy BIOSUEFI
Boot code locationMaster boot record sectorFiles on the EFI system partition
Processor mode at handoff16-bit real mode32-bit or 64-bit protected mode
Partition schemeMBR, disks up to 2 TiBGPT, very large disks
Boot entriesDevice order onlyNamed entries stored in NVRAM
Signature checkingNot availableSecure Boot supported
Legacy BIOS boot compared with UEFI boot

Many PCs once included a Compatibility Support Module (CSM) that emulated BIOS behavior on UEFI firmware. Current platforms increasingly ship without CSM, so older operating systems and some legacy boot media no longer start on new hardware.

Trust and verification during booting

Because malware that runs before the kernel can hide from the operating system, the boot process is a central security boundary. Modern platforms protect it by building a chain of trust, in which each stage checks or records the next before handing over control.

MechanismWhat it doesEffect on failure
Secure BootChecks bootloader and kernel signatures against firmware keysUnsigned code is refused
Measured bootRecords hashes of each stage in the TPMBoot continues, remote attestation detects change
Verified bootVerifies system images, common on phones and ChromebooksDevice stops or enters recovery
Hardware root of trustChecks firmware itself before the CPU runs itTampered firmware does not start
Mechanisms that protect the boot chain

These mechanisms are complementary rather than interchangeable. Secure Boot enforces a policy at the moment of loading, whereas measured boot produces evidence that another system can evaluate later, for example before granting network access or releasing a disk encryption key.

Cold boot, warm boot and network boot

Not every boot starts from the same state. A cold boot starts from powered-off hardware and runs the full initialization, while a warm boot restarts software without removing power and can skip parts of hardware testing. Fast startup modes in desktop systems combine a partial shutdown with a saved kernel state to shorten the next start.

  • Cold boot: full hardware initialization, slowest but most predictable.
  • Warm boot: restart without power loss, faster, some device states may persist.
  • Resume from hibernation: reloads a saved memory image instead of a fresh kernel start.
  • PXE network boot: firmware fetches the bootloader from a server, common in data centers.

Boot time on a modern desktop with an SSD is typically 5 to 20 seconds from power-on to login, but servers often need several minutes, mainly because of memory training and option ROMs on storage and network adapters.

Common boot failures and their causes

Most boot failures can be located by asking which stage stopped. Firmware errors appear before any operating system logo, bootloader errors usually show a text prompt, and kernel or driver errors appear after the operating system has started loading. The table below lists typical symptoms.

SymptomLikely stageTypical cause
No display, beep codesFirmware and POSTMemory, CPU or power fault
No bootable device messageBoot device selectionWrong boot order or missing boot entry
Security violation messageBootloader verificationUnsigned or revoked bootloader
Kernel panic or stop errorKernel initializationFaulty driver or missing root file system
Repeated restartsKernel or early servicesBoot loop after a failed update
Boot failure symptoms and likely causes

A frequent mistake is reinstalling the operating system when only the boot entry or the EFI system partition is damaged. Repairing the bootloader is usually faster and preserves user data.

A plain-language summary

When you press the power button, a computer does not know much yet. It first wakes up its own parts. Then it looks for the system it should start. This chain of steps is the boot process.

Think of it as a relay race. The first runner is the firmware on the motherboard. It passes the baton to a small loader on the disk. The loader passes it to the operating system. If one runner trips, the race stops, and the computer does not start.

An example from practice

An IT technician at a mid-sized accounting firm receives a laptop that shows a no bootable device message after a failed firmware update. Instead of reinstalling Windows, the technician opens the firmware setup and sees that the Windows Boot Manager entry has disappeared from the boot order, although the disk is still detected.

Starting from a recovery USB drive, the technician uses the bcdboot tool to recreate the boot files on the EFI system partition. The firmware registers a new boot entry, Secure Boot validates the signed bootloader, and the laptop starts normally within about 15 minutes. All documents and applications remain intact, and no reinstallation is needed.