1 .\" $NetBSD: umount.8,v 1.14 2005/12/30 10:29:56 mjl Exp $
3 .\" Copyright (c) 1980, 1989, 1991, 1993
4 .\" The Regents of the University of California. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the University nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" @(#)umount.8 8.2 (Berkeley) 5/8/95
37 .Nd unmount filesystems
41 .Op Fl t Ar fstypelist
47 .Op Fl t Ar fstypelist
54 system call to remove a
56 or the remote node (rhost:path) from the filesystem tree at the point
62 are not provided, the appropriate information is taken from the
66 The options are as follows:
67 .Bl -tag -width indent
69 All the currently mounted filesystems except the root are unmounted.
71 The filesystem is forcibly unmounted.
72 Active special devices continue to work,
73 but all other files return errors if further accesses are attempted.
74 The root filesystem cannot be forcibly unmounted.
76 Fake the unmount; perform all other processing but do not actually
78 (This is most useful in conjunction with
86 argument as a path to be passed directly to
88 bypassing all attempts to be smart about mechanically determining the
89 correct path from the argument.
90 This option is incompatible with any option that potentially unmounts
91 more than one filesystem, such as
93 but it can be used with
97 This is the only way to unmount something that does not appear as a
98 directory (such as a nullfs mount of a plain file); there are probably
99 other cases where it is necessary.
101 Only filesystems mounted from the specified host will be
103 This option is implies the
105 option and, unless otherwise specified with the
107 option, will only unmount NFS filesystems.
108 .It Fl t Ar fstypelist
109 Is used to indicate the actions should only be taken on
110 filesystems of the specified type.
111 More than one type may be specified in a comma separated list.
112 The list of filesystem types can be prefixed with
114 to specify the filesystem types for which action should
120 .Bd -literal -offset indent
124 unmounts all filesystems of the type
131 .Bd -literal -offset indent
132 umount -a -t nonfs,mfs
135 unmounts all file systems except those of type
140 Verbose, additional information is printed out as each filesystem
144 .Bl -tag -width /etc/fstab -compact