Penguin
Annotated edit history of umount(8) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 UMOUNT
2 !!!UMOUNT
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 THE LOOP DEVICE
7 FILES
8 SEE ALSO
9 HISTORY
10 ----
11 !!NAME
12
13
14 umount - unmount file systems
15 !!SYNOPSIS
16
17
18 __umount [[-hV]__
19
20
21 __umount -a [[-dflnrv] [[-t__ ''vfstype''__]
22 umount [[-dflnrv]__ ''dir'' __|__ ''device''
23 __[[...]__
24 !!DESCRIPTION
25
26
27 The __umount__ command detaches the file system(s)
28 mentioned from the file hierarchy. A file system is
29 specified by giving the directory where it has been mounted.
30 Giving the special device on which the file system lives may
31 also work, but is obsolete, mainly because it will fail in
32 case this device was mounted on more than one
33 directory.
34
35
36 Note that a file system cannot be unmounted when it is
37 `busy' - for example, when there are open files on it, or
38 when some process has its working directory there, or when a
39 swap file on it is in use. The offending process could even
40 be __umount__ itself - it opens libc, and libc in its
41 turn may open for example locale files. A lazy unmount
42 avoids this problem.
43
44
45 Options for the __umount__ command:
46
47
48 __-V__
49
50
51 Print version and exit.
52
53
54 __-h__
55
56
57 Print help message and exit.
58
59
60 __-v__
61
62
63 Verbose mode.
64
65
66 __-n__
67
68
69 Unmount without writing in ''/etc/mtab''.
70
71
72 __-r__
73
74
75 In case unmounting fails, try to remount
76 read-only.
77
78
79 __-d__
80
81
82 In case the unmounted device was a loop device, also free
83 this loop device.
84
85
86 __-a__
87
88
89 All of the file systems described in ''/etc/mtab'' are
90 unmounted. (With __umount__ version 2.7 and later: the
91 ''proc'' filesystem is not unmounted.)
92
93
94 __-t__ ''vfstype''
95
96
97 Indicate that the actions should only be taken on file
98 systems of the specified type. More than one type may be
99 specified in a comma separated list. The list of file system
100 types can be prefixed with __no__ to specify the file
101 system types on which no action should be
102 taken.
103
104
105 __-f__
106
107
108 Force unmount (in case of an unreachable NFS system).
109 (Requires kernel 2.1.116 or later.)
110
111
112 __-l__
113
114
115 Lazy unmount. Detach the filesystem from the filesystem
116 hierarchy now, and cleanup all references to the filesystem
117 as soon as it is not busy anymore. (Requires kernel 2.4.11
118 or later.)
119 !!THE LOOP DEVICE
120
121
122 The __umount__ command will free the loop device (if any)
123 associated with the mount, in case it finds the option
124 `loop=...' in ''/etc/mtab'', or when the -d option was
125 given. Any pending loop devices can be freed using `losetup
126 -d', see losetup(8).
127 !!FILES
128
129
130 ''/etc/mtab'' table of mounted file systems
131 !!SEE ALSO
132
133
134 umount(2), mount(8),
135 losetup(8).
136 !!HISTORY
137
138
139 A __umount__ command appeared in Version 6 AT
140 __
141 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.