Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

BIOS / UEFI

Direct 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.

When to use this

Use it when a system does not find a boot disk, after disk replacement, or with Secure Boot problems.

First 30 seconds

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.

Operational verification

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

Evidence · next step

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
Platform / version applicability
linux
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformlinux
Scope / prerequisiteUse it when a system does not find a boot disk, after disk replacement, or with Secure Boot problems.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points

[ -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.

Key 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
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.
  • BootOrder lists the option numbers in the order to try.
  • BootNext names 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.EFI on x64.

BIOS and UEFI compared

Legacy BIOSUEFI
Partition tableUsually MBRGPT (MBR possible)
Boot code locationFirst sector + gap / BIOS boot partitionFiles on the EFI System Partition
Boot entriesDisk order in the BIOS setupNVRAM variables (Boot####, BootOrder)
Secure BootNoYes (signed loaders and kernels)
Linux pathGRUB 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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:

UEFILegacy BIOS
Boot codeEFI binaries on the ESP (/boot/efi/EFI/<distro>/)MBR boot code + GRUB core
Secure Bootshim (Microsoft-signed) → GRUB → signed kernelNo
Boot entriesNVRAM (efibootmgr)Disk order
Disk labelGPTMBR (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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor doclinux current

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%
Technical changelog & impact

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.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

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.

Aliases that resolve here
linux uefi bootlinux bios bootefi boot entry linuxuefi secure boot linux
Embedded reference data

Quick lookup tables

BIOS / UEFI operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for BIOS / UEFI.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateBIOS / 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 verificationPin 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 chainpower/reset → firmware initialization → device discovery → boot order/NVRAM entry → ESP/legacy boot sector → EFI executable or boot code → bootloaderTrace requested/configured state through effective state to the observed workload result.
Failure boundaryFirmware 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 evidenceCorrelated 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 → bootloaderUse this observation only for the specific claim it actually supports.
Evidence limitIt 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 checkContinue 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 boundaryBIOS / UEFI
Topic pathBoot Process → BIOS / UEFI
Runtime stateBIOS / 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 chainpower/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 boundaryFirmware 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 ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?