Booting: UEFI, GRUB, kernel, initramfs
Sign in to read this lesson
The server does not start and the screen says "grub rescue" or "emergency mode" — what now? In this lesson we learn which stages pass between pressing the power button and the login prompt, where each stage can break, and how to enter recovery mode from the GRUB menu.
What you will learn
- The order: UEFI/BIOS → GRUB (the bootloader) → kernel + initramfs → systemd (PID 1) → services and login.
- UEFI loads the bootloader from
/boot/efi, GRUB loads the kernel and initramfs from/boot. - GRUB settings live in
/etc/default/grub; after changing them,sudo update-grubis required. - At boot, in the GRUB menu,
elets you change kernel parameters temporarily or enter recovery mode. systemd-analyze blameshows what slows the boot,journalctl -b -1shows the previous boot's logs.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.