Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Inodes

Direct answer

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.

When to use this

Use it when configuring, checking or troubleshooting Inodes in Filesystems.

First 30 seconds

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.

Operational verification

file → inode → data blocks

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Failure and repair traps

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.

Platform / version applicability
Storage architecture and operations
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformStorage architecture and operations · Linux
Key commanddf -i
Scope / prerequisiteUse it when configuring, checking or troubleshooting Inodes in Filesystems.
Verify · 1
What next?3 suggested next steps
Catalog command links1
Evidence1
On this pageJump to a specific section
Storage command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • Inode ≠ filename.
  • Free bytes ≠ free inodes.
  • Deleting a directory entry ≠ immediate space release if a file remains open.
  • Inode exhaustion ≠ block-device exhaustion.
Key checks
  • df -i — inode usage
  • tune2fs -l <dev> | grep -i inode — ext4 inode count
  • find <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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docStorage architecture and operations current

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%
Terminology layer

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.

Aliases that resolve here
inodesinode exhaustionfilesystem inode
Embedded reference data

Quick lookup tables

Filesystems → Inodes filesystem map

Fast namespace, metadata, capacity, attachment and verification boundaries for Filesystems → Inodes.

Filesystem boundaryWhat to verifyProof limit
Identity / attachmentFilesystem type, source/backing object, mount/attachment target and effective optionsPresence or mount state alone does not prove consistency or lower-layer health
Capacity / metadataData space, metadata/inodes, quotas/reservations and filesystem stateFree bytes at one layer do not prove allocation can succeed end to end
Failure boundaryAvailable 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
AcceptanceHealthy 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
Confirmation

Confirm action

Continue?