Filesystem Fundamentals
Cheat sheet · https://pcornel.dk/topic.php?topic=3947
Answer
A filesystem organizes files and directories using metadata structures that map names and file offsets to allocated storage. The operating system reaches it through a mount or attachment point, while lower layers provide the logical device, volume, datastore or object service.
Remember
- Path ≠ physical block location.
- Filesystem block/allocation unit ≠ storage-sector size.
- Metadata health ≠ user-data correctness.
- Mount success ≠ persistent mount configuration.
First checks
df -hT— types and usagetune2fs -l <dev> / xfs_info <mount>— filesystem parametersfindmnt -o TARGET,SOURCE,FSTYPE,OPTIONS— mounts
Verify in this order
path → directory → inode → blocks
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 Fundamentals 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 | Knowing the filesystem type and mount point establishes logical ownership only; it does not prove the backing storage is healthy or that every metadata structure and file is intact. | Correlate filesystem evidence with the backing volume/path/backend before repair |
| Acceptance | Healthy evidence: path resolves through the intended filesystem, allocation and metadata resources are available, normal I/O succeeds and consistency state shows no unexplained faults. | 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=3947