BIOS / UEFI
Cheat sheet · https://pcornel.dk/topic.php?topic=2728
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 entriesmokutil --sb-state— Secure Boot statesystemd-analyze— boot time per stagejournalctl -b -p err— errors in this bootjournalctl --list-boots— previous bootscat /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