mount

Name

mount -- Create a new user or update default new user information

Synopsis

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

Description

All files accessible in a Unix system are arranged in one big tree, the file hierarchy, rooted at /. These files can be spread out over several devices. The mount command serves to attach the file system found on some device to the big file tree. Conversely, the umount(8) command will detach it again.

Standard Options

-V

Output version.

-v

Verbose mode.

-a

Mount all filesystems (of the given types) mentioned in fstab.

-F

(Used in conjunction with -a.) Fork off a new incarnation of mount for each device. This will do the mounts on different devices or different NFS servers in parallel.

-f

Causes 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

Tolerate sloppy mount options rather than failing. This will ignore mount options not supported by a filesystem type. Not all filesystems support this option.

-r

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

-w

Mount the file system read/write. This is the default. A synonym is -o rw.

-L label

Mount the partition that has the specified label.

-U uuid

Mount the partition that has the specified uuid. These two options require the file /proc/partitions to exist.

-t vfstype

The argument following the -t is used to indicate the file system type.

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

All I/O to the file system should be done asynchronously.

atime

Update inode access time for each access. This is the default.

auto

Can be mounted with the -a option.

defaults

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

dev

Interpret character or block special devices on the file system.

exec

Permit execution of binaries

noatime

Do not update inode access times on this file system.

noauto

Can only be mounted explicitly.

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 ordinary (i.e., non-root) user to mount the file system. This is the default.

remount

Attempt to remount an already-mounted file system. This is commonly used to change the mount flags 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-iden­tifier bits to take effect.

sync

All I/O to the file system should be done synchronously.

user

Allow an ordinary user to mount the file system. This option implies the options noexec, nosuid, and nodev (unless overridden by subsequent options, as in the option line user,exec,dev,suid).