1 .\" Copyright (c) 1996 Andries Brouwer
2 .\" This page is somewhat derived from a page that was
3 .\" (c) 1980, 1989, 1991 The Regents of the University of California
4 .\" and had been heavily modified by Rik Faith and myself.
6 .\" This is free documentation; you can redistribute it and/or
7 .\" modify it under the terms of the GNU General Public License as
8 .\" published by the Free Software Foundation; either version 2 of
9 .\" the License, or (at your option) any later version.
11 .\" The GNU General Public License's references to "object code"
12 .\" and "executables" are to be interpreted as the output of any
13 .\" document formatting or typesetting system, including
14 .\" intermediate and printed output.
16 .\" This manual is distributed in the hope that it will be useful,
17 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
18 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 .\" GNU General Public License for more details.
21 .\" You should have received a copy of the GNU General Public
22 .\" License along with this manual; if not, write to the Free
23 .\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
26 .TH UMOUNT 8 "26 July 1997" "Linux 2.0" "Linux Programmer's Manual"
28 umount \- unmount file systems
32 .BI "umount -a [\-nrv] [\-t " vfstype ]
34 .BI "umount [\-nrv] " "device " | " dir " [...]
38 command detaches the file system(s) mentioned from the file hierarchy.
39 A file system is specified either by giving the directory where it
40 has been mounted, or by giving the special device on which it lives.
42 Note that a file system cannot be unmounted when it is `busy' -
43 for example, when there are open files on it, or when some process
44 has its working directory there, or when a swap file on it is in use.
45 The offending process could even be
47 itself - it opens libc, and libc in its turn may open for example
55 Print version and exit.
58 Print help message and exit.
64 Unmount without writing in
68 In case unmounting fails, try to remount read-only.
71 In case the unmounted device was a loop device, also
72 free this loop device.
75 All of the file systems described in
79 version 2.7 and later: the
81 filesystem is not unmounted.)
84 Indicate that the actions should only be taken on file systems of the
85 specified type. More than one type may be specified in a comma separated
86 list. The list of file system types can be prefixed with
88 to specify the file system types on which no action should be taken.
91 Force unmount (in case of an unreachable NFS system).
92 (Requires kernel 2.1.116 or later.)
97 command will free the loop device (if any) associated
98 with the mount, in case it finds the option `loop=...' in
100 or when the \-d option was given.
101 Any pending loop devices can be freed using `losetup -d', see
107 table of mounted file systems
117 command appeared in Version 6 AT&T UNIX.