Use it when the system stops at a bootloader prompt or boots the wrong kernel.
Bootloader
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.
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.
bootloader loaded → reads its configuration → menu → loads kernel and initramfs with the command line
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
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
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 · 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.
Regenerate the configuration after changes rather than editing generated files. Keep at least one older kernel as a fallback entry.
systemd-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
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
| Loader | Firmware | Typical use |
|---|---|---|
| GRUB 2 | BIOS and UEFI | Most distributions; scripting, many file systems |
| systemd-boot | UEFI only | Simple menu of entries on the ESP; Arch, some Fedora variants |
| shim + GRUB | UEFI Secure Boot | Signed first-stage loader that verifies GRUB and the kernel |
| EFI stub / UKI | UEFI | The kernel (or a unified kernel image) is started directly by firmware |
| PXE / iPXE | Network | Booting installers or diskless systems |
What a loader must know
| Item | Where it usually comes from |
|---|---|
| Kernel image | /boot/vmlinuz-<version> |
| initramfs | /boot/initrd.img-<version> or initramfs-<version>.img |
| Root file system | root=UUID=... on the command line |
| Extra parameters | GRUB 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.
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.
| Task | GRUB (RHEL) | GRUB (Debian/Ubuntu) |
|---|---|---|
| Regenerate config | grub2-mkconfig -o /boot/grub2/grub.cfg | update-grub |
| Defaults | /etc/default/grub | same |
| Kernel args | grubby --update-kernel=ALL --args='…' | edit GRUB_CMDLINE_LINUX, update-grub |
| Default entry | grubby --set-default /boot/vmlinuz-… | grub-set-default |
RHEL 8+ uses BootLoaderSpec entries in /boot/loader/entries/ managed by grubby.
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
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 → Bootloader. 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
Bootloader operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for Bootloader.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | 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. | 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 | firmware handoff → bootloader binary → configuration/menu evaluation → storage/filesystem resolution → kernel + initramfs selection → kernel command line → kernel entry point | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | 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. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated 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 point | 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. 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 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. |
Bootloader · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | Bootloader |
|---|---|
| Topic path | Boot Process → Bootloader |
| Runtime state | 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. |
| 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 chain | firmware 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 boundary | 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. 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. |