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 | .\" | |
d84d1654 | 5 | .\" @(#)mount.8 6.6 (Berkeley) %G% |
8f94bfbe | 6 | .\" |
889e4453 | 7 | .TH MOUNT 8 "" |
8f94bfbe KM |
8 | .UC 4 |
9 | .SH NAME | |
d5f9f0b6 | 10 | mount, umount \- mount and dismount file systems |
8f94bfbe | 11 | .SH SYNOPSIS |
71799463 KM |
12 | .B mount |
13 | [ | |
14 | .B \-afrw | |
15 | ] | |
16 | .br | |
17 | .B mount | |
18 | [ | |
19 | .B \-frw | |
20 | ] | |
21 | special | node | |
22 | .br | |
23 | .B mount | |
24 | [ | |
25 | .B \-frw | |
26 | ] [ | |
27 | .B \-t | |
d84d1654 | 28 | nfs | ufs |
71799463 KM |
29 | ] [ |
30 | .B \-o | |
31 | options | |
32 | ] | |
33 | special node | |
34 | .br | |
8f94bfbe | 35 | .PP |
71799463 KM |
36 | .B umount |
37 | [ | |
38 | .B \-a | |
39 | ] | |
40 | .br | |
41 | .B umount | |
42 | special | node | |
43 | .br | |
8f94bfbe KM |
44 | .SH DESCRIPTION |
45 | .I Mount | |
d5f9f0b6 | 46 | announces to the system that a removable file system is present on the |
71799463 KM |
47 | block device \fIspecial\fP or the remote node ``rhost:path''. |
48 | The file \fInode\fP must exist already and | |
97bc8a9d KB |
49 | it must be a directory. It becomes the name of the newly mounted root. |
50 | The optional arguments \fI-r\fP and \fI-w\fP indicate that the file | |
51 | system is to be mounted read-only or read-write, respectively. If | |
52 | either \fIspecial\fP or \fIfile\fP are not provided, the appropriate | |
53 | information is taken from the \fIfstab\fP file. The \fI-f\fP option | |
54 | causes everything to be done except for the actual system call; if it's | |
55 | not obvious, this ``fakes'' mounting the file system. | |
71799463 KM |
56 | The optional argument \fI-t\fP must be followed by \fBnfs\fP or |
57 | \fBufs\fP to indicate the file system type. The type \fBufs\fP is | |
58 | the default. | |
59 | The \fI-o\fP argument followed by \fIoptions\fP, which is a comma | |
60 | separated string of any of the following list, | |
61 | can be used to override the defaults for an nfs mount. | |
62 | .PP | |
71799463 | 63 | .IP "hard" 12 |
d84d1654 | 64 | I/O system calls will retry until the server responds (default) |
71799463 | 65 | .IP "soft" 12 |
d84d1654 | 66 | I/O system calls will fail and return errno after \fIretrans\fP request |
71799463 KM |
67 | retransmissions |
68 | .IP "bg" 12 | |
d84d1654 | 69 | If the first mount request times out, do retries in background |
71799463 | 70 | .IP "intr" 12 |
d84d1654 | 71 | I/O system calls can be interrupted. |
71799463 | 72 | .IP "rsize=#" 12 |
d84d1654 | 73 | Set read size to \fI#\fP bytes. |
71799463 | 74 | .IP "wsize=#" 12 |
d84d1654 | 75 | Set write size to \fI#\fP bytes. |
71799463 | 76 | .IP "retry=#" 12 |
d84d1654 | 77 | Set mount retry count to \fI#\fP. |
71799463 | 78 | .IP "retrans=#" 12 |
d84d1654 | 79 | Set retransmission count for nfs rpc's to \fI#\fP. |
71799463 | 80 | .IP "timeo=#" 12 |
d84d1654 | 81 | Set initial nfs timeout to \fI#\fP in 0.1 sec intervals. |
71799463 | 82 | .fi |
8f94bfbe KM |
83 | .PP |
84 | .I Umount | |
d5f9f0b6 KB |
85 | announces to the system that the removable file system \fInode\fP |
86 | or whatever removable file system was previously mounted on device | |
87 | \fIspecial\fP should be removed. | |
8f94bfbe | 88 | .PP |
d5f9f0b6 | 89 | If the \fI-a\fP option is present for either |
8f94bfbe KM |
90 | .I mount |
91 | or | |
92 | .I umount, | |
93 | all of the file systems described in | |
d5f9f0b6 KB |
94 | .I fstab |
95 | are mounted or unmounted. | |
8f94bfbe | 96 | .PP |
810ea9be | 97 | The system maintains a list of currently mounted filesystems. |
8f94bfbe KM |
98 | If invoked without an argument, |
99 | .I mount | |
d5f9f0b6 | 100 | prints the list. |
8f94bfbe KM |
101 | .PP |
102 | Physically write-protected and magnetic tape file | |
103 | systems must be mounted read-only | |
104 | or errors will occur when access times are updated, | |
105 | whether or not any explicit write is attempted. | |
106 | .SH FILES | |
8f94bfbe KM |
107 | /etc/fstab file system table |
108 | .SH "SEE ALSO" | |
810ea9be | 109 | mount(2), fstab(5) |
8f94bfbe | 110 | .SH BUGS |
d5f9f0b6 KB |
111 | Mounting garbaged file systems will crash the system. |
112 | .PP | |
8f94bfbe KM |
113 | Mounting a root directory on a non-directory |
114 | makes some apparently good pathnames invalid. |