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