Re: gzip file ftp'ed as ascii...




James yazdi:
> Hi,
>
> Back in 2002 there was a post in the group:
>
> From: the3wiseme...@xxxxxxxxx (The 3 Wise Men US)
> Subject: Re: gunzip complains.. "invalid compressed data--crc error"
>
> >> The biggest problem is that bytes have been
> >> added (or removed) throughout the file, which is almost impossible to
> >> recover from.
>
> > It's not impossible to fix a gzip file that can't be fixed by
> > fixgz, but it may take a while if the file is large. I modified
> > gzip to do this.
>
> > Do you still have the original corrupted file (before you
> > tried to fix it with fixgz)? How large is the file?
> > What OS are you running, e.g. linux. If you want I could
> > send you a copy of my modified gzip program and you could
> > try it out.
>
> Is this or an equivalent gzip fixer available anywhere?
>
> I've a 750M file, a .tar.gz on linux.

Is it possible to send the first 100K of your file?

dd if=your.tar.gz of=first100k.out bs=100k count=1

And what are the last 8 bytes of your file in hex?

>
> fixgz or ftp'ing as ascii again don't help.
>
> There are 11097 CR/LF pairs in the file...
>
> Best Wishes,
> James

.