Linux mount Options Reference

Common Linux filesystem mount options with scope — generic, ext4, tmpfs, bind.

Reference for Linux mount command options covering generic VFS flags (ro, noexec, nosuid, noatime) and per-filesystem options for ext4, tmpfs and bind mounts, with fstab usage notes.

Where do mount options go?

On the command line they follow -o as a comma-separated list, e.g. mount -o ro,noexec,nosuid /dev/sdb1 /mnt. In /etc/fstab they occupy the fourth field of the entry. The same option names work in both places.

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) over noatime unless you have benchmarked the write savings.
  • A bind mount re-exposes the same inodes; add rbind to carry submounts.
  • For tmpfs, always set size= so a runaway process cannot exhaust RAM.