The kernel and the programs it runs. This lesson goes one step earlier: how the kernel itself gets into memory, and which program it starts first.
Someone restarts a server after a kernel update. The screen does not show a login. It shows one line:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
The chips work, the disk is fine, and the kernel is running. It just cannot find its own disk. To fix this, you need to know what each boot stage hands to the next.
By the end you will be able to name every stage between the power button and the first program, say what each one hands to the next, and read a boot failure to find which stage stopped.
The history (optional)
Intel’s manual says that after a reset, an x86 chip from the 80386 onwards fetches its first instruction from address FFFFFFF0 hex. That is 16 bytes below the top of a 4 GiB address space.
On 1 March 2023 the security company ESET reported BlackLotus, a UEFI bootkit: malware that plants itself in the early boot stages, before the operating system starts. ESET said it was the first publicly known malware in the wild to bypass UEFI Secure Boot on fully updated Windows 11 machines. It abused a flaw, CVE-2022-21894, that Microsoft had patched in January 2022, and ESET said it was sold on forums for about US$5,000 from October 2022.