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

Re: correct way to move /usr to a new partition...



William T Wilson wrote:
> 
> On Fri, 17 Sep 1999, rich wrote:
> 
> > I have decided that I need more room for my Slink system... my 1GB linux
> 
> Didn't we just do this one? :}
> 
> First go to single user mode.  It is probably not necessary but won't
> hurt.
> 
> > 1. as root, cp -r -p /usr /linux2a
> 
> The correct sequence is:
> 
> cd /usr
> tar cf - . | (cd /linux2a; tar xvf - )
> 
> cp gets things subtly wrong from time to time.  That includes sparse
> files, device files and pipes, and hard links.  You probably won't
> encounter any of these on /usr (although you might!).  But why do it wrong
> when you can do it right?
> 
I have used 'cp -a' with success.  It is the same as 'cp -dpR'.  '-d' is
supposed to take care of hard links properly.  If there are other
problems with 'cp -a', I'd like to know about them!


Reply to: