bug-ddrescue
[Top][All Lists]
Advanced

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

Re: [Bug-ddrescue] configure DDRescue to retry disks that unexpectedly g


From: Paul L Daniels
Subject: Re: [Bug-ddrescue] configure DDRescue to retry disks that unexpectedly go offline
Date: Thu, 23 Jul 2015 01:06:49 +1000

Robert,

> So I thought it would be a useful feature that in such cases, instead
> of aborting, DDRescue could be configured to automatically retry
> input files after a certain interval.

        Given the diverse nature of reasons why a drive goes off line,
        I tend to prefer to use ddrescue within a bash script of my own
        making that gets tweaked/adjusted for each drive that needs
        this sort of 'support structure'.

        I had two drives this week that needed some pretty interesting
        scripts to make it all work together.  I also tie mine in with
        a power switch relay and a program that monitors the devices to
        see when the drive has come back to life and is ready to be
        scanned again.

        ...start with something like this;

        #!/bin/sh
        DDR=0
        while [ $DDR -eq 0 ]; do
                ddrescue -v -f /dev/sdc img log
                DDR=$?
                if [ $DDR -ne 0 ]; then
                        echo "ddrescu failure, sleep for 30s"
                        sleep 30
                fi
        fi
        #END

        ...and expand out from there.  

-- 
Computer Repairs for Charters towers - http://ctpc.biz
A.B.N. 19 500 721 806



reply via email to

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