[Cialug] Using dd and netcat to move a disk

Zachary Kotlarek zach at kotlarek.com
Mon Jul 26 16:29:01 CDT 2010


On Jul 26, 2010, at 4:14 PM, Nathan C. Smith wrote:

> 
> I'm using a command like this:
> dd if=/dev/sda | nc x.x.x.x 6001
> 
> To move a drive between machines.  The dd program has reported how many records have been read and written (18290688+0 records in 18290688+0 records out).  
> 
> Will the system return to the command line?  It seems to have stopped responding, is this an artifact of nc still waiting for input?



It should return to the prompt.

dd should close the output stream when it's done; netcat should exit when the input stream is closed.

If you can get to another terminal I'd check to see what state dd and netcat are in.

	Zach

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2746 bytes
Desc: not available
Url : http://cialug.org/pipermail/cialug/attachments/20100726/03c2e922/attachment.bin 


More information about the Cialug mailing list