bug-ddrescue
[Top][All Lists]
Advanced

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

[Bug-ddrescue] [PATCH] new option to abort after x new errors


From: Andreas Oberritter
Subject: [Bug-ddrescue] [PATCH] new option to abort after x new errors
Date: Tue, 12 Oct 2010 00:59:10 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.12) Gecko/20100915 Thunderbird/3.0.8

Hi,

here comes another patch (0003-*.patch). With it, ddrescue -E 1 aborts
after one additional error occurred.

My problem is that my hard drive stops responding after certain sectors
are accessed, causing ddrescue to mark all following sectors as bad. I
used this parameter to run ddrescue in a loop, examining kernel messages
after each invokation to know when a power cycle is required to make the
drive respond again.

This is useful when ddrescue runs for the first time. However, when
splitting, ddrescue apparently doesn't increase the error counter.

Because of that, I created another patch to exit on fatal errors, which
however depends on two things:

1. ddrescue runs on Linux
2. The input file is a hard drive (possibly limited to ATA drives)

Therefore I don't recommend to apply this second patch (0004-*.patch) as
is. You could, maybe, add an option to enable this feature on demand.

Regards,
Andreas

Attachment: 0003-Add-new-command-line-option-E-to-specifiy-maximum-am.patch
Description: Text Data

Attachment: 0004-linux-fail-if-drive-does-not-respond-to-identify-com.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]