Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

Filesystems & Mounting

Direct answer

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.

When to use this

Use it to add, mount or troubleshoot filesystems.

First 30 seconds

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.

Operational verification

filesystem created → fstab/mount unit → mounted at boot → accessible at the mount point

Evidence · next step

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
Platform / version applicability
linux
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformlinux
Key commandfindmnt [TARGET]
Scope / prerequisiteUse it to add, mount or troubleshoot filesystems.
Verify · 3Reference · 4
What next?3 suggested next steps
Child topics (this level)7
Catalog command links7
Evidence2
On this pageJump to a specific section
Linux command reference

Primary Commands

Configuration and operational commands for this Topic.

mkfsReference
mkfs

Create 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.

Linux · configuration
mountReference
mount

Attach 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.

Linux · configuration
umountReference
umount

Detach 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.

Linux · configuration
dfVerify
df

Report 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.

Linux · state
duVerify
du

Measure 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.

Linux · state
fsckReference
fsck

Check 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.

Linux · configuration
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

7 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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, findmnt and df -hT before 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/sdX names 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 references

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.

observation · 1command output · 1
Drill down

Subtopics

Go one level deeper into this subject.

Subtopic ext4

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 XFS

XFS 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 Btrfs

Btrfs 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 tmpfs

tmpfs 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 swap

swap 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 Options

Mount 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.

Key points

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.

Key checks
  • findmnt — mount tree with options
  • df -hT — usage and filesystem types
  • findmnt --verify — check /etc/fstab
  • dmesg -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 -a mounts everything in fstab except entries marked noauto.
  • mount -o remount,<options> changes the options of a mounted file system.
  • mount --bind olddir newdir makes 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,ro in one step isn't atomic.
  • findmnt gives reliable listings, and findmnt --verify checks fstab.

Everyday operations

TaskCommand
Mount a devicemount /dev/sdc1 /srv/data
Mount with optionsmount -o ro,noexec /dev/sdd1 /mnt/usb
Mount everything in fstabmount -a
Remount read-onlymount -o remount,ro /srv/data
Bind mountmount --bind /srv/data/www /var/www/html
Loop mount an imagemount -o loop,ro disk.img /mnt/img
Show mountsfindmnt, findmnt -T /path, findmnt -t xfs
Unmountumount /srv/data

"target is busy"

StepCommand
Find users of the mountfuser -vm /srv/data or lsof +f -- /srv/data
Leave it yourselfcd /
Stop the service using itsystemctl stop <unit>
Last resort: lazy unmountumount -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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor doclinux current

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%
Technical changelog & impact

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.

Terminology layer

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.

Aliases that resolve here
linux filesystems mountingstorage & filesystemslinux storage & filesystemsmount filesystem linuxfstab filesystemStorage & Filesystems troubleshootinglinux vfs mount
Embedded reference data

Quick lookup tables

Filesystems & Mounting operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for Filesystems & Mounting.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateFilesystems & 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 verificationPin 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 chainbacking block/memory device → filesystem metadata → mount request → VFS/superblock → mount namespace + options → path lookup → application I/OTrace requested/configured state through effective state to the observed workload result.
Failure boundaryFilesystem/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 evidenceCorrelated 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/OUse this observation only for the specific claim it actually supports.
Evidence limitIt 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 checkContinue 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 boundaryFilesystems & Mounting
Topic pathFilesystems & Mounting
Runtime stateFilesystems & 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 chainbacking 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 boundaryFilesystem/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 ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?