How copy /usr contents to a new partition?

Jean-Philippe BATTU jeanpba at free.fr
Sat Jan 14 15:30:06 UTC 2006


Hi Parameshwara Bhat

To copy the content of a subdirectory to a new partition, and specially
if you have long filenames and would like to keep the "disk organisation",
I advice you to use backup and restore rather tar and cpio.

For example: to copy /usr to your new partition as /dev/sdb1

$ mkdir /a
$ mount /dev/sdb1 /a
$ cd /usr
$ /sbin/dump -0f - . | ( cd /a ; /sbin/restore -rf - )

Hope that helps


Cheers


Jean-Philippe BATTU
Grenoble
FRANCE
Site Web: http://www.geocities.com/jeanpba
http://jeanpba.homeip.net




More information about the fedora-list mailing list