IT Toolbox
Menu
HomeLinux — No spaceleft on device
Error code

Linux — No spaceleft on device

Linux cannot write to the target filesystem because capacity, inodes or a storage quota have been exhausted.

TopicComputer error codes → About 1 min read

Linux — No space left on device (ENOSPC)

Category: Linux | Priority: High

What does this error mean?

Linux cannot allocate storage for a write operation. The filesystem may be out of data blocks, inodes or an applicable storage quota.

Likely causes

  • Filesystem data blocks completely used
  • Inodes exhausted even though disk space appears available
  • User or project storage quota reached
  • Growing logs or deleted files that remain open by running processes

Diagnosis and resolution

  1. Run df -h to check which mounted filesystem is full.
  2. Run df -i to check available inodes.
  3. Use du -xhd1 /path to identify large directories within the relevant filesystem.
  4. Review quotas, application logs and deleted-but-open files with lsof +L1.
  5. Delete or rotate only known unnecessary files, or extend storage after checking backups and application dependencies.

Caution: Do not delete database files, virtual disks or logs required for incident investigation without reviewing their dependencies.

← Return to the error code reference

Support the development of BAOI Hosting, domains and new IT resources.
❤️ Support BAOI

My favorites