don't wait for packets on SIGINTR, just die
[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.\"
d84d1654 5.\" @(#)mount.8 6.6 (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
d84d1654 28nfs | ufs
71799463
KM
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
71799463 63.IP "hard" 12
d84d1654 64I/O system calls will retry until the server responds (default)
71799463 65.IP "soft" 12
d84d1654 66I/O system calls will fail and return errno after \fIretrans\fP request
71799463
KM
67retransmissions
68.IP "bg" 12
d84d1654 69If the first mount request times out, do retries in background
71799463 70.IP "intr" 12
d84d1654 71I/O system calls can be interrupted.
71799463 72.IP "rsize=#" 12
d84d1654 73Set read size to \fI#\fP bytes.
71799463 74.IP "wsize=#" 12
d84d1654 75Set write size to \fI#\fP bytes.
71799463 76.IP "retry=#" 12
d84d1654 77Set mount retry count to \fI#\fP.
71799463 78.IP "retrans=#" 12
d84d1654 79Set retransmission count for nfs rpc's to \fI#\fP.
71799463 80.IP "timeo=#" 12
d84d1654 81Set initial nfs timeout to \fI#\fP in 0.1 sec intervals.
71799463 82.fi
8f94bfbe
KM
83.PP
84.I Umount
d5f9f0b6
KB
85announces to the system that the removable file system \fInode\fP
86or whatever removable file system was previously mounted on device
87\fIspecial\fP should be removed.
8f94bfbe 88.PP
d5f9f0b6 89If the \fI-a\fP option is present for either
8f94bfbe
KM
90.I mount
91or
92.I umount,
93all of the file systems described in
d5f9f0b6
KB
94.I fstab
95are mounted or unmounted.
8f94bfbe 96.PP
810ea9be 97The system maintains a list of currently mounted filesystems.
8f94bfbe
KM
98If invoked without an argument,
99.I mount
d5f9f0b6 100prints the list.
8f94bfbe
KM
101.PP
102Physically write-protected and magnetic tape file
103systems must be mounted read-only
104or errors will occur when access times are updated,
105whether or not any explicit write is attempted.
106.SH FILES
8f94bfbe
KM
107/etc/fstab file system table
108.SH "SEE ALSO"
810ea9be 109mount(2), fstab(5)
8f94bfbe 110.SH BUGS
d5f9f0b6
KB
111Mounting garbaged file systems will crash the system.
112.PP
8f94bfbe
KM
113Mounting a root directory on a non-directory
114makes some apparently good pathnames invalid.