Unexpected end of file. Gzip compressed file

Solution 1:

A workaround for uncompressing a file when gzip fails with "unexpected end of file" is to use zcat (also usually provided by the gzip package of your distribution).

$ zcat file.raw.gz > file.raw

Solution 2:

Did you by any chance transfer the file from Win* to Unix via ftp in ascii mode? That may explain it. Is the file the same size on Win* and Unix?