Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

Bootloader

Direct answer

The bootloader is loaded by firmware and loads the kernel and initramfs with a kernel command line. GRUB 2 is the common Linux bootloader; systemd-boot is an alternative on UEFI.

When to use this

Use it when the system stops at a bootloader prompt or boots the wrong kernel.

First 30 seconds

1. Stuck at grub> or grub rescue> → config or disk not found.

2. Boot an older entry from the menu if the newest fails.

3. Rebuild config: update-grub (Debian) / grub2-mkconfig -o /boot/grub2/grub.cfg (RHEL).

4. Reinstall to the disk if needed: grub-install /dev/<disk>.

5. Reboot and confirm the default entry.

Operational verification

bootloader loaded → reads its configuration → menu → loads kernel and initramfs with the command line

Evidence · next step

For Boot Process → Bootloader, continue with the first unproven Topic check: Identify the exact loader implementation/instance and firmware path used for the failed boot. If that boundary is healthy, advance to the adjacent check: Inspect selected entry, kernel path, initramfs path, root/console parameters and device identifiers as seen by the loader. 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 the system stops at a bootloader prompt or boots the wrong kernel.
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

firmware handoff → bootloader binary → configuration/menu evaluation → storage/filesystem resolution → kernel + initramfs selection → kernel command line → kernel entry point

Healthy evidence: the intended bootloader instance resolves current artifacts, selects the intended entry and passes the expected command line to the intended kernel.

Step 2 Verification and output interpretation Verify boundary

Existing fast checks for this Topic. - Identify the exact loader implementation/instance and firmware path used for the failed boot.

  • Inspect selected entry, kernel path, initramfs path, root/console parameters and device identifiers as seen by the loader.
  • Compare loader configuration with currently installed kernel packages and actual /boot or ESP contents.
  • After repair, boot the intended default path unattended and verify handoff through kernel/initramfs into normal userspace.

Verification chain. firmware handoff → bootloader binary → configuration/menu evaluation → storage/filesystem resolution → kernel + initramfs selection → kernel command line → kernel entry point

Step 3 Commands Verify boundary
efibootmgr -v
ls /boot /boot/efi/EFI
Step 4 Failure modes and next checks Narrow the fault

Suspicious evidence: a stale loader/config references removed kernels, wrong root identifiers or paths that exist in running Linux but not in the bootloader's view.

Step 5 Common mistakes Narrow the fault
  • Removing old kernels and leaving no fallback.
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

Regenerate the configuration after changes rather than editing generated files. Keep at least one older kernel as a fallback entry.

Key checks
  • 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

Treat the bootloader as an independent configuration and artifact-resolution layer. Show which loader instance executed, which config/menu entry it evaluated, which kernel/initramfs files it loaded and the exact command line it passed. A visible menu is only evidence that some loader started, not that it references the intended root or current artifacts.

ReferenceImportant terms & boundaries5 sections · depth on demand

What this shows and what it does not

Bootloader verification shows that the intended kernel/initramfs and command line were loaded and handed off, but it does not show the kernel can initialize hardware or mount the real root filesystem.

Bootloader is generic loader semantics.

In depth

Boot loaders on Linux

The boot loader sits between the firmware and the kernel. It finds a kernel image and an initramfs, builds the kernel command line and starts the kernel. The systemd bootup(7) manual page names GRUB and systemd-boot as typical loaders, and notes that on some EFI systems the firmware can load the kernel directly. That's possible because modern kernels can be built as EFI executables.

Common boot loaders

LoaderFirmwareTypical use
GRUB 2BIOS and UEFIMost distributions; scripting, many file systems
systemd-bootUEFI onlySimple menu of entries on the ESP; Arch, some Fedora variants
shim + GRUBUEFI Secure BootSigned first-stage loader that verifies GRUB and the kernel
EFI stub / UKIUEFIThe kernel (or a unified kernel image) is started directly by firmware
PXE / iPXENetworkBooting installers or diskless systems

What a loader must know

ItemWhere it usually comes from
Kernel image/boot/vmlinuz-<version>
initramfs/boot/initrd.img-<version> or initramfs-<version>.img
Root file systemroot=UUID=... on the command line
Extra parametersGRUB defaults or loader entry files

Checking what was used for this boot

host$ cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-6.8.0-49-generic root=UUID=3f1c...a9 ro quiet splash
host$ ls -1 /boot | grep -E "vmlinuz|initrd|initramfs"
host$ bootctl status 2>/dev/null | sed -n '1,12p'
host$ sudo ls /boot/efi/EFI/
BOOT  ubuntu
host$ sudo ls /boot/efi/loader/entries/ 2>/dev/null

