Use it when a system does not find a boot disk, after disk replacement, or with Secure Boot problems.
BIOS / UEFI
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.
1. [ -d /sys/firmware/efi ] && echo UEFI || echo BIOS.
2. UEFI: efibootmgr -v — entry pointing to the right disk and file?
3. findmnt /boot/efi — ESP mounted?
4. Secure Boot: mokutil --sb-state.
5. Recreate the entry (grub-install / efibootmgr -c) if missing.
power on → firmware → boot entry (UEFI NVRAM or BIOS disk order) → bootloader loaded (signature checked with Secure Boot)
For Boot Process → BIOS / UEFI, continue with the first unproven Topic check: Confirm whether the current boot is UEFI or legacy BIOS and record platform/firmware version and configured boot order. If that boundary is healthy, advance to the adjacent check: For UEFI, inspect the exact EFI boot entry, backing ESP, loader path and Secure Boot state; for BIOS, confirm boot disk and partitioning assumptions. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
power/reset → firmware initialization → device discovery → boot order/NVRAM entry → ESP/legacy boot sector → EFI executable or boot code → bootloader
Healthy evidence: firmware consistently selects the intended disk/EFI entry and transfers control to the expected loader with any Secure Boot policy satisfied.
Step 2 Verification and output interpretation Verify boundary
Existing fast checks for this Topic. - Confirm whether the current boot is UEFI or legacy BIOS and record platform/firmware version and configured boot order.
- For UEFI, inspect the exact EFI boot entry, backing ESP, loader path and Secure Boot state; for BIOS, confirm boot disk and partitioning assumptions.
- Correlate recent firmware updates, disk cloning/replacement, partition edits or Secure Boot key/policy changes with the first failed boot.
- After repair, perform a real firmware-originated boot from the intended device rather than only chainloading from a rescue environment.
Verification chain. power/reset → firmware initialization → device discovery → boot order/NVRAM entry → ESP/legacy boot sector → EFI executable or boot code → bootloader
Step 3 Commands Verify boundary
[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS
efibootmgr -v
mokutil --sb-state
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: firmware selects a stale NVRAM entry, wrong disk, missing EFI path or policy-rejected loader before Linux code begins.
Step 5 Common mistakes Narrow the fault
- Installing a BIOS bootloader on a UEFI system.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
[ -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.
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
ReferenceWhat it is1 section · depth on demand
Core model
First identify actual firmware mode and boot source. On UEFI, distinguish NVRAM boot entries, EFI System Partition contents, Secure Boot policy and firmware boot order from GRUB configuration; on legacy BIOS, distinguish disk selection and boot-sector handoff. Validate firmware-visible storage and the exact handoff artifact before debugging Linux userspace.
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
Firmware evidence shows only that the platform selected and transferred control to a boot artifact, but it does not show GRUB configuration, kernel/initramfs validity or Linux workload health.
In depth
BIOS and UEFI: how firmware chooses what to boot
The firmware is the first code that runs. It decides what to load next. Legacy BIOS reads the first sector of a disk (the MBR) and jumps to the code there. UEFI instead loads EFI executables from a FAT-formatted EFI System Partition, using boot entries stored in NVRAM. The UEFI specification's boot manager chapter defines how UEFI chooses:
- Each boot option is stored in a
Boot####variable, with a description and a device path to the loader. BootOrderlists the option numbers in the order to try.BootNextnames one option to try first at the next boot only. The firmware deletes it before booting it, which prevents loops.- If no option works, the firmware falls back to a default file name on removable media:
BOOTx64.EFIon x64.
BIOS and UEFI compared
| Legacy BIOS | UEFI | |
|---|---|---|
| Partition table | Usually MBR | GPT (MBR possible) |
| Boot code location | First sector + gap / BIOS boot partition | Files on the EFI System Partition |
| Boot entries | Disk order in the BIOS setup | NVRAM variables (Boot####, BootOrder) |
| Secure Boot | No | Yes (signed loaders and kernels) |
| Linux path | GRUB boot.img + core.img | /boot/efi/EFI/<distro>/shimx64.efi or grubx64.efi |
Seeing which mode the system booted in
The directory /sys/firmware/efi only exists when Linux was booted through UEFI.
host$ [ -d /sys/firmware/efi ] && echo UEFI || echo BIOS
UEFI
host$ sudo efibootmgr -v
BootCurrent: 0003
BootOrder: 0003,0001,0000
Boot0000* UEFI: PXE IPv4 Intel(R) Ethernet ...
Boot0001* UEFI: Built-in EFI Shell
Boot0003* ubuntu HD(1,GPT,6c1b...,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)
host$ sudo efibootmgr --bootnext 0000
host$ mokutil --sb-state
SecureBoot enabled
host$ lsblk -o NAME,PARTTYPENAME,FSTYPE,MOUNTPOINT | grep -i efi
Using BootNext
efibootmgr --bootnext is the safe way to try another entry once, for example a PXE boot for reinstallation. The machine returns to the normal BootOrder afterwards, because the firmware deletes BootNext before it uses it.
Documented example, not captured output.
How it works at runtime
BIOS / UEFI is part of Boot Process → BIOS / UEFI. BIOS / UEFI covers the firmware stage that initializes platform hardware, selects a boot path and hands execution to legacy boot code or an EFI executable before Linux itself starts.
Topic-specific state model. BIOS / UEFI covers the firmware stage that initializes platform hardware, selects a boot path and hands execution to legacy boot code or an EFI executable before Linux itself starts.
Interpretation rule. - Disk visible in firmware ≠ the EFI System Partition or bootloader file is valid.
- UEFI boot entry exists ≠ its device/path still resolves after disk replacement, cloning or partition changes.
- Secure Boot enabled ≠ every kernel/module in the chain is trusted or loadable.
- Firmware setup opens normally ≠ the configured boot order points at the intended Linux installation.
Quick reference
UEFI vs BIOS for Linux:
| UEFI | Legacy BIOS | |
|---|---|---|
| Boot code | EFI binaries on the ESP (/boot/efi/EFI/<distro>/) | MBR boot code + GRUB core |
| Secure Boot | shim (Microsoft-signed) → GRUB → signed kernel | No |
| Boot entries | NVRAM (efibootmgr) | Disk order |
| Disk label | GPT | MBR (or GPT with BIOS boot partition) |
[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS
efibootmgr -v
mokutil --sb-state
Third-party kernel modules (NVIDIA, VirtualBox, ZFS DKMS) must be signed with an enrolled MOK key when Secure Boot is on.
Limits and how it fails
Primary failure point. Firmware evidence shows only that the platform selected and transferred control to a boot artifact, but it does not show GRUB configuration, kernel/initramfs validity or Linux workload health.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. BIOS / UEFI owns pre-boot platform selection and handoff. Bootloader/GRUB owns the next executable stage; Linux Kernel begins only after the bootloader loads it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Boot Process → BIOS / UEFI. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://systemd.io/ · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
BIOS / UEFI operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for BIOS / UEFI.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | BIOS / UEFI covers the firmware stage that initializes platform hardware, selects a boot path and hands execution to legacy boot code or an EFI executable before Linux itself starts. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin exact host + failed boot attempt → identify firmware mode/boot entry → capture bootloader entry + kernel/initramfs + command line → prove root-device discovery and early-userspace handoff → inspect PID 1 transaction/target → change one demonstrated cause → reboot through original path → verify service/workload readiness and regression. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | power/reset → firmware initialization → device discovery → boot order/NVRAM entry → ESP/legacy boot sector → EFI executable or boot code → bootloader | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | Firmware evidence proves only that the platform selected and transferred control to a boot artifact; it does not prove GRUB configuration, kernel/initramfs validity or Linux workload health. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated Linux boot evidence can establish this proof path: power/reset → firmware initialization → device discovery → boot order/NVRAM entry → ESP/legacy boot sector → EFI executable or boot code → bootloader | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove behavior outside the captured host/VM, firmware, disk, selected boot entry, kernel/initramfs, root topology, boot attempt, service set, time or workload scope. Firmware evidence proves only that the platform selected and transferred control to a boot artifact; it does not prove GRUB configuration, kernel/initramfs validity or Linux workload health. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven handoff: capture the exact artifact/configuration and downstream state, change only the demonstrated cause, reboot through the original path, then repeat the original service/workload and adjacent regression checks. | Continue to the next unresolved boundary while preserving the original test condition. |
BIOS / UEFI · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | BIOS / UEFI |
|---|---|
| Topic path | Boot Process → BIOS / UEFI |
| Runtime state | BIOS / UEFI covers the firmware stage that initializes platform hardware, selects a boot path and hands execution to legacy boot code or an EFI executable before Linux itself starts. |
| Fast checks | - Confirm whether the current boot is UEFI or legacy BIOS and record platform/firmware version and configured boot order. - For UEFI, inspect the exact EFI boot entry, backing ESP, loader path and Secure Boot state; for BIOS, confirm boot disk and partitioning assumptions. - Correlate recent firmware updates, disk cloning/replacement, partition edits or Secure Boot key/policy changes with the first failed boot. - After repair, perform a real firmware-originated boot from the intended device rather than only chainloading from a rescue environment. |
| Verification chain | power/reset → firmware initialization → device discovery → boot order/NVRAM entry → ESP/legacy boot sector → EFI executable or boot code → bootloader Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary. |
| Failure boundary | Firmware evidence proves only that the platform selected and transferred control to a boot artifact; it does not prove GRUB configuration, kernel/initramfs validity or Linux workload health. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |