Pcornel
Linux · Boot Process

BIOS / UEFI

Cheat sheet · https://pcornel.dk/topic.php?topic=2728

Back to the Topic

Answer

BIOS and UEFI are the firmware that starts the machine. Legacy BIOS loads the bootloader from the MBR; UEFI loads an EFI program (e.g. shimx64.efi, grubx64.efi) from the FAT-formatted EFI System Partition and keeps boot entries in NVRAM. Secure Boot checks signatures.

Remember

[ -d /sys/firmware/efi ] tells you if the system booted in UEFI mode. UEFI needs the ESP mounted at /boot/efi and a boot entry (efibootmgr -v). Secure Boot rejects unsigned kernels or modules.

First checks

  • efibootmgr -v — UEFI boot entries
  • mokutil --sb-state — Secure Boot state
  • systemd-analyze — boot time per stage
  • journalctl -b -p err — errors in this boot
  • journalctl --list-boots — previous boots
  • cat /proc/cmdline — kernel command line used

Verify in this order

power on → firmware → boot entry (UEFI NVRAM or BIOS disk order) → bootloader loaded (signature checked with Secure Boot)

Where it usually breaks

First mismatch in persistent unit/config/generator → dependency/order graph → systemd state → process/cgroup → socket/resource dependency → journal → consumer check; preserve identity/native diagnostic/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2728

Confirmation

Confirm action

Continue?