diff options
author | Karel Zak | 2013-02-26 14:50:26 +0100 |
---|---|---|
committer | Karel Zak | 2013-02-26 14:50:26 +0100 |
commit | 4eb49f63920d4b32e9da8995618caacb29517ac3 (patch) | |
tree | 6105fe7e1041b2b8b643d18f16bb0c0980ed8852 /sys-utils/umount.8 | |
parent | libmount: export umount mountpoint look up code (diff) | |
download | kernel-qcow2-util-linux-4eb49f63920d4b32e9da8995618caacb29517ac3.tar.gz kernel-qcow2-util-linux-4eb49f63920d4b32e9da8995618caacb29517ac3.tar.xz kernel-qcow2-util-linux-4eb49f63920d4b32e9da8995618caacb29517ac3.zip |
umount: add --all-targets
The same source (whole filesystem or filesystems subvolume) could be
mounted on more targets (mountpoints). For example bind mounts or
btrfs sub-volumes.
If you want to detach the source device from the system then you need
to unmount all the mountpoints.
umount --all-targets <device|mountpoint>
provides this functionality. This option could be used together with
--recursive. Then all nested mountpoints within the filesystem are
unmounted too. For example:
umount --recursive --all-targets /dev/sdb1
should be a way how to make the device unmounted at all.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/umount.8')
-rw-r--r-- | sys-utils/umount.8 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys-utils/umount.8 b/sys-utils/umount.8 index e49b59e67..c18e40ac2 100644 --- a/sys-utils/umount.8 +++ b/sys-utils/umount.8 @@ -66,6 +66,13 @@ version 2.7 and later: the .I proc filesystem is not unmounted.) .TP +\fB\-A\fR, \fB\-\-all-targets\fR +Unmount all mountpoints for the specified filesystem if the filesystem is +mounted on more places. The filesystem could be specified by one of the +mountpoints or device name (or UUID, etc.). This option could be used together +with \fB\-\-recursive\fR then all nested mounts within the filesystem are +recursively unmounted. +.TP \fB\-c\fR, \fB\-\-no\-canonicalize\fR Do not canonicalize paths. For more details about this option see the .BR mount (8) |