Skip to content
Study Hall
Lesson 4 of 5Hardware, Software and Operating Systems
Unit 2 · Lesson 4 of 5

Firmware, POST and the Boot Sequence

What happens in the seconds between pressing the power button and seeing a login screen — and how to read the failures.

3 min read8 practice questionsAsk AI about this →

Key things to remember

  1. 1POST runs before any operating system exists, and reports failures by beeps or LEDs because the display may not work yet.
  2. 2Firmware hands control to the bootloader, which loads the kernel into RAM; firmware's job then ends.
  3. 3UEFI replaced legacy BIOS: GPT partitioning, drives over 2 TiB, 128 partitions, and Secure Boot.
  4. 4Legacy BIOS + MBR is limited to 2 TiB drives and four primary partitions.
  5. 5A dead CMOS battery causes forgotten settings and a wrong clock, not a dead machine.
  6. 6Changing SATA mode after installing Windows causes a boot failure, because the storage driver no longer matches.

When you press the power button, there is no operating system. There is not even anything in RAM — it is volatile, so it woke up full of noise. Something has to take a machine that knows nothing and get an operating system loaded and running, and that something is firmware: code stored in non-volatile memory on the motherboard itself.

Firmware is in charge until the moment the kernel is in RAM.1Power onPSU sends the Power Good signal2POSTFirmware tests CPU, RAM and video; beeps or codes on failure3Firmware setupUEFI/BIOS reads its settings from NVRAM4Boot deviceFirmware walks the boot order and finds a bootloader5BootloaderLoads the OS kernel into RAM6Kernel + driversKernel starts, loads drivers, mounts the file system7LoginUser space starts and the desktop appearsNo video and repeating beeps almost always means RAM or video, because POST fails before the screen can be used.
Fig 1Firmware is in charge until the kernel is loaded into RAM.

What the firmware does

  1. Power good — the PSU tests its own rails and sends a Power Good signal. Until it arrives, the CPU is held in reset.
  2. POST (Power-On Self-Test) — the firmware checks that the CPU, RAM and video are present and responding. A failure here is reported by beeps or diagnostic codes, because there may be no working display to report on.
  3. Hardware inventory — the firmware detects drives, USB controllers and expansion cards, and reads its saved settings.
  4. Boot device selection — it walks the configured boot order looking for a device with a bootloader.
  5. Hand-off — it loads the bootloader, which loads the OS kernel into RAM and transfers control. Firmware's job is now finished.
  6. Kernel initialization — the kernel starts, loads drivers, mounts the file system, and starts user-space services until a login appears.
Why beep codes exist
POST tests memory and video before it can use the screen. If RAM or the graphics adapter fails, there is no way to display an error — so the firmware uses the one output device guaranteed to work: a small speaker. Repeating beeps almost always mean RAM or video. Modern boards use diagnostic LEDs or a two-digit POST code display for the same reason.

BIOS and UEFI

ALegacy BIOS
  • 16-bit code, text-only interface
  • MBR partitioning: maximum 2 TiB drives, 4 primary partitions
  • Boots by running code in the first sector of the drive
  • No built-in verification of what it loads
BUEFI
  • 32/64-bit, can have a graphical interface and mouse support
  • GPT partitioning: enormous drives, 128 partitions
  • Boots a proper .efi executable from a dedicated EFI System Partition
  • Secure Boot can verify a bootloader's digital signature

Every current machine uses UEFI, though most offer a compatibility mode (CSM) for booting older systems. The practical consequence you will meet is that a Windows installer prepared for UEFI will not boot a machine set to legacy mode, and vice versa — one of the most common reasons an installation USB is "not detected".

Settings worth knowing

SettingWhat it doesWhen you change it
Boot orderWhich device the firmware tries firstInstalling an OS from USB
Secure BootOnly loads digitally signed bootloadersTurn off to install some Linux distributions
SATA mode (AHCI/RAID)How the chipset presents drivesChanging after installing Windows causes a boot failure
XMP / DOCPRuns RAM at its advertised speedNew build — without it, fast RAM runs at a slow default
Virtualization (VT-x / AMD-V)Allows hardware-accelerated VMsRunning virtual machines or Android emulators
CSM / Legacy bootEmulates old BIOS behaviourBooting an older OS or an MBR-formatted installer
The CMOS battery
Firmware settings and the real-time clock are kept in low-power memory maintained by a CR2032 coin cell. When that battery dies, the machine still works but forgets its settings and resets its clock at every power-off. A computer that boots with the date set to 2010 and the boot order reset almost always needs a $5 battery, not a new motherboard.
Firmware updates
A firmware update can add support for a newer CPU or fix a bug, but an interrupted update can leave the board unbootable. Never update firmware unless you have a specific reason, never during a thunderstorm or on an unprotected desktop, and always use the exact file for your board revision.

Worked examples

Reveal one step at a time and try to beat it to the next line.

Example 1
A computer powers on, fans run, but there is no display and the board beeps three times repeatedly. Diagnose it and justify your reasoning.
Example 2
A student creates a Windows installation USB, but the firmware boot menu never lists it. Give three plausible causes and how to test each.

Where marks get lost

  • Saying the operating system runs POST. POST happens before any OS is loaded — that is the whole point of firmware.
  • Thinking a dead CMOS battery prevents booting. It causes forgotten settings and a wrong clock; the machine still starts.
  • Using "BIOS" and "UEFI" as if they were the same thing in an exam answer that asks you to compare them.
  • Changing SATA mode from AHCI to RAID after Windows is installed, then being surprised by a boot failure.
  • Updating firmware for no reason. The upside is usually zero and the downside is a dead motherboard.

Flashcards 8

What does POST stand for and when does it run?
Why does POST use beep codes?
Two advantages of UEFI over legacy BIOS
MBR limits
+ 4 more

Practice

1
Put these boot stages in order.
  1. 1POST checks CPU, RAM and video
  2. 2The kernel loads drivers and mounts the file system
  3. 3Firmware finds a boot device and loads the bootloader
  4. 4PSU sends the Power Good signal
2
A computer keeps forgetting its clock and boot order every time it is unplugged overnight. What is the fault?
3
Which is an advantage of UEFI over legacy BIOS?
4
What is the name of the program that loads the operating system kernel into RAM?
5
Why does POST report errors with beeps rather than an on-screen message?
6
A technician changes SATA mode from AHCI to RAID in firmware on a working Windows machine. What happens next?
7
Match each firmware setting to its purpose.
Boot order
Secure Boot
XMP / DOCP
VT-x / AMD-V
8
During which stage does the computer FIRST have an operating system running?

Spot a mistake on this page? Let us know