[wplug] dd

Jonathan S Billings billings at negate.org
Thu Feb 17 13:25:27 EST 2005


Eric C. Cooper wrote:
> On Thu, Feb 17, 2005 at 12:42:12PM -0500, Jonathan S Billings wrote:
> 
>>NEVER use 'cp -a' to copy system data to a new partition.  You'll lose 
>>all the metadata on the files and directories, such as permissions, 
>>ownership, timestamps and other bits.  The resulting OS will be useless. 
> 
> 
> According to the cp man page,
>     -a means -dpR
> 
>     -p means preserve mode, ownership, timestamps
>     -d means preserve symlinks
> 
> I routinely copy filesystems to new disks this way and boot from them.

You're right, I misread 'cp -a' as 'cp -r'.

I still don't like using cp, and would prefer using other tools.


-- 
Jonathan S. Billings <billings at negate.org>


More information about the wplug mailing list