Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

Mount Options

Direct answer

Mount options control how a filesystem behaves: rw/ro, noexec, nosuid, nodev, noatime/relatime, nofail, _netdev, user, and filesystem-specific ones such as discard or compress.

When to use this

Use it to harden mounts, tune performance, or when a mount behaves unexpectedly (read-only, cannot execute).

First 30 seconds

1. findmnt -no OPTIONS <mount> — effective options.

2. Unexpected ro → filesystem errors? dmesg.

3. "Permission denied" running a program → noexec?

4. Change: edit fstab, then mount -o remount <mount>.

5. findmnt --verify.

Operational verification

fstab options → mount → kernel enforces them for every access

Evidence · next step

For Filesystems & Mounting → Mount Options, continue with the first unproven Topic check: Record source, target, fs type and effective options from the live mount namespace. If that boundary is healthy, advance to the adjacent check: Separate generic VFS options from filesystem-specific options and defaults. 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 -o TARGET,OPTIONS /data
Scope / prerequisiteUse it to harden mounts, tune performance, or when a mount behaves unexpectedly (read-only, cannot execute).
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
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

requested mount options → VFS/fs-specific parsing → effective superblock/mount flags → path access semantics → application behavior

Healthy evidence: effective options match policy and filesystem support, no fallback/error occurs and security/performance/workload tests behave as intended.

Step 2 Verification and output interpretation Verify boundary

Existing fast checks for this Topic. - Record source, target, fs type and effective options from the live mount namespace.

  • Separate generic VFS options from filesystem-specific options and defaults.
  • Check kernel logs for rejected/changed options or read-only fallback.
  • Test the affected security/performance/workload behavior after any remount.

Verification chain. requested mount options → VFS/fs-specific parsing → effective superblock/mount flags → path access semantics → application behavior

Step 3 Specialized verification Verify boundary

Inspect the exact mount entry and mount namespace used by the consumer, including source, target, filesystem type and effective options. Reproduce the operation that depends on the option—for example execution, device-node access or writes—under the same identity. When remounting, verify the runtime option actually changed and confirm no duplicate/overmounted target obscures the expected entry. For performance or consistency options, use workload-level validation rather than assuming the option name guarantees an outcome.

Step 4 Commands Verify boundary
findmnt -o TARGET,OPTIONS /data
mount -o remount,noatime /data
Step 5 Failure modes and next checks Narrow the fault

Suspicious evidence: requested and effective options differ, kernel remounts read-only, defaults changed after upgrade or policy assumptions rely on a single mount flag.

Step 6 Special cases and limits Narrow the fault

An option displayed in persistent configuration does not show it is active. noexec does not prevent every possible interpreter-based use of readable content, nosuid does not replace broader privilege controls, and ro at one mount point does not show the underlying device has no writable exposure elsewhere. Filesystem-specific defaults vary by version. Separate declaration, effective VFS/filesystem flags, namespace visibility and application behavior.

Step 7 Common mistakes Narrow the fault
  • Missing nodev,nosuid,noexec on /tmp and removable media where appropriate.
Evidence references

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.

observation · 1
Key points

Check the effective options with findmnt, not fstab. Harden /tmp, /var/tmp, /dev/shm and removable media with nodev,nosuid,noexec. Use nofail and _netdev for network and non-critical mounts so boot does not hang.

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 is1 section · depth on demand

Core model

Capture the effective runtime option set rather than relying on requested options alone. Distinguish generic VFS options from filesystem-specific options, and distinguish a remount request from its accepted/effective result. Security and performance consequences must be tested in the workload context.

ReferenceImportant terms & boundaries6 sections · depth on demand

What this shows and what it does not

Mount-option evidence shows effective filesystem flags for a mount, not complete security isolation, lower-device writability or workload correctness.

In depth

Mount options that matter

Mount options control how the kernel treats a file system: whether it's writable, whether programs and device files on it are honoured, and how access times are updated. The mount(8) manual page documents the file-system-independent options.

defaults stands for rw, suid, dev, exec, auto, nouser and async. The actual defaults also depend on the kernel and the file system. Since Linux 2.6.30, relatime is the default access-time behaviour.

Options and their effect (manual)

OptionEffect
ro / rwRead-only / read-write
noexecPrograms on the file system can't be executed directly
nosuidSet-user-ID and set-group-ID bits, and file capabilities, are ignored
nodevDevice files on the file system aren't interpreted
noatimeNo access-time updates (implies nodiratime)
relatimeUpdate atime only if it's older than mtime or ctime
noautoNot mounted by mount -a
nofailNo error if the device doesn't exist
_netdevNeeds the network; mounted after networking
user / usersOrdinary users may mount (and unmount)
syncSynchronous writes (slow; rarely useful)

Hardening by mount point

Mount pointRecommended options
/tmp, /var/tmp, /dev/shmnosuid,nodev,noexec
/homenosuid,nodev
Removable medianosuid,nodev,noexec
Upload or web data areasnosuid,nodev,noexec
Backup targetsnosuid,nodev,noexec

noexec only blocks direct execution. A script can still be run as bash /tmp/script.sh. It's a hurdle, not a complete control.

Checking and changing options

