date and time created 87/02/15 16:36:03 by lepreau
[unix-history] / usr / src / sbin / mount / mount.8
CommitLineData
8f94bfbe
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
889e4453 5.\" @(#)mount.8 6.1 (Berkeley) %G%
8f94bfbe 6.\"
889e4453 7.TH MOUNT 8 ""
8f94bfbe
KM
8.UC 4
9.SH NAME
10mount, umount \- mount and dismount file system
11.SH SYNOPSIS
12.B /etc/mount
13[ special name [
14.B \-r
15] ]
16.PP
17.B /etc/mount
18.B \-a
19.PP
20.B /etc/umount
21special
22.PP
23.B /etc/umount
24.B \-a
25.SH DESCRIPTION
26.I Mount
27announces to the system that a removable file system
28is present on the device
29.I special.
30The file
31.I name
32must exist already; it
33must be a directory (unless the root of the
34mounted file system is not a directory).
35It becomes the name of the newly mounted root.
36The optional argument
37.B \-r
38indicates that the file system
39is to be mounted read-only.
40.PP
41.I Umount
42announces to the system that the removable file system previously
43mounted on device
44.I special
45is to be removed.
46.PP
47If the
48.B \-a
49option is present for either
50.I mount
51or
52.I umount,
53all of the file systems described in
54.I /etc/fstab
55are attempted to be mounted or unmounted.
56In this case,
57.I special
58and
59.I name
60are taken from
61.I /etc/fstab.
62The
63.I special
64file name from
65.I /etc/fstab
66is the block special name.
67.PP
68These commands
69maintain a table of mounted devices in
70.I /etc/mtab.
71If invoked without an argument,
72.I mount
73prints the table.
74.PP
75Physically write-protected and magnetic tape file
76systems must be mounted read-only
77or errors will occur when access times are updated,
78whether or not any explicit write is attempted.
79.SH FILES
80/etc/mtab mount table
81.br
82/etc/fstab file system table
83.SH "SEE ALSO"
84mount(2),
85mtab(5), fstab(5)
86.SH BUGS
87Mounting file systems full of garbage will crash the system.
88.br
89Mounting a root directory on a non-directory
90makes some apparently good pathnames invalid.