Re: mount: remount and -n don't mix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 27, 2010 at 4:33 PM, Andrew Lutomirski <luto@xxxxxxx> wrote:
> # touch foo
> # touch bar
> # mount -n --bind foo bar
> # mount -n -o remount,ro bar
> mount: can't find bar in /etc/fstab or /etc/mtab
>
> That seems like an oversight -- why is -o remount looking at
> /etc/fstab and /etc/mtab at all?  Especially when I set -n.
>
> Oddly, this doesn't work either:
> # mount -n -o remount,ro -t bind foo bar
> mount: bar is busy
>
> Am I missing something?

This works:

# mount -n --bind -o remount,ro none bar

Perhaps that should go in the man page.  This isn't intuitive at all.

--Andy
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux