mount

Name

mount -- mount a file system

Synopsis

mount [-hV]
mount [-a] [-fFnrsvw] [-t vfstype]
mount [-fnrsvw] [-o options [,...]] [device | dir]
mount [-fnrsvw] [-t vfstype] [-o options] device dir

Description

As described in ISO POSIX (2003), all files in the system are organized in a directed graph, known as the file hierarchy, rooted at /. These files can be spread out over several underlying devices. The mount command shall attach the file system found on some underlying device to the file hierarchy.

Options

-v 

invoke verbose mode. The mount command shall provide diagnostic messages on stdout.

-a 

mount all file systems (of the given types) mentioned in /etc/fstab.

-F 

If the -a option is also present, fork a new incarnation of mount for each device to be mounted. This will do the mounts on different devices or different NFS servers in parallel.

-f 

cause everything to be done except for the actual system call; if it's not obvious, this `fakes' mounting the file system.

-n 

mount without writing in /etc/mtab. This is necessary for example when /etc is on a read-only file system.

-s 

ignore mount options not supported by a file system type. Not all file systems support this option.

-r 

mount the file system read-only. A synonym is -o ro.

-w 

mount the file system read/write. (default) A synonym is -o rw.

-L label 

If the file /proc/partitions is supported, mount the partition that has the specified label.

-U uuid 

If the file /proc/partitions is supported, mount the partition that has the specified uuid.

-t vfstype 

indicate a file system type of vfstype.

More than one type may be specified in a comma separated list. The list of file system types can be prefixed with no to specify the file system types on which no action should be taken.

-o 

options are specified with a -o flag followed by a comma-separated string of options. Some of these options are only useful when they appear in the /etc/fstab file. The following options apply to any file system that is being mounted:

async 

perform all I/O to the file system asynchronously.

atime 

update inode access time for each access. (default)

auto 

in /etc/fstab, indicate the device is mountable with -a.

defaults 

use default options: rw, suid, dev, exec, auto, nouser, async.

dev 

interpret character or block special devices on the file system.

exec 

permit execution of binaries.

noatime 

do not update file access times on this file system.

noauto 

in /etc/fstab, indicates the device is only explicitly mountable.

nodev 

do not interpret character or block special devices on the file system.

noexec 

do not allow execution of any binaries on the mounted file system.

nosuid 

do not allow set-user-identifier or set-group-identifier bits to take effect.

nouser 

forbid an unprivileged user to mount the file system. (default)

remount 

remount an already-mounted file system. This is commonly used to change the mount options for a file system, especially to make a read-only file system writable.

ro 

mount the file system read-only.

rw 

mount the file system read-write.

suid 

allow set-user-identifier or set-group-identifier bits to take effect.

sync 

do all I/O to the file system synchronously.

user 

allow an unprivilieged user to mount the file system. This option implies the options noexec, nosuid, nodev unless overridden by subsequent options.

LSB Deprecated Options

The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.

-V 

output version and exit.