How copy /usr contents to a new partition?

STYMA, ROBERT E (ROBERT) stymar at lucent.com
Fri Jan 13 13:52:04 UTC 2006


> 
> I want to copy /usr to a new partition and then attach that 
> at /usr. I  
> issued a command
> 
> 	cp -options(recursive included) /usr /mnt/"mountpoint
> 
I often use the following syntax to copy directory structures and
preserve permissions, dates, soft links, etc.

intially name /mnt/"mountpoint  /mnt/usr

(cd /;tar cf - usr) | (cd /mnt; tar xf - ) 

After that you can name the mountpoint whatever you want.

Bob Styma




More information about the fedora-list mailing list