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

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



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

William T Wilson <fluffy@snurgle.org> writes:

> 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?

Or go the whole way:

cd /usr
find . -depth -print | cpio -pdmuV /linux2a
- -- 
Sam Vilain, sam@whoever.com
http://www.hydro.gen.nz/~sam/
GPG key: http://www.hydro.gen.nz/~sam/gpgkey.txt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE35CrU4XJBugPwNAgRAvUOAJ9a7Cg84AFTCn3eMp2oQ3YGpAfMAQCZAfcl
ZtFNKPyxcpwvisBa1Je4uPs=
=4V5J
-----END PGP SIGNATURE-----


Reply to: