Options can be given with (or without) a
no
prefix to invert their meaning.
The options listed below specify non-default values.
For example,
nosoftdep
is the default, so
softdep
can be used to mount the file system using soft dependencies.
Multiple options can be specified in a comma-separated list.
The available options are as follows:
- async
-
Metadata I/O to the file system should be done asynchronously.
By default, only regular data is read/written asynchronously.
This is a
dangerous
flag to set since it does not guarantee to keep a consistent
file system structure on the disk.
You should not use this flag
unless you are prepared to recreate the file system should your
system crash.
The most common use of this flag is to speed up
restore(8)
where it can give a factor of two speed increase.
The options
async
and
softdep
are mutually exclusive.
- force
-
The same as
-f;
forces the revocation of write access when trying to downgrade
a file system mount status from read-write to read-only.
- noatime
-
Do not update atime on files in the system unless the mtime or ctime
is being changed as well.
This option is useful for laptops and news servers where one does
not want the extra disk activity associated with updating the atime.
- noauto
-
Do not mount the file system automatically
(either at boot or with the
-A
or
-a
options).
- noaccesstime
-
Synonym for noatime provided for compatibility with
other operating systems.
- nodev
-
Do not interpret character or block special devices on the file system.
This option is useful for a server that has file systems containing
special devices for architectures other than its own.
- noexec
-
Do not allow execution of any binaries on the mounted file system.
This option is useful for a server that has file systems containing
binaries for architectures other than its own.
- nosuid
-
Do not allow set-user-identifier or set-group-identifier bits to take effect.
- rdonly
-
The same as
-r;
mount the file system read-only (even the superuser may not write it).
- softdep
-
(FFS only.)
Mount the file system using soft dependencies.
Instead of metadata being written immediately, it is written in an ordered
fashion to keep the on-disk state of the file system consistent.
This results in significant speedups for file create/delete operations.
This option is ignored when using the
-u
flag and a file system is already mounted read/write.
The options
async
and
softdep
are mutually exclusive.
- sync
-
Regular data I/O to the file system should be done synchronously.
By default, only metadata is read/written synchronously.
- update
-
The same as
-u;
indicate that the status of an already mounted file system should be changed.
Any additional options specific to a given file system type (see the
-t
option) may be passed as a comma separated list; these options are
distinguished by a leading
\&-
(dash).
Options that take a value are specified using the syntax -option=value.
For example, the
mount
command:
# mount -t mfs -o nosuid,-s=4000 /dev/sd0b /tmp
causes
mount
to execute the equivalent of:
# /sbin/mount_mfs -o nosuid -s 4000 /dev/sd0b /tmp