Keeping a fallback

Distributions keep the previous kernel (and its initramfs) installed. When a new kernel fails to boot, choose the older one in the loader menu, fix the problem, then reboot into the new one. Don't remove the older kernel until the new one has booted successfully.

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

Bootloader is part of Boot Process → Bootloader. Bootloader covers the stage that selects a Linux boot entry, locates kernel/initramfs artifacts, supplies the kernel command line and transfers execution from firmware into the chosen kernel.

Topic-specific state model. Bootloader covers the stage that selects a Linux boot entry, locates kernel/initramfs artifacts, supplies the kernel command line and transfers execution from firmware into the chosen kernel.

Interpretation rule. - Bootloader menu displayed ≠ selected entry references valid kernel/initramfs files.

  • Kernel file exists ≠ bootloader path/device mapping resolves it in the boot environment.
  • Default entry configured ≠ firmware actually launches that bootloader instance.
  • Bootloader accepted the entry ≠ kernel parameters and root identifiers are correct.

Quick reference

Boot loaders on Linux: GRUB 2 (most distributions), systemd-boot (simple UEFI loader, used by some Fedora/Arch/Pop setups), shim for Secure Boot chain-loading.

TaskGRUB (RHEL)GRUB (Debian/Ubuntu)
Regenerate configgrub2-mkconfig -o /boot/grub2/grub.cfgupdate-grub
Defaults/etc/default/grubsame
Kernel argsgrubby --update-kernel=ALL --args='…'edit GRUB_CMDLINE_LINUX, update-grub
Default entrygrubby --set-default /boot/vmlinuz-…grub-set-default

RHEL 8+ uses BootLoaderSpec entries in /boot/loader/entries/ managed by grubby.

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. Bootloader verification shows that the intended kernel/initramfs and command line were loaded and handed off, but it does not show the kernel can initialize hardware or mount the real root filesystem.

ReferenceConfiguration & state1 section · depth on demand

Configuration, persistence and lifecycle

Distribution/platform context. Bootloader is generic loader semantics. GRUB owns GNU GRUB-specific configuration/generation; BIOS/UEFI owns firmware selection; Linux Kernel owns behavior after control transfer.

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 → Bootloader. 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 bootloaderlinux loader kernel initramfsboot loader troubleshootinglinux boot entry
Embedded reference data

Quick lookup tables

Bootloader operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for Bootloader.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateBootloader covers the stage that selects a Linux boot entry, locates kernel/initramfs artifacts, supplies the kernel command line and transfers execution from firmware into the chosen kernel.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 chainfirmware handoff → bootloader binary → configuration/menu evaluation → storage/filesystem resolution → kernel + initramfs selection → kernel command line → kernel entry pointTrace requested/configured state through effective state to the observed workload result.
Failure boundaryBootloader verification proves that the intended kernel/initramfs and command line were loaded and handed off; it does not prove the kernel can initialize hardware or mount the real root filesystem.Stop broad troubleshooting at the first boundary that is not supported by evidence.
Positive evidenceCorrelated Linux boot evidence can establish this proof path: firmware handoff → bootloader binary → configuration/menu evaluation → storage/filesystem resolution → kernel + initramfs selection → kernel command line → kernel entry pointUse 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. Bootloader verification proves that the intended kernel/initramfs and command line were loaded and handed off; it does not prove the kernel can initialize hardware or mount the real root filesystem.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.

Bootloader · operational reference

Compact Linux state, persistence, verification and boundary reference for fast lookup.

Reference boundaryBootloader
Topic pathBoot Process → Bootloader
Runtime stateBootloader covers the stage that selects a Linux boot entry, locates kernel/initramfs artifacts, supplies the kernel command line and transfers execution from firmware into the chosen kernel.
Fast checks- Identify the exact loader implementation/instance and firmware path used for the failed boot. - Inspect selected entry, kernel path, initramfs path, root/console parameters and device identifiers as seen by the loader. - Compare loader configuration with currently installed kernel packages and actual /boot or ESP contents. - After repair, boot the intended default path unattended and verify handoff through kernel/initramfs into normal userspace.
Verification chainfirmware handoff → bootloader binary → configuration/menu evaluation → storage/filesystem resolution → kernel + initramfs selection → kernel command line → kernel entry point Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary.
Failure boundaryBootloader verification proves that the intended kernel/initramfs and command line were loaded and handed off; it does not prove the kernel can initialize hardware or mount the real root filesystem. 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?