Name
mount
Synopsis
mount [-ttype
] mount [-d] [-f] [-r] [-u] [-v] [-w] { [-ttypes
] -a |special
|mount_point
| [-omount_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 thenoauto
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 themount
manpage for details.-
-r
Mounts ...
Get Mac OS X in a Nutshell 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.