Ghosting a linux machine
Target Machine:
** Boot to linux rescue mode with networking
# -nc -l -p portnumber | dd of=/dev/sda (assuming the hard drive is sda and not hda)
# nc -l -p 30 | dd of=/dev/sda
Source Machine:
# -dd if=/dev/sda | nc ipaddresstarget portnumber
# dd if=/dev/sda | nc 192.168.0.20 30
Then to check that traffic is flowing, on the source go to another terminal (ALT/F2) and dump the tcp data on the NIC (assuming it's eth0):
tcpdump -tnli eth0 port 30