Initial import from FreeBSD RELENG_4:
[dragonfly.git] / sbin / umount / umount.8
1 .\" Copyright (c) 1980, 1989, 1991, 1993
2 .\"     The Regents of the University of California.  All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\"    must display the following acknowledgement:
14 .\"     This product includes software developed by the University of
15 .\"     California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\"    may be used to endorse or promote products derived from this software
18 .\"    without specific prior written permission.
19 .\"
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" SUCH DAMAGE.
31 .\"
32 .\"     @(#)umount.8    8.2 (Berkeley) 5/8/95
33 .\" $FreeBSD: src/sbin/umount/umount.8,v 1.7.2.3 2001/12/14 15:17:57 ru Exp $
34 .\"
35 .Dd May 8, 1995
36 .Dt UMOUNT 8
37 .Os
38 .Sh NAME
39 .Nm umount
40 .Nd unmount filesystems
41 .Sh SYNOPSIS
42 .Nm
43 .Op Fl fv
44 .Ar special \&| node
45 .Nm
46 .Fl a | A
47 .Op Fl fv
48 .Op Fl h Ar host
49 .Op Fl t Ar type
50 .Sh DESCRIPTION
51 The
52 .Nm
53 command
54 calls the
55 .Xr unmount 2
56 system call to remove a
57 .Ar "special device"
58 or the remote node (rhost:path) from the filesystem tree at the point
59 .Ar node .
60 If either
61 .Ar special
62 or
63 .Ar node
64 are not provided, the appropriate information is taken from the
65 .Xr fstab 5
66 file.
67 .Pp
68 The options are as follows:
69 .Bl -tag -width indent
70 .It Fl a
71 All the filesystems described in
72 .Xr fstab 5
73 are unmounted.
74 .It Fl A
75 All the currently mounted filesystems except
76 the root are unmounted.
77 .It Fl f
78 The filesystem is forcibly unmounted.
79 Active special devices continue to work,
80 but all other files return errors if further accesses are attempted.
81 The root filesystem cannot be forcibly unmounted.
82 .It Fl h Ar host
83 Only filesystems mounted from the specified host will be
84 unmounted.
85 This option implies the
86 .Fl A
87 option and, unless otherwise specified with the
88 .Fl t
89 option, will only unmount
90 .Tn NFS
91 filesystems.
92 .It Fl t Ar type
93 Is used to indicate the actions should only be taken on
94 filesystems of the specified type.
95 More than one type may be specified in a comma separated list.
96 The list of filesystem types can be prefixed with
97 .Dq no
98 to specify the filesystem types for which action should
99 .Em not
100 be taken.
101 For example, the
102 .Nm
103 command:
104 .Bd -literal -offset indent
105 umount -a -t nfs,mfs
106 .Ed
107 .Pp
108 unmounts all filesystems of the type
109 .Tn NFS
110 and
111 .Tn MFS
112 that are listed in the
113 .Xr fstab 5
114 file.
115 .It Fl v
116 Verbose, additional information is printed out as each filesystem
117 is unmounted.
118 .El
119 .Sh FILES
120 .Bl -tag -width /etc/fstab -compact
121 .It Pa /etc/fstab
122 filesystem table
123 .El
124 .Sh SEE ALSO
125 .Xr unmount 2 ,
126 .Xr fstab 5 ,
127 .Xr mount 8
128 .Sh HISTORY
129 A
130 .Nm
131 command appeared in
132 .At v6 .