Start both machines with System Rescue CD
http://www.sysresccd.org/Main_Page
ON SLAVE MACHINE - new harddrive
net-setup eth0 (or wlan0)
nc -l -p 9000 | dd of=/dev/sda
ON MASTER MACHINE - old harddrive that needs to be copied
net-setup eth0 (or wlan0)
dd if=/dev/sda | nc 192.168.0.254 9000
To monitor the status of dd command:
pidof dd - returns pid for dd command
kill -USR1 pid from previous command
reference:
http://www.rajeevnet.com/hacks_hints/os_clone/os_cloning.htmlend.