boot process
The chain of handoffs that takes a machine from power-on to running services: firmware, bootloader, kernel, initramfs and then the init system.
In more detail
Each stage has one job and leaves different evidence when it fails. Firmware finds a boot entry, the bootloader loads the kernel with its command line and initramfs, the initramfs mounts the real root filesystem, and the kernel starts PID 1. Locate the failed handoff before changing anything.
Related terms
- firmware — Low-level software built into a device's hardware that starts it and controls its basic functions.
- bootloader — The small program the firmware starts, which loads the kernel and initramfs into memory and passes the kernel its command line.
- GRUB — The bootloader most Linux distributions use to pick a kernel and initramfs and start it with a command line.
- initramfs — A small temporary root filesystem, loaded into memory with the kernel, that holds the drivers and tools needed to find and mount the real root filesystem.
- init process — The first process started on a system or in a container, with process ID 1 and special duties.
Taught in
- Booting: GRUB, The Kernel Command Line And initramfs — Linux Fundamentals & Systems Administration
- systemd: Units, Targets And The Boot Graph — Linux Fundamentals & Systems Administration