Re: Rename a mountpoint (forcibly)?

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

 



On Tue, Apr 30, 2013 at 03:16:46PM -0700, Andy Lutomirski wrote:
> Is there a way to forcibly rename a mountpoint?  I can rename a
> directory that contains a mountpoint, but even if I bind-mount the
> underlying FS, I get EBUSY if I try to rename a mountpoint.  This is
> annoying -- I want to replace the entire contents of my root partition
> by moving the old contents away and moving replacements in, but the
> mountpoints get in the way.
> 
> Yes, this is evil, but it seems like the kernel is unnecessarily
> preventing my from shooting myself in the foot, and in this case the
> shot-in-the-foot is actually the desired effect.

Maybe you want "mount --move"?  Or pivot_root?

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




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux