bug-ddrescue
[Top][All Lists]
Advanced

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

[Bug-ddrescue] Fwd: Re: Feature suggestion: wait for input file/device t


From: Ketil Froyn
Subject: [Bug-ddrescue] Fwd: Re: Feature suggestion: wait for input file/device to reappear
Date: Thu, 22 Oct 2015 18:33:42 +0200

Sorry, I meant to send this to the list.

> Paul,
>
> Thanks, that's interesting. How about adding a mode of operation so that
you only need to specify the serial number? The program could keep an eye
out for that serial number and output the device name to STDOUT when it
appears. In that case it could be run with only the serial as a parameter,
and you don't need to bother finding out the device name. Something like:
>
> $ sudo ddrescue $(waitfordevice -S WD1234567) output.raw output.map
>
> Ketil
>
> On 22 October 2015 at 11:14, Paul L Daniels <address@hidden>
wrote:
> >
> >> 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
>
> --
> -Ketil


reply via email to

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