.\" Copyright (c) 1980 Regents of the University of California.
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\" @(#)mount.2 6.1 (Berkeley) %G%
mount, umount \- mount or remove file system
mount(special, name, rwflag)
announces to the system that a removable file system has
the block-structured special file
from now on, references to file
the root file on the newly mounted file system.
are pointers to null-terminated strings
containing the appropriate path names.
are inaccessible while the file system
argument determines whether
the file system can be written on; if it is 0 writing
is allowed, if non-zero no writing is done.
Physically write-protected and magnetic
tape file systems must be mounted read-only or
errors will occur when access times are updated,
explicit write is attempted.
announces to the system that the
file is no longer to contain a removable file system.
The associated file reverts to its ordinary interpretation.
returns 0 if the action occurred, \-1 if
is inaccessible or not an appropriate file, if
there are already too many
returns 0 if the action occurred; \-1 if
if the special file is inaccessible or
does not have a mounted file system,
or if there are active files in the mounted
will fail when one of the following occurs:
The caller is not the super-user.
The major device number of
is out of range (this indicates no device driver exists
for the associated hardware).
The pathname contains a character with the high-order bit set.
A component of the path prefix in
resides on a read-only file system.
is not a directory, or another process currently
No space remains in the mount table.
The super block for the file system had a bad magic
number or an out of range block size.
Not enough memory was available to read the cylinder
group information for the file system.
An i/o error occurred while reading the super block or
cylinder group information.
may fail with one of the following errors:
The caller is not the super-user.
The major device number of
is out of range (this indicates no device driver exists
for the associated hardware).
The requested device is not in the mount table.
A process is holding a reference to a file located
The error codes are in a state of disarray; too many errors
appear to the caller as one value.