[Cialug] Using dd and netcat to move a disk

Nathan C. Smith nathan.smith at ipmvs.com
Mon Jul 26 17:37:20 CDT 2010


Thanks gents.  I just wasn't being patient, it did finish, must have had to spool out a buffer?

I learned about process states while I was waiting, good tip.

-Nate

-----Original Message-----
From: cialug-bounces at cialug.org [mailto:cialug-bounces at cialug.org] On Behalf Of Zachary Kotlarek
Sent: Monday, July 26, 2010 4:29 PM
To: Central Iowa Linux Users Group
Subject: Re: [Cialug] Using dd and netcat to move a disk


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



More information about the Cialug mailing list