Linux No Space Left on Device
Errorfilesystem
Overview
Linux "No space left on device" means the filesystem is completely full and cannot accept any new data.
Key Details
- errno 28 (ENOSPC) — filesystem full
- Can also mean inode exhaustion (small files fill inodes)
- Services may crash when they cannot write logs
- Database operations will fail on a full filesystem
Common Causes
- Log files consuming all available space
- Large temporary files or downloads
- Docker images/containers using disk space
- Inode limit reached with millions of small files
Steps
- 1Check space: df -h and inodes: df -i
- 2Find large files: find / -type f -size +100M
- 3Clean logs: sudo journalctl --vacuum-size=500M
- 4Clean Docker: docker system prune -a
Tags
linuxfilesystemno space left on devicetroubleshootingfix
More in Filesystem
Frequently Asked Questions
Run: du -sh /* | sort -rh | head -20 to find largest directories.