[mythtv-users] Hard drive failure -- recovery method suggestions
Jerry
mythtv at hambone.e4ward.com
Sun Apr 19 21:26:36 UTC 2015
On Apr 17, 2015 6:51 AM, "Stephen Worthington" <stephen_agent at jsw.gen.nz>
wrote:
>
>
> few bad sectors. For recording partitions, I recommend using a script
> that runs ddrescue on each file individually in turn, something like
> this:
>
> #!/bin/bash
>
> source=/mnt/bad/recordings
> dest=/mnt/new/recordings
> cd $source
> for a in * ; do
> #echo $a
> ddrescue -v "$source/$a" "$dest/$a" "$dest/$a.log"
> done
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.
#!/bin/bash
source=/mnt/bad
dest=/mnt/new
cd $source
find . -name * | while read a; do
echo $a
ddrescue -v "$source/$a" "$dest/$a" "$dest/$a.log"
done
Thanks!
Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20150419/d089eef6/attachment.html>
More information about the mythtv-users
mailing list