Skip to Content
Mac OS X in a Nutshell
book

Mac OS X in a Nutshell

by Jason McIntosh, Chuck Toporek, Chris Stone
January 2003
Intermediate to advanced
832 pages
32h 40m
English
O'Reilly Media, Inc.
Content preview from Mac OS X in a Nutshell

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

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

-d

Disables the actual mount, but does 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, forces the revocation of write access. Normally the change is denied if any files are open for writing at the time of the request.

-o

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

-r

Mounts ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mac OS X Internals: A Systems Approach

Mac OS X Internals: A Systems Approach

Amit Singh
C++ In a Nutshell

C++ In a Nutshell

Ray Lischner
Linux Shell Scripting Cookbook - Third Edition

Linux Shell Scripting Cookbook - Third Edition

Clif Flynt, Sarath Lakshman, Shantanu Tushar
Optimized C++

Optimized C++

Kurt Guntheroth

Publisher Resources

ISBN: 0596003706Supplemental ContentCatalog PageErrata