[Bug 759394] Re: can not umount rbind mounts
Ivan Zakharyaschev
759394 at bugs.launchpad.net
Wed Jun 14 23:20:26 UTC 2017
This worked for me correctly --
https://unix.stackexchange.com/a/264488/4319 :
mount --rbind /dev /mnt/test
mount --make-rslave /mnt/test
umount -R /mnt/test
It was important to have the two first commands as two separate
commands: do not combine --rbind and --make-rslave in one invocation of
mount.
Without --make-rslave , the behavior was unwanted (and not successful):
* umount -l would affect the original old mountpoints, too,
* and umount -R would be affected by the busy (open) files under the original old mountpoints. (Very unexpected...)
** Changed in: util-linux (Ubuntu)
Status: Confirmed => Opinion
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/759394
Title:
can not umount rbind mounts
Status in util-linux package in Ubuntu:
Opinion
Bug description:
Binary package hint: util-linux
mkdir /mnt/dev
mount --rbind /dev /mnt/dev
umount /mnt/dev
The umount fails because of the sub mounts that the recursive bind
also bind mounted under /mnt/dev, which you have to remove manually
first. When you mount with --rbind, umount should be able to reverse
the process, unmounting all recursively bound mounts.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/759394/+subscriptions
More information about the foundations-bugs
mailing list