Chapter 7. Boot, the Kernel, and Hardware Support
A Debian system starts in layers. The firmware initializes the machine and
chooses something to execute; the boot loader loads a kernel and an initial
ramdisk; the kernel mounts the root filesystem and starts systemd; systemd
reaches a target that defines how far the boot should go. Each layer has its
own configuration, its own failure modes, and its own tools. This chapter
follows that chain from the firmware to the default target, then covers the
parts an administrator changes most often: GRUB and its kernel parameters,
installed kernels and fallbacks, the initramfs and driver modules, firmware
and CPU microcode, the kernel's sysfs and sysctl interfaces, and the journal
evidence to collect when a boot or a device misbehaves.
The examples use Debian 13.7 with kernel 6.12.117+deb13-amd64, systemd
257.13, GRUB 2.12, and initramfs-tools 0.148.4. Your versions, boot times,
sizes, device names, and UUIDs will differ. Commands entered in john's
ordinary shell begin with $, commands entered in a root shell begin with
#, a single elevated command is written $ sudo command, and the prompt
marker is not typed. John's sudo access was established in
Chapter 2; sudo -i opens a root shell and exit
leaves it. Each console block shows one complete command followed by its
own output; where a capture is shortened, the text says what was omitted.
Work files for the module example live in a dedicated workspace under
john's home, created in Section 7.3.3 as ~/debian-handbook/boot-kernel.
Nothing in this chapter needs /tmp or /var/tmp; the files that must
survive are either in that workspace or in the system paths the kernel
itself reads.