[plug] dd </dev/hda >/dev/hdb

Anthony J. Breeds-Taurima tony at cantech.net.au
Fri Dec 1 14:21:33 WST 2000


On Fri, 1 Dec 2000, Thomas, Andre wrote:

> I was planning changing a hdd from a 2gig to a 6gig using the command:
>
>      dd </dev/hda >/dev/hdb
>
> However, it has just been suggested by a collegue that this may only
> make 2gig accessable on the 6gig drive.  Is this correct?  If so, would
> there be a better way?

install both drives

mount /mnt/hda
mount /mnt/hdb

cd /mnt/hda
find -print0 | cpio -dumpa0 /mnt/hdb

this should make a complete copy of all the data access time etc etc of the
files on hda and place them in the "same" spot on hdb.


Yours Tony.

/*
 * "The significant problems we face cannot be solved at the
 * same level of thinking we were at when we created them."
 * --Albert Einstein
 */




More information about the plug mailing list