Segment lengths do not match

AIT - Mark Comins mtcomins at trilambda.aperion.com
Wed Sep 27 08:39:45 PDT 2006



On Wed, 27 Sep 2006, Jaime Perry wrote:

> Hello,
>
> I found and old note of mine about a corrupted file I came across at some 
> point.  The client determined they did not need the file so it became a non 
> issue at the time, but, curiosity has a hold of me now.  I am wondering if 
> there would have been a way to recover the records in the file.
>
> The client was using Filepro 4.?? on a SCO unix system.  From what I 
> remember, they were getting bad block messages constantly and I figured this 
> particular file was sitting on a bad block.  When trying to define files or 
> access via Inquire. Update, Add, I would get the following error:
>
> Segment lengths do not match.
>
> Key and data segments contain differing number of records.
>
> Is there a way to recover/fix this?  We recently had a rash of clients with 
> hard drive problems and while this error did not occur for any of them, 
> besides curing my curiosity, it would be useful to know in case it does 
> happen again.

Jaime,

I have tried the following with limited sucess.  Cd to the directory and 
mv key savkey
mv data savdata
cp savkey key
cp savdata data

By moving you are able to keep the data on the same part of the hard 
drive.  Copying back makes a copy of the file to another part of the hard 
drive that might not be bad.  If the copy is sucessful then chown the two 
new files to filepro and try and go into IUA.  If you still et the segment 
lenth error - try adding one record in expand records.

Mark Comins
mtcomins at aperion.com

>
> Thank you
> Jaime
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>


More information about the Filepro-list mailing list