No space left on device (inodes) Linux Origin: Platform & cloud OSI layer 7 · Application Last updated 13 Oct 2026

No space left on device, but df shows free space (inodes exhausted)

The filesystem has run out of inodes — the slots for files — even though there are gigabytes free, usually because of millions of tiny files.

Exact message you may see No space left on device but df shows free spaceout of inodes
Seen on: Linux

Meaning

Every file uses an inode; ext4 fixes the inode count at format time. Session files, mail queues, cache directories, node_modules trees or Docker overlay layers can exhaust them. df -h looks fine, df -i shows 100%.

Common causes

  • Millions of small files (PHP sessions, cache, mail queue)
  • Runaway log/temp file creation
  • Docker overlay/image layers
  • Small partition formatted with few inodes

⚡ Quick fix

  1. Check inodes: df -i
  2. Find directories with the most files and clean them
  3. Fix the job creating them (session GC, cache cleanup)

Detailed fix by platform

Linux

  1. bash
    df -i
    sudo find / -xdev -type d -size +1M 2>/dev/null | head   # huge directories
    for d in /var/* /tmp; do echo "$(sudo find "$d" -xdev | wc -l) $d"; done | sort -n | tail

How to diagnose

  1. Inodes — df -i usage per mount
  2. Where — Directory with most files
  3. Source — Which process writes them?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):

0x80070020 — 0x80070020: The process cannot access the file because it is being used by another process (Windows)0x800700200x80070070 — Windows error 0x80070070 (There is not enough space on the disk) (Windows)0x800700700x80070570 — Error 0x80070570: The file or directory is corrupted and unreadable (Windows)0x80070570Access to the path is denied — System.UnauthorizedAccessException: Access to the path 'x' is denied (.NET)Access to the path is…Argument list too long — bash: /bin/rm: Argument list too long (Linux)Argument list too longDisk quota exceeded — Disk quota exceeded (EDQUOT) (Linux)Disk quota exceededEEXIST — Error: EEXIST: file already exists, mkdir (Node.js)EEXISTEISDIR — Error: EISDIR: illegal operation on a directory, read (Node.js)EISDIRNo space …

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.