Linux ENOSPC: Inode Exhaustion (100% IUse With Free Disk Space)

Filesystem still shows free GB but ran out of free inodes due to millions of tiny files.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.1.0
Identifier: Linux ENOSPC Platform: Linux
Common Root Causes:
  • Filesystem still shows free GB but ran out of free inodes due to millions of tiny files.

Interactive Diagnostic Checklist

Verified Solutions:
  1. Purge stale cache/session/mail spool directories and tune tmpfiles cleanup.
Safe Diagnostic Command:
df -i && find /var -xdev -printf "%h\n" | sort | uniq -c | sort -nr | head
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.

Technical Explanation

Filesystem still shows free GB but ran out of free inodes due to millions of tiny files. Recommended diagnostic: `df -i && find /var -xdev -printf "%h\n" | sort | uniq -c | sort -nr | head`. Remediation: Purge stale cache/session/mail spool directories and tune tmpfiles cleanup.

Worked Examples

  • Run `df -i && find /var -xdev -printf "%h\n" | sort | uniq -c | sort -nr | head` to verify root cause before applying the remediation.

Limitations & Assumptions

  • Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.

Source References & Verification

Resource ID: err-linux-enospc-inode-exhausted · Independently verified: 2026-11-25

Related Resources