How copy /usr contents to a new partition?
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
Site Web: http://www.geocities.com/jeanpba
More information about the users