Error Codes Wiki

Linux Error ENOSPC (errno 28) — No Space Left on Device Fix

Criticallinux errno

Overview

Linux errno 28 ENOSPC means the disk is full. No more data can be written until space is freed.

Key Details

  • Error: ENOSPC (errno 28)
  • Message: No space left on device
  • Disk partition is at 100% capacity
  • Affects all write operations on that partition

Common Causes

  • Log files consumed all disk space
  • Docker images filled the disk
  • /tmp or /var partition is full
  • Inodes exhausted (many small files)

Steps

  1. 1Check disk usage: df -h
  2. 2Find large files: du -sh /* | sort -rh | head -20
  3. 3Clean old logs: sudo journalctl --vacuum-time=3d
  4. 4Clean Docker: docker system prune -a
  5. 5Check inode usage: df -i

Tags

linuxlinux-errnolinux errno 28ubuntuterminal

More in Linux Errno

Frequently Asked Questions

You may be out of inodes. Check with df -i.