> giving up. It could also do some checks to make sure the reappeared
> device isn't a different device that someone just plugged in.

        I can offer an immediate alternative solution that avoids
        having to put more code in to ddrescue directly.  I wrote a
        small tool called 'waitfordevice' (wfd) which does exactly what
        you want and gives you the option for filtering for serial
        numbers / product codes;

        http://ctpc.biz/wfd-0.3.tar.gz

        tar zxvf wfd-0.3.tar.gz
        cd wfd-0.3
        make
        
                The resulting 'waitfordevice' tool then should run and
                give;

        ./waitfordevice -d <filename or device to monitor for> [-v] [-M
        (print model)] [-S (print serial)] [-s <signature>] [-p
        <polling time (milliseconds)>] [-r <retries>]


                I use it in my recovery script templates like;

        waitfordevice -p 1000 -r 240  -v -d /dev/sdc -s ST2000

Regards,
Paul.


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

_______________________________________________
Bug-ddrescue mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-ddrescue

Reply via email to