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