Use it when configuring, checking or troubleshooting ext4 in Filesystems.
ext4 · Filesystems
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.
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).
file → inode → extents → blocks
Context & applicabilityCommon mistakes · platform/version boundaries
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.
Operational reference
Fast context before you go deeper.
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
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 · 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.
- 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.
tune2fs -l /dev/<dev> | grep -E 'state|count|Last checked'— state and mountse2fsck -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).
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 → ext4. 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 → ext4 filesystem map
Fast namespace, metadata, capacity, attachment and verification boundaries for Filesystems → ext4.
| 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 | A 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 |
| Acceptance | 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. | Close only after the original path/workload and read-back check succeeds |