When you press the power button on a laptop or server, something remarkable happens in the next few hundred milliseconds: a chip that was completely inert begins executing instructions, and by the end of a second it is running code that will eventually load an entire operating system. Worth adding: the question "when does the boot process start" sounds trivial until you dig into it, because the answer depends on which layer of the machine you are looking at. The boot process — also called bootstrapping, which is where the shortened word "boot" comes from — begins at the precise moment the processor's reset state is released and it fetches its very first instruction, long before any operating system, bootloader, or even a screen exists. Understanding that starting line is the foundation for understanding everything that follows: firmware initialization, hardware detection, bootloader handoff, and kernel startup Small thing, real impact..
Introduction: The Short Answer, and Why It Needs Qualifying
The strict, technically correct answer is that the boot process starts when the CPU leaves its reset condition and reads the instruction located at its reset vector. That address does not point into your SSD. In real terms, on x86 systems this address is traditionally 0xFFFFFFF0, near the very top of the 32-bit address space; on many ARM and RISC-V designs the reset vector sits at 0x00000000 or a configurable boot base. It points into firmware stored in non-volatile memory — SPI flash, mask ROM, or an EEPROM — which is memory-mapped so the processor can read it before DRAM has even been configured The details matter here..
That single fact explains most of the confusion around the topic. There are at least four legitimate answers depending on your vantage point:
- From the user's perspective, boot starts when you press the power button.
- From the electrical perspective, boot starts when the power supply asserts a stable "power good" signal and the reset line is deasserted.
- From the hardware perspective, boot starts at the first instruction fetch from the reset vector.
- From the operating system's perspective, boot starts when the bootloader transfers control to the kernel image.
All four describe the same continuous chain of events. The rest of this article walks that chain in order.
Step-by-Step: The Real Sequence of Events
1. Power Delivery and Reset Release
Pressing the button does not immediately start computing. Day to day, the PSU ramps its rails, and once voltages are stable it sends a Power Good (often labeled PWR_OK) signal to the motherboard. Plus, only then does the chipset deassert the CPU's RESET# line. So this ordering matters: releasing reset too early would make the CPU execute garbage from unstable memory. On many modern systems a microcontroller or embedded controller (EC) manages this handshake, along with the power button itself, thermal sensors, and fan curves Not complicated — just consistent..
Quick note before moving on The details matter here..
2. The First Instruction Fetch
The instant reset is released, the CPU begins at its reset vector. What it finds is not a full operating system but a tiny firmware boot block. On Intel platforms this first stage is called SEC (Security); on UEFI-based systems the familiar phases follow:
You'll probably want to bookmark this section.
- SEC — establishes a minimal, safe execution environment.
- PEI — Pre-EFI Initialization; memory is trained and initialized.
- DXE — Driver Execution Environment; chipset, storage, and network drivers load.
- BDS — Boot Device Selection; boot order and Secure Boot checks are applied.
- TSL and Runtime — transient system load, then handing off to persistent runtime services.
Because DRAM is unusable at this point, firmware relies on Cache-as-RAM (CAR): the CPU's L2/L3 cache is borrowed as scratch memory until real RAM comes online. This is one of the most elegant tricks in the entire boot chain That's the whole idea..
3. POST and Hardware Enumeration
The Power-On Self-Test validates the machine: CPU microcode is loaded, memory is sized and tested, PCIe and USB buses are enumerated, storage controllers are detected, and option ROMs from expansion cards may execute. On older legacy BIOS systems this is where you saw the memory count and the beep codes. Modern firmware hides this behind a vendor logo, but the work is identical in kind.
4. Boot Device Selection and Bootloader Execution
Firmware consults its non-volatile boot variables — NVRAM entries on UEFI systems, or the configured boot order in CMOS on legacy systems — and selects a device. The handoff differs by era:
- Legacy BIOS/MBR: the firmware loads the first 512-byte sector of the disk, checks for the
0x55AAsignature, and jumps to the bootstrap code in the Master Boot Record. That code
That code, however, has almost nothing to work with: only about 440 bytes remain after the partition table and signature are accounted for. img, or Windows' bootmgr) from a known location on disk. Its job is to find and load a **second-stage bootloader** (GRUB's core.This is too little to do anything useful, so the MBR acts only as a stage-one loader. Only that larger program has room to understand a filesystem and read the rest of the operating system off the drive.
- UEFI/GPT: the firmware reads a FAT-formatted EFI System Partition (ESP) directly. Because it understands a real filesystem, it can load a bootloader file of any size — typically
BOOTX64.EFI,grubx64.efi, orbootmgfw.efi— with no stage-one gymnastics at all. GPT partitioning replaces the old MBR scheme, allowing larger disks and far more partitions, while a protective MBR remains for backward compatibility. This is why UEFI boots faster in principle: it skips the tiny-loader dance entirely and starts from a capable environment.
Either way, the endpoint is the same: a bootloader now resident in memory, with the disk mapped out in front of it And that's really what it comes down to. Took long enough..
5. Kernel Loading and Handoff
The bootloader's final responsibility is to place the operating system kernel into memory, set up the environment it expects, and hand control over. On Linux this means loading the compressed kernel image (which self-decompresses) alongside an initial ramdisk (initramfs), plus a command line of boot parameters. Also, exe, which loads ntoskrnl. Because of that, on Windows the equivalent path runs winload. exe and the registry hives. The transition is abrupt and total — the moment the kernel jumps to its entry point, the bootloader's work is done and its code is typically discarded.
6. Kernel Initialization
The kernel now runs with full authority over the hardware. It sets up virtual memory and paging, initializes the scheduler, detects and loads drivers for the devices the firmware enumerated earlier, and mounts the root filesystem. Even so, this is where the initramfs earns its keep: it contains the storage and filesystem drivers needed to reach the real root, which may be on a device the bare kernel cannot yet read. Once root is mounted, the kernel starts exactly one process — PID 1 — and begins to resemble a functioning system rather than a running program.
7. Init, Services, and User Space
PID 1 is the ancestor of every process that follows. On modern Linux it is usually systemd, which resolves a target (the traditional "runlevel" equivalent) and starts the cascade
starts the cascade of units defined by the current target—multi-user.Because of that, target for a server, graphical. target for a desktop. Systemd reads unit files, resolves dependencies, and starts services in parallel wherever ordering permits: filesystems are mounted, network interfaces are brought up, logging daemons begin capturing messages, and background services such as SSH or databases initialize.
If the target includes a graphical session, a display manager launches and presents a login screen. On a headless machine, getty instead waits on virtual consoles or serial lines. Once a user authenticates, a session is created, environment variables are set, and the user’s shell or desktop environment starts. User-specific services may also launch under a per-user instance of systemd Took long enough..
The computer has now completed its journey from cold silicon to a usable system. On the flip side, each layer handed off to the next with a specific contract: the firmware prepared the hardware, the bootloader found the kernel, the kernel claimed the machine, and init brought it to life. What remains is not a boot sequence, but an operating system waiting for work Nothing fancy..