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