error in logfile

View: New views
5 Messages — Rating Filter:   Alert me  

error in logfile

by aditsu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi, I've been recovering data from a disk (it took many days because it kept reading at about 16KB/s for some reason).
From time to time the disk stopped responding so I had to stop and restart (I'm using a log file).
When I tried to start ddrescue again a bit earlier, it refused to work and threw this error:
ddrescue: error in logfile log, line 1186563
It had been stopped with ctrl-C previously.
What can I do now?

Thanks
Adrian

P.S. It also doesn't seem to have an option to read backwards, that would be useful


_______________________________________________
Bug-ddrescue mailing list
Bug-ddrescue@...
http://lists.gnu.org/mailman/listinfo/bug-ddrescue

Re: error in logfile

by Antonio Diaz Diaz-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Adrian Sandor wrote:
> From time to time the disk stopped responding so I had to stop and restart (I'm using a log file).
> When I tried to start ddrescue again a bit earlier, it refused to work and threw this error:
> ddrescue: error in logfile log, line 1186563

It seems the logfile was not correctly saved. Did the computer crash at
the wrong moment? Is the disc full? (A logfile with more than a million
lines is quite big).

You may try to fix the logfile with a text editor. Try removing the last
line if it is incomplete.

> P.S. It also doesn't seem to have an option to read backwards, that would be useful

It does not have an option to read backwards because it automatically
reads backwards when needed.


Regards,
Antonio.


_______________________________________________
Bug-ddrescue mailing list
Bug-ddrescue@...
http://lists.gnu.org/mailman/listinfo/bug-ddrescue

Re: error in logfile

by aditsu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
> It seems the logfile was not correctly saved. Did the computer crash at the wrong moment?

No, as I said, I had stopped ddrescue with ctrl-C

> Is the disc full? (A logfile with more than a million lines is quite big).

No, it still has over 50 GB free.

> You may try to fix the logfile with a text editor. Try removing the last line if it is incomplete.

It's not the last line. wc -l says the log file has 1329069 lines.
Here's an excerpt around the problem line:

0xB1A5EA400  0x00010000  +
0xB1A5FA400  0x00000400  -
0xB1A5FA800  0x00010000  +
0xB0060A800  0x1A000400  -
0xB1A60AC00  0x00010000  +
0xB1A61AC00  0x00000400  -
0xB1A61B000  0x00010000  +

I think line 1186563 is the one with 0xB0060A800 (at least that's what nano says).
Is there a safe way to fix it?

> It does not have an option to read backwards because it automatically reads backwards when needed.

Some "manual override" would be useful sometimes.

Thanks
Adrian


_______________________________________________
Bug-ddrescue mailing list
Bug-ddrescue@...
http://lists.gnu.org/mailman/listinfo/bug-ddrescue

Re: error in logfile

by Antonio Diaz Diaz-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Adrian Sandor wrote:
> Here's an excerpt around the problem line:
>
> 0xB1A5FA800  0x00010000  +
> 0xB0060A800  0x1A000400  -
> 0xB1A60AC00  0x00010000  +
>
> I think line 1186563 is the one with 0xB0060A800 (at least that's what nano says).
> Is there a safe way to fix it?

I think yes. Just replace the offending line with this one:
0xB1A60A800  0x00000400  -

I can't understand how "00" and "1A" got swapped in it!


>>It does not have an option to read backwards because it automatically reads backwards when needed.
>
> Some "manual override" would be useful sometimes.

Try --retrim on the desired domain.


Regards,
Antonio.


_______________________________________________
Bug-ddrescue mailing list
Bug-ddrescue@...
http://lists.gnu.org/mailman/listinfo/bug-ddrescue

Re: error in logfile

by aditsu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Thank you very much, I failed to notice that 2 hex digits got swapped.
After fixing that, I got the same error on another line:

0xBFBBBEA00  0x00000400  -
0xB00BBEE00  0xFB010000  +
0xBFBBCEE00  0x00000400  -

And after fixing that too, it finally resumed rescuing.
I wonder if it's a (weird) bug in ddrescue, or some other library

Adrian


From: Antonio Diaz Diaz <antonio_diaz@...>
To: bug-ddrescue@...
Cc: Adrian Sandor <aditsu@...>
Sent: Monday, March 16, 2009 2:38:33 AM
Subject: Re: [Bug-ddrescue] error in logfile

Adrian Sandor wrote:
> Here's an excerpt around the problem line:
>
> 0xB1A5FA800  0x00010000  +
> 0xB0060A800  0x1A000400  -
> 0xB1A60AC00  0x00010000  +
>
> I think line 1186563 is the one with 0xB0060A800 (at least that's what nano says).
> Is there a safe way to fix it?

I think yes. Just replace the offending line with this one:
0xB1A60A800  0x00000400  -

I can't understand how "00" and "1A" got swapped in it!


>>It does not have an option to read backwards because it automatically reads backwards when needed.
>
> Some "manual override" would be useful sometimes.

Try --retrim on the desired domain.


Regards,
Antonio.


_______________________________________________
Bug-ddrescue mailing list
Bug-ddrescue@...
http://lists.gnu.org/mailman/listinfo/bug-ddrescue