On 05/08/12 14:29, Udo Gaß wrote:

Hi!

> Hi at all,
>
> I receive the message "Error opening name file" when I try to open a
> certain database. scidt -N delivers "ERROR: corrupt data reading
> [name].sn4". The problem is presumably caused by  a system crash (not
> induced by scid) while maintenance of a scid-database was running.
> scid-version is 4.3

That's terrible...

> Does anyone know a method for data recovery?

I am afraid this cannot be repaired automagically, no. The name file 
contains key information that is not duplicated elsewhere in the s?4 files.

You may be able to bring the file back into an internally consistent 
state, using a hex editor and after adding a few strategic debug 
printf's to the source code, but this will not guarantee that much on 
the integrity of the database as a whole.

Typically, the name file is completely re-written from scratch (note 
that I am not saying that this a healthy approach). First a header is 
written. This header contains (a.o.) the number of name entries. After 
this, all name entries are appended to the file, one by one, in a loop. 
Most likely, the system crash happened somewhere during this loop (and 
you should hope it was near the end of the loop!).
If so, and when opening the file today, the header will mention more 
name entries than that there are available in the file. Correcting the 
number of entries in the file header to match the number of complete 
entries available in the file is not too hard and will make the file 
consistent again.
Although the first recovery stage stops here, Scid will certainly miss a 
few names when trying to combine games and names into something that 
makes sense to humans....

What maintenance operation were you running? What OS?
Is there any (bad) chance that some file system "recovery" operation 
damaged the file even further during the reboot after the system crash?

If you do not know where to start with the above, I might be able to 
help you. If you want, you can share the name file (I do have dropbox), 
and I can see what I can do.

Cheers,
Joost.

>
> Regards
> Udo
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Scid-users mailing list
> Scid-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/scid-users
>


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Scid-users mailing list
Scid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scid-users

Reply via email to