Filesystems
Cheat sheet · https://pcornel.dk/topic.php?topic=396
Answer
A filesystem maps application-visible paths and file metadata onto logical storage blocks or objects. Correct operation depends on the underlying volume/device, filesystem metadata, mount/attachment state, available data and metadata capacity, and implementation-specific consistency mechanisms.
Remember
- Filesystem ≠ partition or volume.
- Mounted/attached ≠ healthy or writable.
- Free bytes ≠ free metadata/inodes.
- Filesystem consistency ≠ backup or application consistency.
First checks
df -hT— usage per filesystemdf -i— inode usagefindmnt -o TARGET,FSTYPE,OPTIONS— mount options
Commands
findmnt- Read current Filesystems state for a bounded verification step.
lsblkdf -hTdf -i
Verify in this order
files → filesystem → volume
Where it usually breaks
First mismatch in media/provider → controller/pool → logical object → path/protocol → filesystem/share/object namespace → consumer workload; preserve identity/pre-state before mutation.
Filesystems filesystem map
| 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 and readable filesystem proves namespace access for tested paths at that moment; it does not prove metadata consistency everywhere, writable capacity, lower-layer health, backup coverage or application-level correctness. | Correlate filesystem evidence with the backing volume/path/backend before repair |
| Acceptance | Healthy evidence: expected filesystem type and backing object are present, mount/attachment state is correct, metadata and data capacity are available, representative reads/writes succeed and no relevant consistency errors are observed. | Close only after the original path/workload and read-back check succeeds |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=396