[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-ddrescue] ddrescue and netcat/cryptcat
From: |
Ariel |
Subject: |
Re: [Bug-ddrescue] ddrescue and netcat/cryptcat |
Date: |
Wed, 7 Mar 2007 18:08:16 -0500 (EST) |
On Wed, 7 Mar 2007, address@hidden wrote:
I would like to pipe the output of ddrescue to netcat to send an image
trough a network. I can do this with dd ( dd if=/dev/hda1 | netcat pc_ip
3333 and netcat -l -p 3333 | dd of=hda1.img in the other side ) but I
wasn't able with ddrescue....any clue?
Create a fifo with mkfifo, and have dd_rescue write to it. On a separate
screen have netcat read from the fifo.
Be warned: a fifo is not seekable (btw the | you are using with dd is
actually also a fifo internally), since it's not seekable I can not say
how it will work. dd_rescue does seek the output file, especially when it
finds errors.
It's likely to only work if there are no errors in the input, in which
case why are you using dd_rescue?
I don't know why you want to use netcat, if it's because you have no
available storage for your dd_rescue output, instead of netcat (which will
not work since it's not seekable), use a remotely mounted filesystem (smb,
nfs, sshfs, etc.).
-Ariel