Pcornel
Storage · Filesystems

Filesystem Fundamentals

Cheat sheet · https://pcornel.dk/topic.php?topic=3947

Back to the Topic

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 usage
  • tune2fs -l <dev> / xfs_info <mount> — filesystem parameters
  • findmnt -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 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 boundaryKnowing 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
AcceptanceHealthy 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

Confirmation

Confirm action

Continue?