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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/759394

Title:
  can not umount rbind mounts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/759394/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to