Use it when configuring, checking or troubleshooting Inodes in Filesystems.
Inodes
Directories map names to inode numbers, while each inode stores metadata and references file data. Filesystems with a finite inode supply can reject new files even when many data bytes remain free.
1. Inodes store file metadata; each file uses one.
2. ext4 has a fixed count — many small files can run out.
3. "No space left" with free blocks = inodes exhausted.
4. XFS/Btrfs allocate dynamically.
5. Clean up small files or reformat with more inodes.
file → inode → data blocks
Context & applicabilityCommon mistakes · platform/version boundaries
Available inode count shows metadata slots remain under that filesystem model, but it does not show byte capacity, underlying storage health or application writability.
Suspicious evidence: new-file creation fails with free bytes available, inode usage approaches exhaustion, massive small-file counts appear or deleted-open files retain allocations.
Operational reference
Fast context before you go deeper.
df -iPrimary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
directory name → inode lookup → inode metadata → extent/block mapping → storage
Healthy evidence: inode usage has headroom, file creation succeeds, namespace links are consistent and inode pressure matches workload expectations.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Inode ≠ filename.
- Free bytes ≠ free inodes.
- Deleting a directory entry ≠ immediate space release if a file remains open.
- Inode exhaustion ≠ block-device exhaustion.
df -i— inode usagetune2fs -l <dev> | grep -i inode— ext4 inode countfind <dir> -xdev -type f | wc -l— file count in a tree
ReferenceImportant terms & boundaries2 sections · depth on demand
Namespace and consistency
Available inode count shows metadata slots remain under that filesystem model, but it does not show byte capacity, underlying storage health or application writability.
In depth
An inode holds a file's metadata — type, permissions, owner, size, timestamps, link count and pointers to data — but not its name. Names live in directory entries that point to inode numbers; hard links are simply several names for one inode.
df -i /data # inode usage per filesystem
ls -i file; stat file
find /var -xdev -type f | cut -d/ -f2-3 | sort | uniq -c | sort -n | tail # where the files are
Running out of inodes (No space left on device with free blocks) is usually caused by millions of small files — sessions, mail queues, cache directories. ext4 needs a reformat with more inodes (mkfs.ext4 -i 8192); XFS and Btrfs allocate inodes dynamically.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Filesystems → Inodes. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/filesystems/index.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Filesystems → Inodes filesystem map
Fast namespace, metadata, capacity, attachment and verification boundaries for Filesystems → Inodes.
| Filesystem boundary | What to verify | Proof limit |
|---|---|---|
| Identity / attachment | Filesystem type, source/backing object, mount/attachment target and effective options | Presence or mount state alone does not prove consistency or lower-layer health |
| Capacity / metadata | Data space, metadata/inodes, quotas/reservations and filesystem state | Free bytes at one layer do not prove allocation can succeed end to end |
| Failure boundary | Available inode count proves metadata slots remain under that filesystem model; it does not prove byte capacity, underlying storage health or application writability. | Correlate filesystem evidence with the backing volume/path/backend before repair |
| Acceptance | Healthy evidence: inode usage has headroom, file creation succeeds, namespace links are consistent and inode pressure matches workload expectations. | Close only after the original path/workload and read-back check succeeds |