Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

ext4 · Filesystems

Direct answer

ext4 stores files using inode metadata and extent/block mappings. Journaling protects filesystem metadata consistency across crashes according to the selected data mode, but underlying storage errors or silent corruption remain separate concerns.

When to use this

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

First 30 seconds

1. ext4: mature Linux default with journaling; volumes up to 1 EiB and files up to 16 TiB with 4K blocks.

2. Inode count fixed at mkfs.

3. Can grow online and shrink offline.

4. Repair with e2fsck (unmounted).

5. Reserved blocks 5 % by default (tune2fs -m).

Operational verification

file → inode → extents → blocks

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

A mounted ext4 filesystem shows current access but does not show every inode/data block or underlying device is error-free.

Suspicious evidence: read-only remounts, journal/inode errors, inode exhaustion despite free bytes, or repeated filesystem faults alongside block-device errors.

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
Scope / prerequisiteUse it when configuring, checking or troubleshooting ext4 in Filesystems.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
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

Linux path → VFS → ext4 inode/extent metadata → block device/volume → storage path → media/backend

Healthy evidence: intended ext4 device is mounted with expected options, bytes and inodes are available, representative I/O works and kernel logs contain no correlated filesystem/device faults.

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
  • Journal replay ≠ full data-integrity verification.
  • ext4 inode availability ≠ free byte capacity.
  • Mounted read-write ≠ media healthy.
  • fsck ≠ routine online repair for a mounted production filesystem.
Key checks
  • tune2fs -l /dev/<dev> | grep -E 'state|count|Last checked' — state and mounts
  • e2fsck -n /dev/<dev> — read-only check (unmounted)
  • df -i — inode usage
ReferenceImportant terms & boundaries2 sections · depth on demand

Namespace and consistency

A mounted ext4 filesystem shows current access but does not show every inode/data block or underlying device is error-free.

Filesystems owns ext4 design concepts; Linux Storage and Linux Filesystems & Mounting own commands, fstab and repair procedures.

In depth

ext4 uses extents (contiguous block ranges up to 128 MiB) instead of per-block maps, delayed allocation, an htree directory index and the jbd2 journal. Inodes are allocated at mkfs time — running out of inodes stops file creation even with free space.

mkfs.ext4 -L data -m 1 /dev/vg0/data      # 1 % reserved for root instead of 5 %
tune2fs -l /dev/vg0/data | grep -E 'Block size|Inode count|Reserved block|Mount count|Filesystem state'
resize2fs /dev/vg0/data                     # grow online
e2fsck -f /dev/vg0/data                     # offline check

ext4 can grow online and shrink offline; maximum volume 1 EiB and file size 16 TiB (4 KiB blocks).

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 → ext4. 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
ext4fourth extended filesystemlinux ext4
Embedded reference data

Quick lookup tables

Filesystems → ext4 filesystem map

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

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 boundaryA mounted ext4 filesystem proves current access but does not prove every inode/data block or underlying device is error-free.Correlate filesystem evidence with the backing volume/path/backend before repair
AcceptanceHealthy evidence: intended ext4 device is mounted with expected options, bytes and inodes are available, representative I/O works and kernel logs contain no correlated filesystem/device faults.Close only after the original path/workload and read-back check succeeds
Confirmation

Confirm action

Continue?