[H-GEN] cp incantation

Robert Stanford rob at rotapile.com
Thu Apr 21 02:00:18 EDT 2005


Doug South wrote:

>[ Humbug *General* list - semi-serious discussions about Humbug and     ]
>[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
>
>Hi All,
>
>I've got a machine that has everything on one partition, which was OK
>at the time, but is causing some pain now. I've got a free partition
>and I want to move /usr from the root partition to the newly formatted
>partition *without* kill anything that currently works.
>
>I tried :
>
>cp -L -preserve=all -r /usr /mnt/hda6
>
>but some links weren't being created. I'm currently using midnight
>commander to do this[1], but I want to know the right way to get it
>done with cp. Any clues or suggestions?
>
>Regards,
>Doug
>
>[1] Most likely not the right answer because I'm sure I'm losing
>ownership, which is important if I really want to keep things working.
>
>  
>
cd /usr
find . | cpio -pm /mnt/hda6






More information about the General mailing list