host$ findmnt -o TARGET,OPTIONS /tmp /home /dev/shm
TARGET   OPTIONS
/tmp     rw,nosuid,nodev,noexec,relatime
/home    rw,nosuid,nodev,relatime
/dev/shm rw,nosuid,nodev
host$ sudo mount -o remount,noexec /dev/shm
host$ cp /usr/bin/true /tmp/t && /tmp/t
bash: /tmp/t: Permission denied
host$ sudo sed -i 's#^\(UUID=[^ ]* /home .* \)defaults#\1defaults,nosuid,nodev#' /etc/fstab
host$ sudo findmnt --verify
host$ sudo mount -o remount /home && findmnt -no OPTIONS /home

Remount picks up fstab

mount -o remount <mount point> without new options re-applies the options from fstab. That's how fstab changes reach an already-mounted file system without unmounting it, as the last line shows.

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

Mount Options is part of Filesystems & Mounting → 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.

Topic-specific state model. 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.

Interpretation rule. - Option requested ≠ option accepted/effective.

  • rw mount option ≠ underlying device will remain writable.
  • noexec ≠ universal prevention of every executable code path.
  • Performance option change ≠ workload performance improved.

Specialized mechanics

Mount options are split between VFS-wide behavior and filesystem-specific semantics. Options such as ro/rw, noexec, nosuid, nodev, relatime and bind/remount affect how the VFS exposes a mount, while ext4/XFS/NFS/CIFS and other filesystems add their own options. The same backing filesystem can appear at multiple mount points with different bind or namespace context. Effective options must therefore be read from the runtime mount, not inferred from the command line that was intended to create it.

Quick reference

Mount options that matter:

OptionEffect
noatime / relatimeSkip/limit access-time writes (relatime default)
nodev,nosuid,noexecHardening for /tmp, /var/tmp, removable media
roRead-only
nofailBoot continues if the device is missing
_netdevNetwork device — wait for network
x-systemd.automountMount on first access
discardOnline TRIM (prefer fstrim.timer)
defaultsrw,suid,dev,exec,auto,nouser,async
findmnt -o TARGET,SOURCE,FSTYPE,OPTIONS
mount -o remount,noexec /tmp
findmnt --verify
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Limits and how it fails

Primary failure point. Mount-option evidence shows effective filesystem flags for a mount, not complete security isolation, lower-device writability or workload correctness.

ReferenceConfiguration & state2 sections · depth on demand

Configuration, persistence and lifecycle

Distribution/platform context. Mount Options owns VFS/filesystem mount flags. Security branches own broader policy; applications own behavior and performance acceptance.

Specialized lifecycle

Choose options based on the filesystem and workload contract, and place persistent options in the responsible declaration such as fstab, a mount unit or orchestrator configuration. Understand remount limitations: not every option can change safely in place, and some filesystem settings require offline tools or a new mount. Security options can break legitimate execution/device workflows, so scope them to the intended mount. For remote filesystems, timeout/retry/cache options change failure semantics and should be documented as availability policy.

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 → Mount Options. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://docs.kernel.org/filesystems/index.html · confidence 94%
2026-09-13 · vendor docutil-linux / Linux VFS current

Authoritative Linux project/vendor documentation reviewed for bounded reference claims: mount options, VFS/filesystem-specific options and runtime mount state. Documentation-based technical verification only; not lab or production-runtime proof. The schema vendor_doc method is used for authoritative project/vendor documentation; deployment applicability remains separate evidence.

Basis: https://man7.org/linux/man-pages/man8/mount.8.html · confidence 93%
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.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
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 mount optionsfstab optionsnoexec nosuid nodevmount remount options
Embedded reference data

Quick lookup tables

Mount Options operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for Mount Options.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateMount 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.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 chainrequested mount options → VFS/fs-specific parsing → effective superblock/mount flags → path access semantics → application behaviorTrace requested/configured state through effective state to the observed workload result.
Failure boundaryMount-option evidence proves effective filesystem flags for a mount, not complete security isolation, lower-device writability or workload correctness.Stop broad troubleshooting at the first boundary that is not supported by evidence.
Positive evidenceCorrelated Linux storage evidence can establish this proof path: requested mount options → VFS/fs-specific parsing → effective superblock/mount flags → path access semantics → application behaviorUse 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. Mount-option evidence proves effective filesystem flags for a mount, not complete security isolation, lower-device writability or workload correctness.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.

Mount Options · operational reference

Compact Linux state, persistence, verification and boundary reference for fast lookup.

Reference boundaryMount Options
Topic pathFilesystems & Mounting → Mount Options
Runtime stateMount 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.
Fast checks- Record source, target, fs type and effective options from the live mount namespace. - Separate generic VFS options from filesystem-specific options and defaults. - Check kernel logs for rejected/changed options or read-only fallback. - Test the affected security/performance/workload behavior after any remount.
Verification chainrequested mount options → VFS/fs-specific parsing → effective superblock/mount flags → path access semantics → application behavior Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary.
Failure boundaryMount-option evidence proves effective filesystem flags for a mount, not complete security isolation, lower-device writability or workload correctness. 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.

Mount Options · specialized operational reference

Topic-specific Linux mechanics, lifecycle, proof path and failure-boundary lookup.

Operational boundaryTopic-specific reference
LayerVFS option vs filesystem-specific option
ScopeExact mount + mount namespace
Persistencefstab/mount unit/orchestrator
ProofEffective runtime option plus dependent workload
Confirmation

Confirm action

Continue?