Thanks.  I will be looking at combining my current version of gnu-dd with
my current asmutils-dd (named 'dd-lfs') and adding the ability to skip bad
physical blocks and go backwards at some point.  For now, though, given
that I have patched the gnu-dd included to use real seeks for 'skip' if
the input is a block device, you can achieve the same thing (at some cost
in performance) by just running dd one block at a time under sh or lua
control.  Come to think of it, maybe I'll just write such a wrapper for
inclusion.  The way to do this is something like:

#!/usr/bin/lua
for i = 0 , 100
do
r = execute ( "dd if=/dev/hda1 count=1 skip=" .. i )
if r ~= 0 then print "bad block:" .. i end
end

You could of course do the reads directly from lua, or get fancy with
options, etcetera, but you see the basic idea, how to get the job done
with only the pieces currently available.

-Tom


On Sun, 14 Apr 2002, Mike Schechter wrote:

> Date: Sun, 14 Apr 2002 09:27:10 -0400
> From: Mike Schechter <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: useful addition
>
> Hi, and thanks for such a cool and useful distro!
>
> I was trying to save a failing drive last week and came across this copy util:
>
> http://www.garloff.de/kurt/linux/ddrescue/
>
> This was the only thing that I could use to clone the drive under any
> operating system.  I ended up putting it on the trb diskette in case I'm in
> a jam again, but thought you might find it useful, too.
>
> Cheers -- and thanks again!
> M. Schechter
>

Reply via email to