Subject Re: [firebird-support] Error in DB
Author Helen Borrie
At 12:48 PM 26/06/2003 -0400, Ann Harrison wrote:

> >c:\temp\gfix -validate copia.gdb
> >I/O error for file "C:\TEMP\COPIA.GDB"
> > -Error while trying to read from file
> > -Reached the end of the file.
> >
>Something to try is setting the database to be read-only and backing it up.
>If you can't set it to read only, make a copy of it. Create a similar
>database -
>same page size, etc. set it to read-only, and copy the first page of
>the new
>empty database over the first page of the copy of your broket database.
>For example, if your page size is 4096, copy the first 4096 bytes from the
>new file overwriting the first 4096 bytes of the copy. That should let you
>backup the database.

How do you 1) get hold of that first page?
2) copy it over the broken file?