'\" t .\" Copyright (c) 1996-2004 Andries Brouwer .\" Copyright (C) 2006-2012 Karel Zak .\" .\" This page is somewhat derived from a page that was .\" (c) 1980, 1989, 1991 The Regents of the University of California .\" and had been heavily modified by Rik Faith and myself. .\" (Probably no BSD text remains.) .\" Fragments of text were written by Werner Almesberger, Remy Card, .\" Stephen Tweedie and Eric Youngdale. .\" .\" This is free documentation; you can redistribute it and/or .\" modify it under the terms of the GNU General Public License as .\" published by the Free Software Foundation; either version 2 of .\" the License, or (at your option) any later version. .\" .\" The GNU General Public License's references to "object code" .\" and "executables" are to be interpreted as the output of any .\" document formatting or typesetting system, including .\" intermediate and printed output. .\" .\" This manual is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License along .\" with this program; if not, write to the Free Software Foundation, Inc., .\" 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. .\" .\" .TH MOUNT 8 "July 2014" "util-linux" "System Administration" .SH NAME mount \- mount a filesystem .SH SYNOPSIS .B mount .RB [ \-lhV ] .LP .\" Quote used to include space between arguments .B "mount \-a .RB [ \-fFnrsvw ] .RB [ \-t .IR vfstype ] .RB [ \-O .IR optlist ] .LP .B mount .RB [ \-fnrsvw ] .RB [ \-o .IR option [ \fB,\fIoption ]...] .IR device | dir .LP .B mount .RB [ \-fnrsvw ] .RB [ \-t .IB vfstype ] .RB [ \-o .IR options ] .I device dir .SH DESCRIPTION All files accessible in a Unix system are arranged in one big tree, the file hierarchy, rooted at .BR / . These files can be spread out over several devices. The .B mount command serves to attach the filesystem found on some device to the big file tree. Conversely, the .BR umount (8) command will detach it again. The standard form of the .B mount command is: .RS .br .BI "mount \-t" " type device dir" .br .RE This tells the kernel to attach the filesystem found on .I device (which is of type .IR type ) at the directory .IR dir . The previous contents (if any) and owner and mode of .I dir become invisible, and as long as this filesystem remains mounted, the pathname .I dir refers to the root of the filesystem on .IR device . If only the directory or the device is given, for example: .RS .br .BI "mount /dir" .br .RE then \fBmount\fR looks for a mountpoint (and if not found then for a device) in the .IR /etc/fstab file. It's possible to use the .B \-\-target or .B \-\-source options to avoid ambivalent interpretation of the given argument. For example: .RS .br .BI "mount \-\-target /mountpoint" .br .RE .B The listing. .RS The listing mode is maintained for backward compatibility only. For more robust and customizable output use .BR findmnt (8), \fBespecially in your scripts\fP. Note that control characters in the mountpoint name are replaced with '?'. The following command lists all mounted filesystems (of type .IR type ): .RS .br .BR "mount " [ \-l "] [" "\-t \fItype\/\fP" ] .br .RE The option \fB\-l\fR adds labels to this listing. See below. .RE .B The device indication. .RS Most devices are indicated by a filename (of a block special device), like .IR /dev/sda1 , but there are other possibilities. For example, in the case of an NFS mount, .I device may look like .IR knuth.cwi.nl:/dir . It is also possible to indicate a block special device using its filesystem label or UUID (see the \fB\-L\fR and \fB\-U\fR options below), or its partition label or UUID. (Partition identifiers are supported for example for GUID Partition Tables (GPT).) Don't forget that there is no guarantee that UUIDs and labels are really unique, especially if you move, share or copy the device. Use .B "lsblk \-o +UUID,PARTUUID" to verify that the UUIDs are really unique in your system. The recommended setup is to use tags (e.g. \fBLABEL=\fIlabel\fR) rather than .B /dev/disk/by-{label,uuid,partuuid,partlabel} udev symlinks in the /etc/fstab file. Tags are more readable, robust and portable. The .BR mount (8) command internally uses udev symlinks, so the use of symlinks in /etc/fstab has no advantage over tags. For more details see .BR libblkid (3). Note that .BR mount (8) uses UUIDs as strings. The UUIDs from the command line or from .BR fstab (5) are not converted to internal binary representation. The string representation of the UUID should be based on lower case characters. The .I proc filesystem is not associated with a special device, and when mounting it, an arbitrary keyword, such as .I proc can be used instead of a device specification. (The customary choice .I none is less fortunate: the error message `none busy' from .B umount can be confusing.) .RE .B The /etc/fstab, /etc/mtab and /proc/mounts files. .RS The file .I /etc/fstab (see .BR fstab (5)), may contain lines describing what devices are usually mounted where, using which options. The default location of the .BR fstab (5) file can be overridden with the .BI \-\-fstab " path" command-line option (see below for more details). .LP The command .RS .sp .B mount \-a .RB [ \-t .IR type ] .RB [ \-O .IR optlist ] .sp .RE (usually given in a bootscript) causes all filesystems mentioned in .I fstab (of the proper type and/or having or not having the proper options) to be mounted as indicated, except for those whose line contains the .B noauto keyword. Adding the .B \-F option will make mount fork, so that the filesystems are mounted simultaneously. .LP When mounting a filesystem mentioned in .I fstab or .IR mtab , it suffices to specify on the command line only the device, or only the mount point. The programs .B mount and .B umount traditionally maintained list of currently mounted filesystems in the file .IR /etc/mtab . The mtab file is still supported, but it's recommended to use a symlink to the file .I /proc/mounts rather than the regular mtab file on the current Linux systems. The mtab file maintained in userspace cannot reliably work with namespaces, containers and another advanced Linux features. If no arguments are given to .BR mount , this list is printed. If you want to override mount options from .I /etc/fstab you have to use the \fB\-o\fR option: .RS .sp .BI mount " device" \fR| "dir " \-o " options" .sp .RE and then the mount options from the command line will be appended to the list of options from .IR /etc/fstab . The usual behavior is that the last option wins if there are conflicting ones. The .B mount program does not read the .I /etc/fstab file if both .I device (or LABEL, UUID, PARTUUID or PARTLABEL) and .I dir are specified. For example, to mount device .BR foo " at " /dir : .RS .sp .B "mount /dev/foo /dir" .sp .RE .RE .B The non-superuser mounts. .RS Normally, only the superuser can mount filesystems. However, when .I fstab contains the .B user option on a line, anybody can mount the corresponding filesystem. .LP Thus, given a line .RS .sp .B "/dev/cdrom /cd iso9660 ro,user,noauto,unhide" .sp .RE any user can mount the iso9660 filesystem found on an inserted CDROM using the command .RS .sp .B "mount /dev/cdrom" .sp .RE or .RS .sp .B "mount /cd" .sp .RE For more details, see .BR fstab (5). Only the user that mounted a filesystem can unmount it again. If any user should be able to unmount it, then use .B users instead of .B user in the .I fstab line. The .B owner option is similar to the .B user option, with the restriction that the user must be the owner of the special file. This may be useful e.g.\& for .I /dev/fd if a login script makes the console user owner of this device. The .B group option is similar, with the restriction that the user must be member of the group of the special file. .RE .B The bind mounts. .RS .\" In fact since 2.3.99. At first the syntax was mount -t bind. Since Linux 2.4.0 it is possible to remount part of the file hierarchy somewhere else. The call is: .RS .br .B mount \-\-bind .I olddir newdir .RE or by using this fstab entry: .RS .br .BI / olddir .BI / newdir .B none bind .RE After this call the same contents are accessible in two places. One can also remount a single file (on a single file). It's also possible to use the bind mount to create a mountpoint from a regular directory, for example: .RS .br .B mount \-\-bind foo foo .RE The bind mount call attaches only (part of) a single filesystem, not possible submounts. The entire file hierarchy including submounts is attached a second place by using: .RS .br .B mount \-\-rbind .I olddir newdir .RE Note that the filesystem mount options will remain the same as those on the original mount point, and cannot be changed by passing the .B \-o option along with .BR \-\-bind / \-\-rbind . The mount options can be changed by a separate remount command, for example: .RS .br .B mount \-\-bind .I olddir newdir .br .B mount \-o remount,ro .I newdir .RE Note that the behavior of the remount operation depends on the /etc/mtab file. The first command stores the 'bind' flag in the /etc/mtab file and the second command reads the flag from the file. If you have a system without the /etc/mtab file or if you explicitly define source and target for the remount command (then \fBmount\fR(8) does not read /etc/mtab), then you have to use the bind flag (or option) for the remount command too. For example: .RS .br .B mount \-\-bind .I olddir newdir .br .B mount \-o remount,ro,bind .I olddir newdir .RE Note that .B remount,ro,bind will create a read-only mountpoint (VFS entry), but the original filesystem superblock will still be writable, meaning that the .I olddir will be writable, but the .I newdir will be read-only. .RE .B The move operation. .RS Since Linux 2.5.1 it is possible to atomically move a .B mounted tree to another place. The call is: .RS .br .B mount \-\-move .I olddir newdir .RE This will cause the contents which previously appeared under .I olddir to now be accessible under .IR newdir . The physical location of the files is not changed. Note that .I olddir has to be a mountpoint. Note also that moving a mount residing under a shared mount is invalid and unsupported. Use .B findmnt \-o TARGET,PROPAGATION to see the current propagation flags. .RE .B The shared subtree operations. .RS Since Linux 2.6.15 it is possible to mark a mount and its submounts as shared, private, slave or unbindable. A shared mount provides the ability to create mirrors of that mount such that mounts and unmounts within any of the mirrors propagate to the other mirror. A slave mount receives propagation from its master, but not vice versa. A private mount carries no propagation abilities. An unbindable mount is a private mount which cannot be cloned through a bind operation. The detailed semantics are documented in .B Documentation/filesystems/sharedsubtree.txt file in the kernel source tree. Supported operations are: .RS .nf .BI "mount \-\-make-shared " mountpoint .BI "mount \-\-make-slave " mountpoint .BI "mount \-\-make-private " mountpoint .BI "mount \-\-make-unbindable " mountpoint .fi .RE The following commands allow one to recursively change the type of all the mounts under a given mountpoint. .RS .nf .BI "mount \-\-make-rshared " mountpoint .BI "mount \-\-make-rslave " mountpoint .BI "mount \-\-make-rprivate " mountpoint .BI "mount \-\-make-runbindable " mountpoint .fi .RE .BR mount (8) .B does not read .BR fstab (5) when a \fB\-\-make-\fR* operation is requested. All necessary information has to be specified on the command line. Note that the Linux kernel does not allow to change multiple propagation flags with a single .BR mount (2) syscall, and the flags cannot be mixed with other mount options. Since util-linux 2.23 the \fBmount\fR command allows to use several propagation flags together and also together with other mount operations. This feature is EXPERIMENTAL. The propagation flags are applied by additional \fBmount\fR(2) syscalls when the preceeding mount operations were successful. Note that this use case is not atomic. It is possible to specify the propagation flags in .BR fstab (5) as mount options .RB ( private , .BR slave , .BR shared , .BR unbindable , .BR rprivate , .BR rslave , .BR rshared , .BR runbindable ). For example: .RS .nf .BI "mount \-\-make-private \-\-make-unbindable /dev/sda1 /foo" .fi .RE is the same as: .RS .nf .BI "mount /dev/sda1 /foo" .BI "mount \-\-make-private /foo" .BI "mount \-\-make-unbindable /foo" .fi .RE .RE .SH COMMAND-LINE OPTIONS The full set of mount options used by an invocation of .B mount is determined by first extracting the mount options for the filesystem from the .I fstab table, then applying any options specified by the .B \-o argument, and finally applying a .BR \-r " or " \-w option, when present. The command \fBmount\fR does not pass all command-line options to the \fB/sbin/mount.\fIsuffix\fR mount helpers. The interface between \fBmount\fR and the mount helpers is described below in the section EXTERNAL HELPERS. Command-line options available for the .B mount command are: .IP "\fB\-V, \-\-version\fP" Display version information and exit. .IP "\fB\-h, \-\-help\fP" Display help text and exit. .IP "\fB\-v, \-\-verbose\fP" Verbose mode. .IP "\fB\-a, \-\-all\fP" Mount all filesystems (of the given types) mentioned in .I fstab (except for those whose line contains the .B noauto keyword). The filesystems are mounted following their order in .IR fstab . .IP "\fB\-F, \-\-fork\fP" (Used in conjunction with .BR \-a .) Fork off a new incarnation of \fBmount\fR for each device. This will do the mounts on different devices or different NFS servers in parallel. This has the advantage that it is faster; also NFS timeouts go in parallel. A disadvantage is that the mounts are done in undefined order. Thus, you cannot use this option if you want to mount both .I /usr and .IR /usr/spool . .IP "\fB\-f, \-\-fake\fP" Causes everything to be done except for the actual system call; if it's not obvious, this ``fakes'' mounting the filesystem. This option is useful in conjunction with the .B \-v flag to determine what the .B mount command is trying to do. It can also be used to add entries for devices that were mounted earlier with the \fB\-n\fR option. The \fB\-f\fR option checks for an existing record in /etc/mtab and fails when the record already exists (with a regular non-fake mount, this check is done by the kernel). .IP "\fB\-i, \-\-internal-only\fP" Don't call the \fB/sbin/mount.\fIfilesystem\fR helper even if it exists. .IP "\fB\-l, \-\-show-labels\fP" Add the labels in the mount output. \fBmount\fR must have permission to read the disk device (e.g.\& be suid root) for this to work. One can set such a label for ext2, ext3 or ext4 using the .BR e2label (8) utility, or for XFS using .BR xfs_admin (8), or for reiserfs using .BR reiserfstune (8). .IP "\fB\-n, \-\-no-mtab\fP" Mount without writing in .IR /etc/mtab . This is necessary for example when .I /etc is on a read-only filesystem. .IP "\fB\-c, \-\-no-canonicalize\fP" Don't canonicalize paths. The mount command canonicalizes all paths (from command line or fstab) by default. This option can be used together with the .B \-f flag for already canonicalized absolute paths. The option is designed for mount helpers which call \fBmount -i\fR. It is strongly recommended to not use this command-line option for normal mount operations. Note that \fBmount\fR(8) does not pass this option to the \fB/sbin/mount.\fItype\fR helpers. .IP "\fB\-s\fP" Tolerate sloppy mount options rather than failing. This will ignore mount options not supported by a filesystem type. Not all filesystems support this option. Currently it's supported by the \fBmount.nfs\fR mount helper only. .IP "\fB\-\-source \fIdev\fP" If only one argument for the mount command is given then the argument might be interpreted as target (mountpoint) or source (device). This option allows to explicitly define that the argument is the mount source. .IP "\fB\-\-target \fIdir\fP" If only one argument for the mount command is given then the argument might be interpreted as target (mountpoint) or source (device). This option allows to explicitly define that the argument is the mount target. .IP "\fB\-r, \-\-read-only\fP" Mount the filesystem read-only. A synonym is .BR "\-o ro" . Note that, depending on the filesystem type, state and kernel behavior, the system may still write to the device. For example, ext3 and ext4 will replay the journal if the filesystem is dirty. To prevent this kind of write access, you may want to mount an ext3 or ext4 filesystem with the \fBro,noload\fR mount options or set the block device itself to read-only mode, see the .BR blockdev (8) command. .IP "\fB\-w, \-\-rw, \-\-read-write\fP" Mount the filesystem read/write. This is the default. A synonym is .BR "\-o rw" . .IP "\fB\-L, \-\-label \fIlabel\fP" Mount the partition that has the specified .IR label . .IP "\fB\-U, \-\-uuid \fIuuid\fP" Mount the partition that has the specified .IR uuid . These two options require the file .I /proc/partitions (present since Linux 2.1.116) to exist. .IP "\fB\-T, \-\-fstab \fIpath\fP" Specifies an alternative fstab file. If \fIpath\fP is a directory then the files in the directory are sorted by .BR strverscmp (3); files that start with "."\& or without an \&.fstab extension are ignored. The option can be specified more than once. This option is mostly designed for initramfs or chroot scripts where additional configuration is specified beyond standard system configuration. Note that \fBmount\fR(8) does not pass the option \fB\-\-fstab\fP to the \fB/sbin/mount.\fItype\fR helpers, meaning that the alternative fstab files will be invisible for the helpers. This is no problem for normal mounts, but user (non-root) mounts always require fstab to verify the user's rights. .IP "\fB\-t, \-\-types \fIvfstype\fP" The argument following the .B \-t is used to indicate the filesystem type. The filesystem types which are currently supported include: .IR adfs , .IR affs , .IR autofs , .IR btrfs , .IR cifs , .IR coda , .IR coherent , .IR cramfs , .IR debugfs , .IR devpts , .IR efs , .IR ext , .IR ext2 , .IR ext3 , .IR ext4 , .IR hfs , .IR hfsplus , .IR hpfs , .IR iso9660 , .IR jfs , .IR minix , .IR msdos , .IR ncpfs , .IR nfs , .IR nfs4 , .IR ntfs , .IR proc , .IR qnx4 , .IR ramfs , .IR reiserfs , .IR romfs , .IR squashfs , .IR smbfs , .IR sysv , .IR tmpfs , .IR ubifs , .IR udf , .IR ufs , .IR umsdos , .IR usbfs , .IR vfat , .IR xenix , .IR xfs , .IR xiafs . Note that coherent, sysv and xenix are equivalent and that .I xenix and .I coherent will be removed at some point in the future \(en use .I sysv instead. Since kernel version 2.1.21 the types .I ext and .I xiafs do not exist anymore. Earlier, .I usbfs was known as .IR usbdevfs . Note, the real list of all supported filesystems depends on your kernel. The programs .B mount and .B umount support filesystem subtypes. The subtype is defined by a '.subtype' suffix. For example 'fuse.sshfs'. It's recommended to use subtype notation rather than add any prefix to the mount source (for example 'sshfs#example.com' is deprecated). For most types all the .B mount program has to do is issue a simple .IR mount (2) system call, and no detailed knowledge of the filesystem type is required. For a few types however (like nfs, nfs4, cifs, smbfs, ncpfs) an ad hoc code is necessary. The nfs, nfs4, cifs, smbfs, and ncpfs filesystems have a separate mount program. In order to make it possible to treat all types in a uniform way, \fBmount\fR will execute the program .BI /sbin/mount. type (if that exists) when called with type .IR type . Since different versions of the .B smbmount program have different calling conventions, .B /sbin/mount.smbfs may have to be a shell script that sets up the desired call. If no .B \-t option is given, or if the .B auto type is specified, mount will try to guess the desired type. Mount uses the blkid library for guessing the filesystem type; if that does not turn up anything that looks familiar, mount will try to read the file .IR /etc/filesystems , or, if that does not exist, .IR /proc/filesystems . All of the filesystem types listed there will be tried, except for those that are labeled "nodev" (e.g., .IR devpts , .I proc and .IR nfs ). If .I /etc/filesystems ends in a line with a single *, mount will read .I /proc/filesystems afterwards. While trying, all filesystem types will be mounted with the mount option \fBsilent\fR. The .B auto type may be useful for user-mounted floppies. Creating a file .I /etc/filesystems can be useful to change the probe order (e.g., to try vfat before msdos or ext3 before ext2) or if you use a kernel module autoloader. More than one type may be specified in a comma-separated list. The list of filesystem types can be prefixed with .B no to specify the filesystem types on which no action should be taken. (This can be meaningful with the .B \-a option.) For example, the command .RS .RS .sp .B "mount \-a \-t nomsdos,ext" .sp .RE mounts all filesystems except those of type .I msdos and .IR ext . .RE .IP "\fB\-O, \-\-test-opts \fIopts\fP" Limit the set of filesystems to which the .B \-a option applies. In this regard it is like the .B \-t option except that .B \-O is useless without .BR \-a . For example, the command: .RS .RS .sp .B "mount \-a \-O no_netdev" .sp .RE mounts all filesystems except those which have the option .I _netdev specified in the options field in the .I /etc/fstab file. It is different from .B \-t in that each option is matched exactly; a leading .B no at the beginning of one option does not negate the rest. The .B \-t and .B \-O options are cumulative in effect; that is, the command .RS .sp .B "mount \-a \-t ext2 \-O _netdev" .sp .RE mounts all ext2 filesystems with the _netdev option, not all filesystems that are either ext2 or have the _netdev option specified. .RE .IP "\fB\-o, \-\-options \fIopts\fP" Use the specified mount options. The \fIopts\fR argument is a comma-separated list. For example: .RS .RS .sp .B "mount LABEL=mydisk \-o noatime,nodev,nosuid" .sp .RE For more details, see the .B FILESYSTEM-INDEPENDENT MOUNT OPTIONS and .B FILESYSTEM-SPECIFIC MOUNT OPTIONS sections. .RE .IP "\fB\-B, \-\-bind\fP" Remount a subtree somewhere else (so that its contents are available in both places). See above. .IP "\fB\-R, \-\-rbind\fP" Remount a subtree and all possible submounts somewhere else (so that its contents are available in both places). See above. .IP "\fB\-M, \-\-move\fP" Move a subtree to some other place. See above. .SH FILESYSTEM-INDEPENDENT MOUNT OPTIONS Some of these options are only useful when they appear in the .I /etc/fstab file. Some of these options could be enabled or disabled by default in the system kernel. To check the current setting see the options in /proc/mounts. Note that filesystems also have per-filesystem specific default mount options (see for example \fBtune2fs \-l\fP output for extN filesystems). The following options apply to any filesystem that is being mounted (but not every filesystem actually honors them \(en e.g.\&, the .B sync option today has an effect only for ext2, ext3, fat, vfat and ufs): .TP .B async All I/O to the filesystem should be done asynchronously. (See also the .B sync option.) .TP .B atime Do not use the noatime feature, so the inode access time is controlled by kernel defaults. See also the descriptions of the .B strictatime and .B relatime mount options. .TP .B noatime Do not update inode access times on this filesystem (e.g., for faster access on the news spool to speed up news servers). .TP .B auto Can be mounted with the .B \-a option. .TP .B noauto Can only be mounted explicitly (i.e., the .B \-a option will not cause the filesystem to be mounted). .TP \fBcontext=\fP\,\fIcontext\fP, \fBfscontext=\fP\,/\fIcontext\fP, \fBdefcontext=\fP\,/\fIcontext\fP and \fBrootcontext=\fP\,\fIcontext\fP The .B context= option is useful when mounting filesystems that do not support extended attributes, such as a floppy or hard disk formatted with VFAT, or systems that are not normally running under SELinux, such as an ext3 formatted disk from a non-SELinux workstation. You can also use .B context= on filesystems you do not trust, such as a floppy. It also helps in compatibility with xattr-supporting filesystems on earlier 2.4. kernel versions. Even where xattrs are supported, you can save time not having to label every file by assigning the entire disk one security context. A commonly used option for removable media is .BR context="system_u:object_r:removable_t" . Two other options are .B fscontext= and .BR defcontext= , both of which are mutually exclusive of the context option. This means you can use fscontext and defcontext with each other, but neither can be used with context. The .B fscontext= option works for all filesystems, regardless of their xattr support. The fscontext option sets the overarching filesystem label to a specific security context. This filesystem label is separate from the individual labels on the files. It represents the entire filesystem for certain kinds of permission checks, such as during mount or file creation. Individual file labels are still obtained from the xattrs on the files themselves. The context option actually sets the aggregate context that fscontext provides, in addition to supplying the same label for individual files. You can set the default security context for unlabeled files using .B defcontext= option. This overrides the value set for unlabeled files in the policy and requires a filesystem that supports xattr labeling. The .B rootcontext= option allows you to explicitly label the root inode of a FS being mounted before that FS or inode becomes visible to userspace. This was found to be useful for things like stateless linux. Note that the kernel rejects any remount request that includes the context option, \fBeven\fP when unchanged from the current context. .BR "Warning: the \fIcontext\fP value might contain commas" , in which case the value has to be properly quoted, otherwise .BR mount (8) will interpret the comma as a separator between mount options. Don't forget that the shell strips off quotes and thus .BR "double quoting is required" . For example: .RS .RS .sp .nf .B mount \-t tmpfs none /mnt \-o \e .B 'context="system_u:object_r:tmp_t:s0:c127,c456",noexec' .fi .sp .RE For more details, see .BR selinux (8). .RE .TP .B defaults Use the default options: .BR rw ", " suid ", " dev ", " exec ", " auto ", " nouser ", and " async . Note that the real set of all default mount options depends on kernel and filesystem type. See the beginning of this section for more details. .TP .B dev Interpret character or block special devices on the filesystem. .TP .B nodev Do not interpret character or block special devices on the file system. .TP .B diratime Update directory inode access times on this filesystem. This is the default. .TP .B nodiratime Do not update directory inode access times on this filesystem. .TP .B dirsync All directory updates within the filesystem should be done synchronously. This affects the following system calls: creat, link, unlink, symlink, mkdir, rmdir, mknod and rename. .TP .B exec Permit execution of binaries. .TP .B noexec Do not permit direct execution of any binaries on the mounted filesystem. (Until recently it was possible to run binaries anyway using a command like /lib/ld*.so /mnt/binary. This trick fails since Linux 2.4.25 / 2.6.0.) .TP .B group Allow an ordinary (i.e., non-root) user to mount the filesystem if one of his groups matches the group of the device. This option implies the options .BR nosuid " and " nodev (unless overridden by subsequent options, as in the option line .BR group,dev,suid ). .TP .B iversion Every time the inode is modified, the i_version field will be incremented. .TP .B noiversion Do not increment the i_version inode field. .TP .B mand Allow mandatory locks on this filesystem. See .BR fcntl (2). .TP .B nomand Do not allow mandatory locks on this filesystem. .TP .B _netdev The filesystem resides on a device that requires network access (used to prevent the system from attempting to mount these filesystems until the network has been enabled on the system). .TP .B nofail Do not report errors for this device if it does not exist. .TP .B relatime Update inode access times relative to modify or change time. Access time is only updated if the previous access time was earlier than the current modify or change time. (Similar to \fBnoatime\fR, but it doesn't break \fBmutt\fR or other applications that need to know if a file has been read since the last time it was modified.) Since Linux 2.6.30, the kernel defaults to the behavior provided by this option (unless .B noatime was specified), and the .B strictatime option is required to obtain traditional semantics. In addition, since Linux 2.6.30, the file's last access time is always updated if it is more than 1 day old. .TP .B norelatime Do not use the .B relatime feature. See also the .B strictatime mount option. .TP .B strictatime Allows to explicitly request full atime updates. This makes it possible for the kernel to default to .B relatime or .B noatime but still allow userspace to override it. For more details about the default system mount options see /proc/mounts. .TP .B nostrictatime Use the kernel's default behavior for inode access time updates. .TP .B suid Allow set-user-identifier or set-group-identifier bits to take effect. .TP .B nosuid Do not allow set-user-identifier or set-group-identifier bits to take effect. .TP .B silent Turn on the silent flag. .TP .B loud Turn off the silent flag. .TP .B owner Allow an ordinary (i.e., non-root) user to mount the filesystem if he is the owner of the device. This option implies the options .BR nosuid " and " nodev (unless overridden by subsequent options, as in the option line .BR owner,dev,suid ). .TP .B remount Attempt to remount an already-mounted filesystem. This is commonly used to change the mount flags for a filesystem, especially to make a readonly filesystem writable. It does not change device or mount point. The remount functionality follows the standard way the mount command works with options from fstab. This means that the mount command only doesn't read fstab (or mtab) when both the .I device and .I dir are specified. .B "mount \-o remount,rw /dev/foo /dir" After this call all old mount options are replaced and arbitrary stuff from fstab is ignored, except the loop= option which is internally generated and maintained by the mount command. .B "mount \-o remount,rw /dir" After this call mount reads fstab (or mtab) and merges these options with the options from the command line (\c .B \-o\c ). .TP .B ro Mount the filesystem read-only. .TP .B rw Mount the filesystem read-write. .TP .B sync All I/O to the filesystem should be done synchronously. In the case of media with a limited number of write cycles (e.g.\& some flash drives), \fBsync\fR may cause life-cycle shortening. .TP .B user Allow an ordinary user to mount the filesystem. The name of the mounting user is written to mtab (or to the private libmount file in /run/mount on system without regular mtab) so that he can unmount the filesystem again. This option implies the options .BR noexec ", " nosuid ", and " nodev (unless overridden by subsequent options, as in the option line .BR user,exec,dev,suid ). .TP .B nouser Forbid an ordinary (i.e., non-root) user to mount the filesystem. This is the default; it does not imply any other options. .TP .B users Allow every user to mount and unmount the filesystem. This option implies the options .BR noexec ", " nosuid ", and " nodev (unless overridden by subsequent options, as in the option line .BR users,exec,dev,suid ). .TP .B x-* All options prefixed with "x-" are interpreted as comments or userspace application-specific options. These options are not stored in the mtab file, nor sent to the mount. helpers nor the .BR mount (2) system call. The suggested format is x-.