>Ed G. wrote:
>...
>> drives were identical I simply did a brute force copy from one
>> machine to the other:
>>
>> New Machine 192.168.0.240
>>
>> nc -l -p 7001 | dd of=/dev/hda
>>
>> Old Machine
>>
>> dd if=/dev/hda | nc -w 3 -n 192.168.0.240 7001
>>
>> Worked like a charm.
>
You might also want to check this to save bandwithdh &or time :
source : dd if=/dev/hda | gzip -c9v | nc -w 3 -n etc..etc...
target : nc -l -p 7001 | gzip -d9v | dd of=/dev/hda
if this works -it does for me :-), you can gzip on the fly from the source
and ungip on the target. If you use this, you should also ensure that the
unnaffected space on the disk is clean : for example : cat /dev/zero
>./sometemporaryfile; sync; rm ./sometemporaryfile. This might save 50% of
your time, and even a lot more on big almost empty disks.
Forcing some bs or count options in dd may also help. you can also use
/dev/hdan as sources or targets, use sfdisk (the batchable fdisk), dump &
restore, tar, etc, to handle various situations.
Oh yeah of course : this is dangerous : use at your own *real* risks : and
don't forget to pray $DEITY, and maybe think about what you're doing
before. But it happens to work for me, including on NTFS partitions with a
2.2.10 kernel with NTFS RW support.
Also note that nc
--
Pierre MONDIE : SSR : 74-78