Use it as the entry point when something on Filesystems fails and you need to find the failing layer.
Filesystem Troubleshooting
Filesystem troubleshooting starts from the exact error and path, identifies which filesystem and disk hold that path, then checks mount state, permissions, free space and inodes, consistency and the underlying volume or disk in turn.
1. Symptoms: read-only remount, no space, slow, corruption.
2. Read kernel log first.
3. Check space and inodes.
4. Check underlying device health.
5. Repair or restore.
symptom → kernel log → device → filesystem
Context & applicabilityCommon mistakes · platform/version boundaries
The first failed filesystem boundary narrows ownership; evidence at one layer does not show adjacent dependencies or application health. Destructive repair is deferred until lower layers and recovery options are understood.
Suspicious evidence: wrong mount source, read-only remount, inode/metadata exhaustion, recurring checksum/journal errors, lower-layer I/O faults, multiple simultaneous changes or repair is attempted before evidence capture.
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
symptom/time → affected path/scope → mount/attachment → filesystem metadata/capacity/access → volume/device → storage path/backend → minimal change → original-test verification
Healthy evidence: the intended filesystem is mounted/attached, access and capacity are correct, no correlated metadata/backend errors remain and the original workload plus read-back succeeds.
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.
- Symptom ≠ root cause.
- Read-only filesystem ≠ automatically filesystem corruption.
- No space left ≠ always byte-capacity exhaustion.
- Repair tool success ≠ workload recovery proven.
dmesg | grep -i -e ext4 -e xfs -e btrfs -e 'I/O error'— filesystem/kernel errorsdf -h; df -i— space/inodesfindmnt -o TARGET,OPTIONS | grep ro,— read-only remounts
ReferenceImportant terms & boundaries2 sections · depth on demand
Namespace and consistency
The first failed filesystem boundary narrows ownership; evidence at one layer does not show adjacent dependencies or application health. Destructive repair is deferred until lower layers and recovery options are understood.
Method
| Symptom | First checks |
|---|---|
No space left on device | df -h, df -i, deleted-open files (lsof +L1), snapshots |
| Remounted read-only | dmesg for I/O or journal errors; disk health |
| Mount fails at boot | journalctl -b -u <mount unit>, UUID in fstab, missing nofail |
| Slow metadata ops | Millions of files per directory, fragmentation, no noatime |
| Corruption reported | Hardware first (SMART, cables, RAM), then filesystem check |
dmesg -T | grep -iE 'ext4|xfs|btrfs|I/O error'
blkid; lsblk -f
smartctl -H /dev/sda
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 → Filesystem Troubleshooting. 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 → Filesystem Troubleshooting filesystem map
Fast namespace, metadata, capacity, attachment and verification boundaries for Filesystems → Filesystem Troubleshooting.
| 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 | The first failed filesystem boundary narrows ownership; evidence at one layer does not prove adjacent dependencies or application health. Destructive repair is deferred until lower layers and recovery options are understood. | Correlate filesystem evidence with the backing volume/path/backend before repair |
| Acceptance | Healthy evidence: the intended filesystem is mounted/attached, access and capacity are correct, no correlated metadata/backend errors remain and the original workload plus read-back succeeds. | Close only after the original path/workload and read-back check succeeds |