Pcornel
Linux · Filesystem

/boot

Cheat sheet · https://pcornel.dk/topic.php?topic=2661

Back to the Topic

Answer

/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).

Remember

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

First checks

  • ls -ld <path> — owner, permissions and type
  • stat <path> — inode, links, size and timestamps
  • df -h <path> — filesystem and free space
  • findmnt <path> — which mount the path is on

Verify in this order

/boot mounted (or virtual) → correct owner and permissions → enough space → services read and write as intended

Where it usually breaks

First mismatch in hardware/block device → kernel driver/mapper/RAID/LVM → filesystem → mount namespace/options → path permissions/MAC → consumer I/O; preserve identity/native diagnostic/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2661

Confirmation

Confirm action

Continue?