ENOSPC
ENOSPC, short for "No space left on device," is an error code used by Unix-like operating systems to indicate that a write or allocation operation cannot proceed because there is no available space on the target filesystem. It is defined as errno 28 in POSIX systems and is typically reported by system calls such as write, fsync, or similar file- and block-level operations.
Causes of ENOSPC include a completely full data area of the filesystem, exhaustion of inodes (the metadata
When ENOSPC is returned, applications may fail to write new data, and logs or temporary files may
- Checking available space with df -h and inode usage with df -i.
- Reviewing quotas with quota or repquota.
- Inspecting for unexpectedly large files, old logs, or caches that can be cleaned.
- Verifying whether reserved blocks are consuming space on certain filesystems (e.g., ext4) and whether adjustments are
Mitigation strategies include freeing space (deleting or archiving files, truncating logs), removing unnecessary caches, rotating logs,