← How Computers Work lessons

How a computer starts up

Press the button and a relay race begins: each small program starts a bigger one. Watch the parts light up in order.

Interactive 3D motherboard starting up: power supply, firmware self-test, boot drive, operating system loading into memory

This is the text version. With JavaScript on, it’s a 3D drawing you can play, slow down and turn.

Step by step

  1. Power on. You press the button. Power comes from the battery, or the charger when it’s plugged in. Small voltage regulators beside the processor turn it into the steady low voltages the chips need, and once those are steady they signal that the power is good. Now the processor is allowed to start.
  2. Self-test. The first program to run is the firmware, kept on its own small chip on the motherboard. It runs the power-on self-test: is the processor there, is the memory there and working? It all checks out, so it shows the maker’s logo.
  3. Find the drive. The firmware goes down its boot order, a list of places to start from: the main drive first, then USB, then the network. The main drive has a bootloader on it, a small program whose only job is to load the operating system, so the firmware hands it the baton.
  4. Load the OS. The bootloader copies the operating system from the drive into memory, and the processor starts running it. The operating system starts its drivers and services, then shows the login screen. On a hard drive this step takes minutes: starting up means thousands of small files from all over the disk, and the arm has to swing and wait for every one.

From the lesson

Why would a computer spin its fan but show nothing?

Because it failed its self-test before it could show anything, and beeped to say so. The new RAM wasn’t clipped in. Jenny pushed it down, the self-test passed, and the logo came back. Then the laptop hit the next problem.

Lesson 15.1: Nothing at All

What runs before Windows even starts?

The firmware: a little program in a chip on the motherboard. It tests the hardware, shows the logo and looks for a drive with a bootloader to hand off to. On Grandma Ruth’s laptop it’s doing all that perfectly now. It just can’t find anything to hand off to.

Lesson 15.2: The First Program

Why does the laptop say there’s nothing to start?

Because there isn’t. The new SSD is blank: no bootloader, no operating system, nothing. The firmware checked every place on its list and honestly reported it. The laptop is fine. It needs something to run, and that means choosing an operating system.

Lesson 15.3: No Bootable Device

More 3D drawings

All How Computers Work lessons · See it in 3D