What mount options control
mount options tune how a filesystem is attached: read-only vs read-write,
security restrictions, access-time behaviour and filesystem-specific tuning.
They are supplied after -o on the command line or in the fourth field of an
/etc/fstab entry. Some are generic and work on any VFS filesystem; others
are specific to ext4, tmpfs or bind mounts. This reference groups them by
scope.
How it works
Options are a comma-separated list. The kernel applies generic VFS flags first, then hands filesystem-specific options to the driver:
# command line
mount -o ro,noexec,nosuid,nodev /dev/sdb1 /mnt/usb
# /etc/fstab (device mountpoint fstype options dump pass)
tmpfs /tmp tmpfs rw,nosuid,nodev,noexec,size=2g,mode=1777 0 0
/data /srv none bind,ro 0 0
defaults is shorthand for rw,suid,dev,exec,auto,nouser,async. You override
individual flags by listing their negation afterward, e.g. defaults,noexec.
Tips and notes
- Harden untrusted or removable mounts with
noexec,nosuid,nodev. - Prefer
relatime(the default) overnoatimeunless you have benchmarked the write savings. - A
bindmount re-exposes the same inodes; addrbindto carry submounts. - For
tmpfs, always setsize=so a runaway process cannot exhaust RAM.