Commit | Line | Data |
---|---|---|
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 | |
10 | mount, 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 | |
21 | special | |
22 | .PP | |
23 | .B /etc/umount | |
24 | .B \-a | |
25 | .SH DESCRIPTION | |
26 | .I Mount | |
27 | announces to the system that a removable file system | |
28 | is present on the device | |
29 | .I special. | |
30 | The file | |
31 | .I name | |
32 | must exist already; it | |
33 | must be a directory (unless the root of the | |
34 | mounted file system is not a directory). | |
35 | It becomes the name of the newly mounted root. | |
36 | The optional argument | |
37 | .B \-r | |
38 | indicates that the file system | |
39 | is to be mounted read-only. | |
40 | .PP | |
41 | .I Umount | |
42 | announces to the system that the removable file system previously | |
43 | mounted on device | |
44 | .I special | |
45 | is to be removed. | |
46 | .PP | |
47 | If the | |
48 | .B \-a | |
49 | option is present for either | |
50 | .I mount | |
51 | or | |
52 | .I umount, | |
53 | all of the file systems described in | |
54 | .I /etc/fstab | |
55 | are attempted to be mounted or unmounted. | |
56 | In this case, | |
57 | .I special | |
58 | and | |
59 | .I name | |
60 | are taken from | |
61 | .I /etc/fstab. | |
62 | The | |
63 | .I special | |
64 | file name from | |
65 | .I /etc/fstab | |
66 | is the block special name. | |
67 | .PP | |
68 | These commands | |
69 | maintain a table of mounted devices in | |
70 | .I /etc/mtab. | |
71 | If invoked without an argument, | |
72 | .I mount | |
73 | prints the table. | |
74 | .PP | |
75 | Physically write-protected and magnetic tape file | |
76 | systems must be mounted read-only | |
77 | or errors will occur when access times are updated, | |
78 | whether 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" | |
84 | mount(2), | |
85 | mtab(5), fstab(5) | |
86 | .SH BUGS | |
87 | Mounting file systems full of garbage will crash the system. | |
88 | .br | |
89 | Mounting a root directory on a non-directory | |
90 | makes some apparently good pathnames invalid. |