Use it to add, mount or troubleshoot filesystems.
Filesystems & Mounting
Filesystems organise data on block devices (ext4, XFS, Btrfs) or in memory (tmpfs); mounting attaches them to a directory. /etc/fstab and systemd mount units define permanent mounts.
1. findmnt <mountpoint> — mounted with which options?
2. findmnt --verify — fstab valid?
3. mount -a — mounts everything in fstab without errors?
4. Errors in dmesg?
5. df -hT — type and space.
filesystem created → fstab/mount unit → mounted at boot → accessible at the mount point
For Filesystems & Mounting, continue with the first unproven Topic check: Identify backing device, filesystem type/UUID and expected mountpoint. If that boundary is healthy, advance to the adjacent check: Capture effective mount namespace, source, target and options before changes. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
findmnt [TARGET]Primary Commands
Configuration and operational commands for this Topic.
findmnt [TARGET]VerifyDisplay mounted filesystems and sources.
Use when: Use after confirming the Storage & Filesystems target and before changing state.
Quick note: Linux · distribution/version specific. A successful command or active unit proves only local state; it does not prove dependency health, data integrity or client-visible service.
Linux · mixedmkfsReferenceCreate a new filesystem structure on a selected block device or logical volume.
Use when: Primary lookup intent: destructive. Use mkfs when the lookup goal is to create a new filesystem structure on a selected block device or logical volume. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Post-change verification for mkfs: Verify filesystem signature/UUID and then validate mounted fresh I/O plus restored application data. Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: destructive. Safety class: destructive. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. mkfs is documented as an operational lookup primitive under Filesystems & Mounting. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
mountReferenceAttach a filesystem to the namespace or display currently mounted filesystems.
Use when: Primary lookup intent: configure. Use mount when the lookup goal is to attach a filesystem to the namespace or display currently mounted filesystems. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Post-change verification for mount: Verify source/type/options and perform fresh read/write or application I/O on the intended mount. Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: configure. Safety class: changes_state. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. mount is documented as an operational lookup primitive under Filesystems & Mounting. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
umountReferenceDetach a mounted filesystem from the current mount namespace.
Use when: Primary lookup intent: configure. Use umount when the lookup goal is to detach a mounted filesystem from the current mount namespace. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Post-change verification for umount: Confirm the intended mount is restored and perform fresh read/write or application I/O. Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: configure. Safety class: disruptive. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. umount is documented as an operational lookup primitive under Filesystems & Mounting. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
dfVerifyReport mounted-filesystem capacity, free space and inode usage from filesystem statistics.
Use when: Primary lookup intent: verify. Use df when the lookup goal is to report mounted-filesystem capacity, free space and inode usage from filesystem statistics. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: verify. Safety class: read_only. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. df is documented as an operational lookup primitive under Filesystems & Mounting. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
duVerifyMeasure apparent or allocated space consumed by files and directory trees.
Use when: Primary lookup intent: inspect. Use du when the lookup goal is to measure apparent or allocated space consumed by files and directory trees. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: inspect. Safety class: read_only. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. du is documented as an operational lookup primitive under Filesystems & Mounting. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
fsckReferenceCheck filesystem consistency and, when requested, repair filesystem metadata.
Use when: Primary lookup intent: destructive. Use fsck when the lookup goal is to check filesystem consistency and, when requested, repair filesystem metadata. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Post-change verification for fsck: Run read-only consistency checks as supported, mount safely and validate fresh workload I/O/data integrity. Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: destructive. Safety class: destructive. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. fsck is documented as an operational lookup primitive under Filesystems & Mounting. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
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 Operational evidence path Verify boundary
backing block/memory device → filesystem metadata → mount request → VFS/superblock → mount namespace + options → path lookup → application I/O
Healthy evidence: the intended backing device has the expected filesystem identity, mounts at the correct target with intended options in the consumer namespace and passes workload I/O.
Step 2 Operational verification Verify boundary
Block devices, filesystems, mounts, capacity, LVM relationships and storage troubleshooting on Linux.
Fast verification
- Map the stack with
lsblk -f,findmntanddf -hTbefore modifying devices.
- Check kernel/storage errors in dmesg or the journal and confirm which layer owns the failure.
- Distinguish block-device, LVM, filesystem and mount problems.
Step 3 Commands Verify boundary
lsblk -f
findmnt
mount | column -t
df -hT
Step 4 Verification and output interpretation Verify boundary
Existing fast checks for this Topic. - Identify backing device, filesystem type/UUID and expected mountpoint.
- Capture effective mount namespace, source, target and options before changes.
- Check filesystem-specific health, free blocks/inodes and kernel errors.
- Run an application-relevant read/write or acceptance test on the intended path.
Verification chain. backing block/memory device → filesystem metadata → mount request → VFS/superblock → mount namespace + options → path lookup → application I/O
Step 5 Common mistakes Narrow the fault
- Mounting by
/dev/sdXnames that can change. - Forgetting to add the mount to
/etc/fstab.
Step 6 Failure modes and next checks Narrow the fault
Suspicious evidence: wrong source, hidden mount, read-only fallback, stale namespace, filesystem errors or exhausted blocks/inodes can make a syntactically successful mount operationally wrong.
It does not show behavior outside the captured device, metadata, mapping, mount or workload scope. Filesystem/mount evidence shows the specific filesystem and namespace attachment; it does not by itself show lower device health or higher application consistency.
Next check: Continue from the first step that has not been verified: show backing identity, then on-device metadata, then filesystem/LVM mapping and effective mount/device state, and finally repeat the original workload I/O before any additional storage change.
Step 7 Where it fails Narrow the fault
Walk hardware/block device → kernel driver/mapper/RAID/LVM → filesystem → mount namespace/options → path permissions/MAC → consumer I/O and stop where observed state diverges.
Evidence · 2 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Healthy evidence: the intended backing device has the expected filesystem identity, mounts at the correct target with intended options in the consumer namespace and passes workload I/O. Suspicious evidence: wrong source, hidden mount, read-only fallback, stale namespace, filesystem errors or exhausted blocks/inodes can make a syntactically successful mount operationally wrong.
command output · Documented exampleStorage & Filesystems local healthy-state checkpointThe expected object, scope, state and counters match a controlled test.
Subtopics
Go one level deeper into this subject.
ext4 is a journaling Linux filesystem using superblocks, block groups, extents, inodes and a journal; operational health depends on metadata consistency, journal recovery, feature compatibility and available blocks/inodes.
Subtopic XFSXFS is a high-performance journaling filesystem built around allocation groups and metadata B+trees; it supports online growth but not general filesystem shrinking, which materially affects storage-resize planning.
Subtopic BtrfsBtrfs is a copy-on-write filesystem and volume manager with subvolumes, snapshots, checksums and multi-device capabilities; its logical/physical allocation and metadata profiles differ from traditional single-device filesystems.
Subtopic tmpfstmpfs is a memory-backed filesystem whose pages can consume RAM and swap while presenting a filesystem interface; its configured size is a limit, not necessarily preallocated physical memory.
Subtopic swapswap provides anonymous-memory backing on a partition, logical volume or file, allowing the kernel to page memory under pressure; configured swap does not substitute for sufficient RAM or prove healthy application latency.
Subtopic /etc/fstab/etc/fstab declares persistent filesystem and swap mount intent using source identifiers, targets, filesystem types, options and fsck/pass ordering, but the file itself is configuration intent rather than effective runtime mount state.
Subtopic Mount OptionsMount Options control effective filesystem behavior such as read/write mode, execution, device files, set-ID handling, atime policy and filesystem-specific features; defaults and remount semantics vary by filesystem and kernel.
Use UUIDs in fstab and test with findmnt --verify and mount -a before rebooting — a bad entry drops boot into emergency mode. nofail for non-critical mounts.
findmnt— mount tree with optionsdf -hT— usage and filesystem typesfindmnt --verify— check /etc/fstabdmesg -T | grep -iE 'ext4|xfs|btrfs'— filesystem kernel messages
ReferenceWhat it is3 sections · depth on demand
Operational scope
Block devices, filesystems, mounts, capacity, LVM relationships and storage troubleshooting on Linux.
What it is
Block devices, filesystems, mounts, capacity, LVM relationships and storage troubleshooting on Linux.
Core model
Separate the backing device, filesystem identity, filesystem integrity, mount request, effective mount namespace/options and workload I/O. A valid filesystem can be mounted with wrong options or hidden by another mount, while a successful mount does not show application data consistency or free-space/inode headroom.
ReferenceWhy it matters2 sections · depth on demand
When to use it
Use Storage & Filesystems when the problem concerns Linux runtime, services, networking, identity, packages, storage or shell automation.
Why it matters operationally
The useful outcome is not simply knowing a definition; it is being able to decide whether Storage & Filesystems is healthy, misconfigured, missing, or only a symptom of a failure somewhere else.
ReferenceHow it works1 section · depth on demand
How it works
Block devices, filesystems, mounts, capacity, LVM relationships and storage troubleshooting on Linux.
ReferenceImportant terms & boundaries4 sections · depth on demand
What this shows and what it does not
Filesystem/mount evidence shows the specific filesystem and namespace attachment; it does not by itself show lower device health or higher application consistency.
In depth
Mounting file systems
Mounting attaches a file system to a directory in the tree. The mount(8) manual page describes the core operations:
mount -amounts everything in fstab except entries markednoauto.mount -o remount,<options>changes the options of a mounted file system.mount --bind olddir newdirmakes the same directory tree visible in a second place.- A bind mount can then be made read-only by remounting it with
remount,bind,ro. The manual notes that doing-o bind,roin one step isn't atomic. findmntgives reliable listings, andfindmnt --verifychecks fstab.
Everyday operations
| Task | Command |
|---|---|
| Mount a device | mount /dev/sdc1 /srv/data |
| Mount with options | mount -o ro,noexec /dev/sdd1 /mnt/usb |
| Mount everything in fstab | mount -a |
| Remount read-only | mount -o remount,ro /srv/data |
| Bind mount | mount --bind /srv/data/www /var/www/html |
| Loop mount an image | mount -o loop,ro disk.img /mnt/img |
| Show mounts | findmnt, findmnt -T /path, findmnt -t xfs |
| Unmount | umount /srv/data |
"target is busy"
| Step | Command |
|---|---|
| Find users of the mount | fuser -vm /srv/data or lsof +f -- /srv/data |
| Leave it yourself | cd / |
| Stop the service using it | systemctl stop <unit> |
| Last resort: lazy unmount | umount -l /srv/data (detaches now, cleans up later) |
Mounts and systemd
systemd turns every fstab entry into a .mount unit. That's why systemctl status srv-data.mount works, and why a failing mount at boot shows up as a failed unit.
host$ sudo mount /dev/sdc1 /srv/data
host$ findmnt /srv/data
TARGET SOURCE FSTYPE OPTIONS
/srv/data /dev/sdc1 xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota
host$ sudo umount /srv/data
umount: /srv/data: target is busy.
host$ sudo fuser -vm /srv/data
USER PID ACCESS COMMAND
/srv/data: root kernel mount /srv/data
alice 4410 ..c.. bash
host$ sudo findmnt --verify
Success, no errors or warnings detected
host$ systemctl list-units --type=mount --no-legend | grep srv
Reading the fuser output
The c in alice's line means that /srv/data is her shell's current directory. That alone is enough to block the unmount. Once she changes to another directory, the unmount works.
Documented example, not captured output.
How it works at runtime
Filesystems & Mounting is part of Filesystems & Mounting. Filesystems & Mounting owns how Linux formats block or memory-backed storage, validates filesystem metadata, attaches it into a mount namespace and exposes capacity/options to processes.
Topic-specific state model. Filesystems & Mounting owns how Linux formats block or memory-backed storage, validates filesystem metadata, attaches it into a mount namespace and exposes capacity/options to processes.
Technical metadata. Host, kernel/distribution, timestamp, device major/minor, /dev + sysfs path, model/serial/WWN where available, size/sector geometry, partition-table type and boundaries, UUID/PARTUUID, udev links, filesystem type/UUID/features, mount namespace/source/target/options, free blocks/inodes, PV/VG/LV UUIDs, extents/segments, device-mapper mapping, snapshot/thin state, kernel/storage errors, original workload path and I/O result.
Interpretation rule. - Block device visible ≠ filesystem detected or healthy.
- Filesystem signature valid ≠ metadata consistency fully confirmed.
- mount returns success ≠ process sees the intended mount namespace/path.
- Filesystem mounted read-write ≠ workload data and capacity are healthy.
Limits and how it fails
Primary failure point. Filesystem/mount evidence shows the specific filesystem and namespace attachment; it does not by itself show lower device health or higher application consistency.
Boundary chain: process credentials/namespace → path/mount lookup → DAC/ACL/LSM → filesystem metadata → block/device/backend → completion/read-back.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. Filesystems & Mounting owns filesystem types, creation/checking, mount namespaces, fstab and mount options. Disks/LVM own backing devices; applications own data semantics.
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 & Mounting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/filesystems/index.html · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
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 & Mounting operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for Filesystems & Mounting.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | Filesystems & Mounting owns how Linux formats block or memory-backed storage, validates filesystem metadata, attaches it into a mount namespace and exposes capacity/options to processes. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin host + incident/change time → capture block topology and stable identities → validate partition/device metadata → validate filesystem identity/integrity and effective mount namespace/options → validate PV/VG/LV/device-mapper state where used → make one controlled change at the first failed boundary → re-read effective storage state → repeat original workload I/O/acceptance test. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | backing block/memory device → filesystem metadata → mount request → VFS/superblock → mount namespace + options → path lookup → application I/O | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | Filesystem/mount evidence proves the specific filesystem and namespace attachment; it does not by itself prove lower device health or higher application consistency. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated Linux storage evidence can establish this proof path: backing block/memory device → filesystem metadata → mount request → VFS/superblock → mount namespace + options → path lookup → application I/O | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove behavior outside the captured device, metadata, mapping, mount or workload scope. Filesystem/mount evidence proves the specific filesystem and namespace attachment; it does not by itself prove lower device health or higher application consistency. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven boundary: prove backing identity, then on-device metadata, then filesystem/LVM mapping and effective mount/device state, and finally repeat the original workload I/O before any additional storage change. | Continue to the next unresolved boundary while preserving the original test condition. |
Filesystems & Mounting · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | Filesystems & Mounting |
|---|---|
| Topic path | Filesystems & Mounting |
| Runtime state | Filesystems & Mounting owns how Linux formats block or memory-backed storage, validates filesystem metadata, attaches it into a mount namespace and exposes capacity/options to processes. |
| Fast checks | - Identify backing device, filesystem type/UUID and expected mountpoint. - Capture effective mount namespace, source, target and options before changes. - Check filesystem-specific health, free blocks/inodes and kernel errors. - Run an application-relevant read/write or acceptance test on the intended path. |
| Verification chain | backing block/memory device → filesystem metadata → mount request → VFS/superblock → mount namespace + options → path lookup → application I/O Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. |
| Failure boundary | Filesystem/mount evidence proves the specific filesystem and namespace attachment; it does not by itself prove lower device health or higher application consistency. Boundary chain: process credentials/namespace → path/mount lookup → DAC/ACL/LSM → filesystem metadata → block/device/backend → completion/read-back. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |