O'Reilly logo

Mac OS X Tiger in a Nutshell by Jason McIntosh, Chuck Toporek, Chris Stone, Andy Lester

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

mount

Synopsis

mount [-t type]
mount [-d] [-f] [-r] [-u] [-v] [-w] { [-t types] -a | special |
 mount_point | [-o mount_options] special mount_point]

Integrates volumes on local storage devices and network file servers into the system's directory hierarchy.

The first form of the command merely lists currently mounted volumes.

The second form of the command mounts volumes, with one of four possible sets of arguments. The -a flag causes all filesystems (possibly limited to those of a certain type) listed in /etc/fstab or in the /mounts directory of an Open Directory domain to be mounted, with the options given in the configuration. If only special or mount_point is provided, the associated fstab or Open Directory entry is used to determine what's mounted. The final alternative specifies both special and mount_point, and a possible list of options.

Options

-a

Attempt to mount all filesystems listed in fstab or Open Directory, other than those marked with the noauto option.

-d

Disable the actual mount, but do everything else. May be useful when used with the -v flag in a troubleshooting situation.

-f

When using the -u flag and changing the status of a read-write filesystem to read-only, force the revocation of write access. Normally the change is denied if any files are open for writing at the time of the request.

-o

Take a comma-separated list of options, which may include async, noauto, nodev, noexec, nosuid, union, and others. See the mount manpage for details.

-r

Mount the filesystem ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required