Name

mount

Synopsis

mount [options] [special-device] [directory]

Description

System administration command. Mount a file structure. mount announces to the system that a removable file structure is present on special-device. The file structure is mounted on directory, which must already exist and should be empty; it then becomes the name of the root of the newly mounted file structure. If mount is invoked with no arguments, it displays the name of each mounted device, the directory on which it is mounted, whether the file structure is read-only, and the date it was mounted. Only a privileged user can use the mount command.

Options

-a

Mount all filesystems listed in /etc/fstab. Note: this is the only option that cannot take a special-device or node argument.

-f

Fake mount. Go through the motions of checking the device and directory, but do not actually mount the filesystem.

-n

Do not record the mount in /etc/mtab.

-o option

Note: this is the only option to mount that requires a special-device or node argument. Qualify the mount with one of the specified options:

async

Read input and output to the device asynchronously.

auto

Allow mounting with the -a option.

defaults

Use all options’ default values (async, auto, dev, exec, nouser, rw, suid).

dev

Interpret any special devices that exist on the filesystem.

exec

Allow binaries to be executed.

noauto

Do not allow mounting via the -a option.

nodev

Do not interpret any special devices that exist on the filesystem.

noexec

Do not allow the ...

Get Linux in a Nutshell, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.