Difference between revisions of "Dd - Destroyer of Disks"

From Noah.org
Jump to navigationJump to search
Line 4: Line 4:
 
Start the receiving side first. This assumes machine 192.168.1.100:
 
Start the receiving side first. This assumes machine 192.168.1.100:
 
<pre>
 
<pre>
nc -l -p > disk_image.gz
+
nc -l -p 2222 > disk_image.gz
 
</pre>
 
</pre>
 +
  
 
Then start sending:
 
Then start sending:

Revision as of 11:41, 19 October 2007

Image a drive over a network with dd and nc

Start the receiving side first. This assumes machine 192.168.1.100:

nc -l -p 2222 > disk_image.gz


Then start sending:

dd bs=1M if=/dev/sda | gzip -c - | nc 192.168.1.100 2222