Systems study
Offline — showing the cached copy.
Home / Operating Systems / 10. Boot and init

10. Boot and init

One-liner. Firmware finds a bootloader, the bootloader loads a kernel and initramfs, the kernel starts PID 1.

Memorize

  • UEFI/BIOS → bootloader (GRUB or systemd-boot) → kernel + initramfs.
  • The initramfs carries the drivers needed to mount the real root (storage, LVM, encryption).
  • The kernel initializes devices, mounts root, then executes /sbin/init (systemd) as PID 1.
  • systemd brings up default.target and its dependencies; multi-user.target is the server baseline.
  • dmesg shows kernel messages from boot; journalctl -b shows the full boot log.
  • Failed boot usually means fstab, initramfs, or a broken bootloader — recovery is a live USB + chroot.
BOOT CHAIN UEFI bootloader kernel initramfs root mount systemd (PID 1) targets services
Boot chain

Trap. Rebuilding the initramfs after a storage change is easy to forget — the system won't boot. Do this. Run update-initramfs -u / dracut -f after changing LVM, encryption or drivers, then test a reboot.

Check

What is the initramfs responsible for?