Lost partition table - one db needed rescued

I have lost disk partition table and cannot rescue it (it’s been already overwritten). Other than that the disk hasn’t been touched. The only db I need from that disk is names.nsf. I have a program that can scan the beginnings of nsf files (“cat /dev/hda | ./scan”) and print the startpoint. Then I can do, for example, “dd if=/dev/hda of=/root/tmp/db.nsf bs=1 count=52428800 skip=startpoint-1”.

Is there any way to find the ending point or length of a nsf file (if I’m lucky and the database is still as one contignous chunk, or most likely it isn’t?) so that I can recover it. I am now using estimated lengths such as 50MB and hoping that the EOF marker is included…

Btw, Admin Client shows the “raw” database on db list locally (with correct db title etc.) but on open says db is corrupted - cannot allocate space. I was hoping that fixup or compact could handle too long files… I am wrong right?

No hope?

Subject: Lost partition table - one db needed rescued

Your method is never going to work, since the data on the device is filesystem specific (ie: it is not a contiguous block of data).

If the disk is not written to at all (other than overwriting the partition table), the simplest way to retrieve your data is to re-create the original partition table (which you probably now). Just fire up fdisk (or the partitioning tool of your choice), and re-create the partition according to how it was before it was screwed up. The data is still in the same place, so this should work without a problem.

cheers,

Bram