Use it when kernel updates fail because /boot is full, or the system does not boot after an update.
/boot
/boot holds the kernel images, initramfs files and bootloader configuration needed to start the system; it is often a small separate partition (and /boot/efi the EFI system partition).
1. ls -ld /boot and findmnt /boot — present and mounted where expected?
2. df -h /boot — space left? df -i /boot — inodes left?
3. Find large or unexpected content: du -xh --max-depth=1 /boot | sort -h | tail.
4. Permissions and owner as the FHS and services expect?
5. Fix space, permissions or mount, then retest the service.
/boot mounted (or virtual) → correct owner and permissions → enough space → services read and write as intended
For Filesystem → /boot, continue with the first unproven Topic check: Record /boot mount/source, free space and whether an EFI partition is mounted separately. If that boundary is healthy, advance to the adjacent check: Map bootloader entries to exact kernel and initramfs artifacts rather than relying on filenames alone. 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.
df -h /bootVerification & 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 mode → bootloader/entry → /boot or EFI artifact path → kernel + initramfs identity → boot attempt → running kernel → user-space readiness
Healthy evidence: bootloader entries reference existing expected artifacts, capacity is sufficient, and post-reboot evidence shows the intended kernel actually running.
Step 2 Verification and output interpretation Verify boundary
Existing fast checks for this Topic. - Record /boot mount/source, free space and whether an EFI partition is mounted separately.
- Map bootloader entries to exact kernel and initramfs artifacts rather than relying on filenames alone.
- Compare configured next/default boot target with the currently running kernel.
- After boot-related changes, verify an actual reboot path and resulting running-kernel identity when operationally safe.
Verification chain. firmware mode → bootloader/entry → /boot or EFI artifact path → kernel + initramfs identity → boot attempt → running kernel → user-space readiness
Step 3 Commands Verify boundary
df -h /boot
ls -lh /boot
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: a newly installed kernel file is assumed active, EFI and /boot are conflated, or a full/unmounted /boot silently leaves boot artifacts stale.
Step 5 Common mistakes Narrow the fault
/bootfull of old kernels, breaking upgrades.
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.
Old kernels accumulate: remove them with apt autoremove or dnf remove --oldinstallonly. Never delete files there by hand unless you know which kernel is running (uname -r).
ls -ld <path>— owner, permissions and typestat <path>— inode, links, size and timestampsdf -h <path>— filesystem and free spacefindmnt <path>— which mount the path is on
ReferenceWhat it is1 section · depth on demand
Core model
Separate files present under /boot from the boot loader entry actually selected and from the kernel currently running. Trace firmware/bootloader selection to the referenced kernel/initramfs and then compare that with the booted kernel. Treat /boot capacity and filesystem availability as deployment prerequisites, not evidence that a new kernel will boot.
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
Files in /boot show artifact presence only; they do not show bootloader selection, firmware visibility, successful boot or that the intended kernel is running.
In depth
/boot: kernels, initramfs and boot loader files
The hier(7) manual page describes /boot as the place for static files of the boot loader. In practice it holds:
- the kernel images;
- the initramfs files;
- the GRUB configuration and modules;
- on UEFI systems, the mount point for the EFI System Partition at
/boot/efi.
Typical contents
| File or directory | Purpose |
|---|---|
vmlinuz-<version> | Compressed kernel image |
initrd.img-<version> / initramfs-<version>.img | Early user space for that kernel |
config-<version> | Kernel build configuration |
System.map-<version> | Kernel symbol table (debugging) |
grub/ or grub2/ | GRUB configuration (grub.cfg), modules, fonts |
efi/ | Mount point for the EFI System Partition (FAT) |
loader/entries/ | Boot entries (systemd-boot, BLS-style GRUB) |
Why /boot is often separate
| Reason | Detail |
|---|---|
| Encryption | The boot loader needs an unencrypted /boot when root is LUKS-encrypted |
| Unusual root file systems | Older loaders couldn't read every file system |
| Firmware limits | The ESP must be FAT, and /boot/efi is a separate partition |
Keeping /boot from filling up
A separate /boot is usually small, 500 MB to 1 GB. Each kernel and initramfs pair can take 100 MB or more. When it's full, kernel updates fail half-way, which can leave an unbootable new entry. Remove old kernels with the package manager, never by deleting files.
host$ df -h /boot /boot/efi
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p2 974M 612M 295M 68% /boot
/dev/nvme0n1p1 511M 6.1M 505M 2% /boot/efi
host$ ls -lh /boot | grep -E "vmlinuz|initrd"
host$ uname -r
6.8.0-49-generic
host$ sudo apt autoremove --purge
host$ sudo dnf remove --oldinstallonly --setopt installonly_limit=2 kernel
host$ grep -E "installonly_limit" /etc/dnf/dnf.conf
Keep the running kernel
Never remove the kernel that's currently running, shown by uname -r. Keep at least one older kernel as a fallback. The package managers' autoremove and installonly settings follow exactly that rule.
Documented example, not captured output.
How it works at runtime
/boot is part of Filesystem → /boot. /boot conventionally stores boot-loader accessible artifacts such as kernel images, initramfs/initrd files, loader configuration and related boot metadata; EFI System Partition content is commonly mounted separately at /boot/efi or another configured path.
Topic-specific state model. /boot conventionally stores boot-loader accessible artifacts such as kernel images, initramfs/initrd files, loader configuration and related boot metadata; EFI System Partition content is commonly mounted separately at /boot/efi or another configured path.
Interpretation rule. - Kernel image present in /boot ≠ that kernel is configured as the next/default boot entry.
- Boot entry references a kernel ≠ that kernel is currently running.
- /boot ≠ EFI System Partition in every layout; /boot/efi may be a separate FAT filesystem.
- Successful package installation ≠ initramfs/bootloader artifacts were generated and are bootable.
Quick reference
/boot holds kernels (vmlinuz-*), initramfs images, GRUB configuration and, on UEFI systems, mounts the EFI System Partition at /boot/efi.
ls -lh /boot
df -h /boot /boot/efi
grubby --info=ALL | grep -E 'kernel|args' # RHEL family
package-cleanup --oldkernels --count=2 # older RHEL; dnf: installonly_limit=3
apt autoremove --purge # removes old kernels on Ubuntu
A full /boot makes kernel updates fail half-way — keep installonly_limit reasonable and remove old kernels.
Limits and how it fails
Primary failure point. Files in /boot show artifact presence only; they do not show bootloader selection, firmware visibility, successful boot or that the intended kernel is running.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. /boot owns boot-artifact placement semantics. Detailed bootloader, initramfs and boot troubleshooting belongs to Boot Process; package lifecycle belongs to Package Management.
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 Filesystem → /boot. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html · 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
/boot operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for /boot.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | /boot conventionally stores boot-loader accessible artifacts such as kernel images, initramfs/initrd files, loader configuration and related boot metadata; EFI System Partition content is commonly mounted separately at /boot/efi or another configured path. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin process/container mount namespace → resolve the exact path from / and record every mount crossing → identify final dentry + filesystem/device + inode + file type → capture ownership/mode/ACL and capacity where relevant → map pseudo/device/runtime objects to the live kernel/process endpoint → verify the original consumer read/write/execute/service result. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | firmware mode → bootloader/entry → /boot or EFI artifact path → kernel + initramfs identity → boot attempt → running kernel → user-space readiness | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | Files in /boot prove artifact presence only; they do not prove bootloader selection, firmware visibility, successful boot or that the intended kernel is running. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated namespace, path and object evidence can establish this Linux Filesystem proof path: firmware mode → bootloader/entry → /boot or EFI artifact path → kernel + initramfs identity → boot attempt → running kernel → user-space readiness | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove behavior outside the captured namespace, mount, inode/object, authorization, backing-resource or consumer scope. Files in /boot prove artifact presence only; they do not prove bootloader selection, firmware visibility, successful boot or that the intended kernel is running. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven boundary: preserve the same process mount namespace, resolve the path and mount crossings, identify the exact object/inode or live pseudo/device endpoint, inspect effective access/capacity, then repeat the original consumer operation before changing unrelated filesystem state. | Continue to the next unresolved boundary while preserving the original test condition. |
/boot · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | /boot |
|---|---|
| Topic path | Filesystem → /boot |
| Runtime state | /boot conventionally stores boot-loader accessible artifacts such as kernel images, initramfs/initrd files, loader configuration and related boot metadata; EFI System Partition content is commonly mounted separately at /boot/efi or another configured path. |
| Fast checks | - Record /boot mount/source, free space and whether an EFI partition is mounted separately. - Map bootloader entries to exact kernel and initramfs artifacts rather than relying on filenames alone. - Compare configured next/default boot target with the currently running kernel. - After boot-related changes, verify an actual reboot path and resulting running-kernel identity when operationally safe. |
| Verification chain | firmware mode → bootloader/entry → /boot or EFI artifact path → kernel + initramfs identity → boot attempt → running kernel → user-space readiness 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 | Files in /boot prove artifact presence only; they do not prove bootloader selection, firmware visibility, successful boot or that the intended kernel is running. Boundary chain: process credentials/namespace → path/mount lookup → DAC/ACL/LSM → filesystem metadata → block/device/backend → completion/read-back. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |