.\" 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.3 (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:
A component of either pathname exceeded 255 characters,
or the entire length of either path name exceeded 1023 characters.
Too many symbolic links were encountered in translating either pathname.
The caller is not the super-user.
A component of \fIname\fP does not exist.
A component of \fIspecial\fP does not exist.
The major device number of
is out of range (this indicates no device driver exists
for the associated hardware).
A component of \fIname\fP is not a directory,
or a path prefix of \fIspecial\fP is not a directory.
Either pathname contains a character with the high-order bit set.
The super block for the file system had a bad magic
number or an out of range block size.
Another process currently holds a reference to
or \fIspecial\fP is already mounted.
No space remains in the mount table.
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.
\fISpecial\fP or \fIname\fP points outside the
process's allocated address space.
may fail with one of the following errors:
A component of the path prefix is not a directory.
The pathname contains a character with the high-order bit set.
A component of a pathname exceeded 255 characters,
or an entire path name exceeded 1023 characters.
Too many symbolic links were encountered in translating the pathname.
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
An I/O error occurred while writing the super block or
other cached file system information.
\fISpecial\fP points outside the process's allocated address space.
Some of the error codes need translation to more obvious messages.