[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trimming away bad sectors...



On Wed, 2004-11-17 at 08:59 -0600, mike808@users.sourceforge.net wrote:
> > One of these command lines may include the bad sectors. Can younger,
> > more experienced eyes verify them for me?
> 
> I would look around and get a copy of dd_rescue instead of using regular dd.
> 
> http://www.garloff.de/kurt/linux/ddrescue/
> 
> It can auto-skip/adjust for error blocks, as well as try reading from the opposite direction. Very nice.
> 
> I couldn't get to the site from work, but that's probably because his server doesn't like my source IP.

Mike,

Thanks for the link. Downloaded the src.rpm and rebuilt it for my
machine. Then discovered an odd thing. Unlike the "real" dd, dd_rescue
requires me to write to an output _file_ rather than stdout which can be
piped to nc:

listener:
  # nc -l -p 30000 > hda5.img
source:
  # dd_rescue if=/dev/hda5 | nc 192.168.1.2 30000 -w 3
  dd_rescue: (fatal): both input and output have to be specified!

Seems to me that trying to use dd_rescue to copy a 35G partition image
to a file on a 48G drive will violate at least two laws of nature.

-- Doc
Robert G. (Doc) Savage, BSE(EE), CISSP, RHCE | Fairview Heights, IL
Fedora Core 3 kernel 2.6.9-1.667 on a P-III/M IBM Thinkpad A22p
"Perfection is the enemy of good enough."
                         -- Admiral of the Fleet Sergei G. Gorshkov


-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.