Hello, My ddrescue log file seems to have become corrupted and I am looking for a way to recover as much of it as possible inorder to avoid starting the recovery process over again.
What I've Been Doing: I have been using ddrescue via a live CD with the log file being written to a mounted cifs share. The ddrescue source drive will periodically cease to be readable, but will usually work again after the system is shutdown and restarted. When the last successful read, as resported by ddrescue, is >10 minutes I have stopped ddrescue by press ctrl-c, unmount the cifs share, restart the system, remount the cifs share, and resume ddrescue. Until the last round this had been working very well. What Went Wrong: The log file now contains multiple lines such as the following 0x1030084400 0x0000F400 + 0x1030093800 0x00000C00 - 0x1030094400 0x000...@^@^...@^@^...@^@^...@^@^...@^@^...@^@<trimmed>^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^0x0001fc00 + 0x1035C14000 0x00000400 - 0x1035C14400 0x0000FC00 + Attempts to Fix: Before I realised the extent of the problem I hand corrected 3 such lines by editing the offending line to set the size column to the difference between the position of the offending line and the position of the next line and then setting the status to /. After doing this ddrescue stopped reporting an error at the particular line, but then complained about the next similar line. There are many (many) such lines. Is there an existing script that can correct the corrupted lines or another easy way to restore as much of the log file as possible? Google hasn't been particularly helpful. I would also be interested in any suggestions about what went wrong. Is a cifs share the wrong place to be storing a ddrescue log file? Many thanks, - Ben _______________________________________________ Bug-ddrescue mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-ddrescue
