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

Re: replacing /usr with a new mountpoint



On Fri, May 04, 2007 at 03:35:43PM -0700, John L Fjellstad wrote:
> Andrew Sackville-West <andrew@farwestbilliards.com> writes:
> 
> > my reading of man mount suggests that you want
> >
> > mount --rbind / /mnt
> > -------^^^
> >
> > but its not very clearly written (IMO) so I suggest you 
> > touch a dummy file in the new /usr and double check whether its in
> > /mnt/usr as a test to confirm that the mount of new /usr doesn't carry
> > over. 
> 
> 
> I'm not sure that's right.

weeee...



> 
>   Since Linux 2.4.0 it is possible to remount part of the file  hierarchy
>   somewhere else. The call is
>        mount --bind olddir newdir
>   After this call the same contents is accessible in two places.  One can
>   also remount a single file (on a single file).
> 
>   This call attaches only (part of) a  single  filesystem,  not  possible
>   submounts.  The entire file hierarchy including submounts is attached a
>   second place using
>        mount --rbind olddir newdir

yeah, okay, I see it now, though it maybe could be worded better. The
obvious part, though is the 'r' as in 'r'ecursive... 

thanks

A

Attachment: signature.asc
Description: Digital signature


Reply to: