Pcornel
Linux · Linux Troubleshooting

Disk Full

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

Back to the Topic

Answer

Disk full means a filesystem has no free blocks (or no free inodes), so writes fail with "No space left on device".

Remember

Check both space and inodes. Deleted files held open by processes still use space (lsof +L1). Logs, package caches, old kernels and container images are common culprits. Root reserve (5 % on ext4) is only for root.

First checks

  • journalctl -b -p err — errors this boot
  • systemctl --failed — failed units
  • df -h; df -i — space and inodes
  • ss -tulpn — listening sockets
  • dmesg -T | tail — recent kernel messages

Commands

df -hT
Mounted filesystem capacity and type.
journalctl --vacuum-size=1G
docker system df
docker system prune

Verify in this order

data written → blocks/inodes used → filesystem fills → writes fail

Where it usually breaks

First mismatch in persistent intent → provider/parser/generator → kernel/userspace runtime → dependency/security context → logs/counters → consumer-visible read-back; 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=2915

Confirmation

Confirm action

Continue?