📖 ~1 min read
Table of contents
Symptom & Impact
File creation fails although df shows available disk space.
Environment & Reproduction
Typically caused by huge counts of tiny files in cache or temp directories.
df -h
df -i
Root Cause Analysis
Filesystem inode table is exhausted before block storage is consumed.
Quick Triage
Locate mount points with high IUse% and identify top inode consumers.
df -i
for d in /var /tmp /home; do echo $d; sudo find $d -xdev -type f | wc -l; done
Step-by-Step Diagnosis
Drill into directories with extreme small-file counts.
sudo find /var -xdev -printf '%hn' | sort | uniq -c | sort -nr | head -n 20

Solution – Primary Fix
Remove stale temporary/cache files and restart affected services.
Still having issues? Our Server Management team can diagnose and resolve this for you. Get in touch for a free consultation.
sudo find /var/tmp -type f -mtime +7 -delete
sudo apt-get clean

Solution – Alternative Approaches
Move high-churn paths to filesystem with larger inode capacity.
lsblk -f
Verification & Acceptance Criteria
Inode utilization drops and new file creation succeeds.
df -i
touch /tmp/inode_test && rm -f /tmp/inode_test
Rollback Plan
Restore mistakenly deleted files from backup.
# restore required files from backup system
Prevention & Hardening
Set cleanup policies for temp/cache directories and monitor inode trends.
systemctl list-timers --all | grep -E 'tmp|clean'
Related Errors & Cross-Refs
Related to no space left on device with normal disk free percentage.
Related tutorial: View the step-by-step tutorial for Ubuntu 24.04 LTS.
View all Ubuntu 24.04 LTS tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Ubuntu filesystem and inode management references.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today — we respond within one business day.