bug-ddrescue
[Top][All Lists]
Advanced

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

[Bug-ddrescue] How to do this...?


From: Paul L Daniels
Subject: [Bug-ddrescue] How to do this...?
Date: Fri, 20 Jun 2014 18:25:07 +1000

This is actually quite counter to what ddrescue does, but I frequently
get drives that need to be handled in the following way;

I need ddrescue to exit (with non-zero code perhaps) as soon as the
read rate hits zero, so that I can then power down the HDD, wait a few
minutes, and then have it power back up, all using a script, ie;

        bin/sh
        while [ 1 -eq 1 ]; do
                ddrescue --exit-on-zero -v -f /dev/sde img log

                if [ $? -eq 0 ]; then
                        exit
                fi

                powerSwitch off
                sleep 180
                powerSwich on
                sleep 10
        done

Basically the hard drives will run for a couple of minutes before
shutting down, letting me get about 1~10GB of data off, but I don't
want to have to keep manually checking and restarting to reclaim the
whole 500GB in this particular case.

Of course, worst case scenario, I'll just adjust the source-code myself
for now :)


-- 
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]