<p dir="ltr"><br>
On Apr 17, 2015 6:51 AM, "Stephen Worthington" <<a href="mailto:stephen_agent@jsw.gen.nz">stephen_agent@jsw.gen.nz</a>> wrote:<br>
><br>
><br>
> few bad sectors. For recording partitions, I recommend using a script<br>
> that runs ddrescue on each file individually in turn, something like<br>
> this:<br>
><br>
> #!/bin/bash<br>
><br>
> source=/mnt/bad/recordings<br>
> dest=/mnt/new/recordings<br>
> cd $source<br>
> for a in * ; do<br>
> #echo $a<br>
> ddrescue -v "$source/$a" "$dest/$a" "$dest/$a.log"<br>
> done</p>
<p dir="ltr">Would the following script work? I would like to grab all of the recoverable files at once. Or should "-name *" be "-type f" to skip the directories? I may have mangled the paths.</p>
<p dir="ltr">#!/bin/bash</p>
<p dir="ltr">source=/mnt/bad<br>
dest=/mnt/new<br>
cd $source<br>
find . -name * | while read a; do<br>
echo $a<br>
ddrescue -v "$source/$a" "$dest/$a" "$dest/$a.log"<br>
done</p>
<p dir="ltr">Thanks!<br>
Jerry</p>