No space left on device, but df shows free space (inodes exhausted)
The filesystem has run out of inodes — the slots for files — even though there are gigabytes free, usually because of millions of tiny files.
No space left on device but df shows free spaceout of inodes Meaning
Every file uses an inode; ext4 fixes the inode count at format time. Session files, mail queues, cache directories, node_modules trees or Docker overlay layers can exhaust them. df -h looks fine, df -i shows 100%.
Common causes
- Millions of small files (PHP sessions, cache, mail queue)
- Runaway log/temp file creation
- Docker overlay/image layers
- Small partition formatted with few inodes
⚡ Quick fix
- Check inodes: df -i
- Find directories with the most files and clean them
- Fix the job creating them (session GC, cache cleanup)
Detailed fix by platform
Linux
- bash
df -i sudo find / -xdev -type d -size +1M 2>/dev/null | head # huge directories for d in /var/* /tmp; do echo "$(sudo find "$d" -xdev | wc -l) $d"; done | sort -n | tail
How to diagnose
- Inodes — df -i usage per mount
- Where — Directory with most files
- Source — Which process writes them?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in Linux
Other ways to find it
Where this error sits
Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 13 Oct 2026