unshare -m does not work as expected

Colin Law clanlaw at googlemail.com
Fri Apr 26 16:01:53 UTC 2013

On 26 April 2013 12:50, Kevin Wilson <wkevils at gmail.com> wrote:
> I am trying this simple sequence:
> unshare -m /bin/bash
> mount /dev/sd3 /mnt/sda3

Is there a typo there?

> then from a different terminal I run:
> mount | grep sda2

Is there another typo there?

It might be best to run the commands and copy/paste the results here.
Run the mount | grep before the unshare just to confirm and post the
complete sequence.


> And I see this mount (which was not mounted before running this mount command)
> cat /proc/self/mountinfo | grep share (on the second terminal, and
> also on  the first) does not find anything.
> So we don't have here a shared mount.
> Now, I would expect not to see sda3 mounted on the second terminal.
> I created a child with a different namespace in the first terminal.
> Why do I see it ?
> regards,
> Kevin
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

More information about the ubuntu-users mailing list