bug-ddrescue
[Top][All Lists]
Advanced

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

Re: [Bug-ddrescue] Feature suggestion: wait for input file/device to rea


From: Paul L Daniels
Subject: Re: [Bug-ddrescue] Feature suggestion: wait for input file/device to reappear
Date: Thu, 22 Oct 2015 19:14:21 +1000

> 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



reply via email to

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