From 4eb49f63920d4b32e9da8995618caacb29517ac3 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 26 Feb 2013 14:50:26 +0100 Subject: 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 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 --- sys-utils/umount.8 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sys-utils/umount.8') 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) -- cgit v1.2.3-55-g7522