Use it when configuring, checking or troubleshooting Filesystem Fundamentals in Filesystems.
Filesystem Fundamentals
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.
1. A filesystem maps files to blocks with metadata (inodes, directories, allocation).
2. Journaling/COW protects consistency.
3. Block size and inode count fixed at creation (ext4).
4. Use UUIDs in fstab.
5. Know repair tools per type.
path → directory → inode → blocks
Context & applicabilityCommon mistakes · platform/version boundaries
Knowing the filesystem type and mount point establishes logical ownership only, but it does not show the backing storage is healthy or that every metadata structure and file is intact.
Suspicious evidence: paths resolve on an unexpected mount, capacity and allocation disagree, metadata errors appear, or conclusions are drawn from mount state without checking the backing storage.
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
path lookup → namespace metadata → file metadata → allocation mapping → logical storage I/O → completion
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.
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.
- Path ≠ physical block location.
- Filesystem block/allocation unit ≠ storage-sector size.
- Metadata health ≠ user-data correctness.
- Mount success ≠ persistent mount configuration.
df -hT— types and usagetune2fs -l <dev> / xfs_info <mount>— filesystem parametersfindmnt -o TARGET,SOURCE,FSTYPE,OPTIONS— mounts
ReferenceImportant terms & boundaries2 sections · depth on demand
Namespace and consistency
Knowing the filesystem type and mount point establishes logical ownership only, but it does not show the backing storage is healthy or that every metadata structure and file is intact.
In depth
A filesystem maps names to data on a block device. Every filesystem keeps the same kinds of structures, under different names:
| Structure | Purpose | ext4 / XFS | NTFS |
|---|---|---|---|
| Superblock / boot record | Geometry, features, state | Superblock | Boot sector, $MFT location |
| File records | Owner, size, timestamps, block map | Inodes | MFT records (1 KiB) |
| Directories | Name → file record | Directory blocks / htree | B+ tree index ($I30) |
| Free-space map | Which blocks are free | Block bitmaps / B+ trees | $Bitmap |
| Journal | Crash consistency | jbd2 / XFS log | $LogFile |
The allocation unit (block or cluster, typically 4 KiB) is the smallest space a file can use; a 1-byte file still occupies one unit. Large units help big sequential files, small units save space with many small files.
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 Fundamentals. 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 Fundamentals filesystem map
Fast namespace, metadata, capacity, attachment and verification boundaries for Filesystems → Filesystem Fundamentals.
| 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 |