On Fri, Sep 05, 2008 at 11:12:57AM -0700, Brian LaMere wrote:

/show/fred/stuff
[EMAIL PROTECTED]:/ > mount /dev/sda3 /show/fred
[EMAIL PROTECTED]:/ > find /show

Now, with /show/fred mounted, I want to delete "stuff" which is,
unfortunately, "under" the mount point.

# mount --bind /show /tmp/show
# rm /tmp/show/fred/stuff
# umount /tmp/show

At least under Linux.

When doing backups, I always do a bind mount of '/' somewhere and back
that up.  It's especially important to get a real /dev.

There's also a 'mount --rbind' which preserves the submounts, but that
isn't useful here.  Newer kernels give even more control over it.

David


--
KPLUG-List@kernel-panic.org
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to