Error Codes Wiki

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

  1. 1Check space: df -h and inodes: df -i
  2. 2Find large files: du -sh /* | sort -rh | head -20
  3. 3Clean old logs: journalctl --vacuum-size=500M
  4. 4Remove old package cache: apt clean or yum clean all

Tags

linuxerrnoerrno 28 enospctroubleshootingfix

More in Errno

Frequently Asked Questions

Run: du -sh /* | sort -rh | head to find largest directories.