Linux errno 28 (ENOSPC) — No Space Left on Device
Errorerrno
Overview
Linux errno 28 (ENOSPC) means the filesystem has no remaining space for new data or metadata.
Key Details
- ENOSPC — filesystem is full
- Can also mean inode exhaustion (many small files)
- Critical — can prevent logging, databases, and system operations
- Check both disk space and inode usage
Common Causes
- Disk partition is full
- Log files consuming all available space
- Inode limit reached (many small files)
- Filesystem reserved blocks preventing writes
Steps
- 1Check space: df -h and inodes: df -i
- 2Find large files: du -sh /* | sort -rh | head -20
- 3Clean old logs: journalctl --vacuum-size=500M
- 4Remove old package cache: apt clean or yum clean all
Tags
linuxerrnoerrno 28 enospctroubleshootingfix
More in Errno
linux-errno-1-epermLinux errno 1 (EPERM) — Operation Not Permitted
Warninglinux-errno-2-enoentLinux errno 2 (ENOENT) — No Such File or Directory
Warninglinux-errno-5-eioLinux errno 5 (EIO) — Input/Output Error
Errorlinux-errno-11-eagainLinux errno 11 (EAGAIN) — Resource Temporarily Unavailable
Informationallinux-errno-12-enomemLinux errno 12 (ENOMEM) — Out of Memory
Criticallinux-errno-13-eaccesLinux errno 13 (EACCES) — Permission Denied
WarningFrequently Asked Questions
Run: du -sh /* | sort -rh | head to find largest directories.