Use it to harden mounts, tune performance, or when a mount behaves unexpectedly (read-only, cannot execute).
Mount Options
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.
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.
fstab options → mount → kernel enforces them for every access
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
Operational reference
Fast context before you go deeper.
findmnt -o TARGET,OPTIONS /dataVerification & 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
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,noexecon/tmpand removable media where appropriate.
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.
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.
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 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)
| Option | Effect |
|---|---|
ro / rw | Read-only / read-write |
noexec | Programs on the file system can't be executed directly |
nosuid | Set-user-ID and set-group-ID bits, and file capabilities, are ignored |
nodev | Device files on the file system aren't interpreted |
noatime | No access-time updates (implies nodiratime) |
relatime | Update atime only if it's older than mtime or ctime |
noauto | Not mounted by mount -a |
nofail | No error if the device doesn't exist |
_netdev | Needs the network; mounted after networking |
user / users | Ordinary users may mount (and unmount) |
sync | Synchronous writes (slow; rarely useful) |
Hardening by mount point
| Mount point | Recommended options |
|---|---|
/tmp, /var/tmp, /dev/shm | nosuid,nodev,noexec |
/home | nosuid,nodev |
| Removable media | nosuid,nodev,noexec |
| Upload or web data areas | nosuid,nodev,noexec |
| Backup targets | nosuid,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.
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:
| Option | Effect |
|---|---|
noatime / relatime | Skip/limit access-time writes (relatime default) |
nodev,nosuid,noexec | Hardening for /tmp, /var/tmp, removable media |
ro | Read-only |
nofail | Boot continues if the device is missing |
_netdev | Network device — wait for network |
x-systemd.automount | Mount on first access |
discard | Online TRIM (prefer fstrim.timer) |
defaults | rw,suid,dev,exec,auto,nouser,async |
findmnt -o TARGET,SOURCE,FSTYPE,OPTIONS
mount -o remount,noexec /tmp
findmnt --verify
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
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 → Mount Options. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/filesystems/index.html · confidence 94%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%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
Mount Options operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for Mount Options.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | 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. | 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 | requested mount options → VFS/fs-specific parsing → effective superblock/mount flags → path access semantics → application behavior | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | Mount-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 evidence | Correlated Linux storage evidence can establish this proof path: requested mount options → VFS/fs-specific parsing → effective superblock/mount flags → path access semantics → application behavior | 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. 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 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. |
Mount Options · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | Mount Options |
|---|---|
| Topic path | Filesystems & Mounting → Mount Options |
| Runtime state | 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. |
| 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 chain | requested 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 boundary | Mount-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 rule | Prove 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 boundary | Topic-specific reference |
|---|---|
| Layer | VFS option vs filesystem-specific option |
| Scope | Exact mount + mount namespace |
| Persistence | fstab/mount unit/orchestrator |
| Proof | Effective runtime option plus dependent workload |