Ubuntu – gunzip “No space left on device”

gzipUbuntu

I have a gzipped file that Ubuntu reports is 2,119,952,848 bytes in size. When I try to gunzip on a mount with 12GB free space, I get the error "No space left on device".

Here's where it gets really strange… the file is a compressed mysqldump so should be highly compressible. However, gzip reports a large negative compression ratio:

ubuntu:/mnt/tmp$ gzip -l my.sql.gz
         compressed        uncompressed  ratio uncompressed_name
         2119952848          1471106218 -44.1% my.sql

Any idea what might be going on with this?

Best Answer

May be the uncompressed counter is only 32 bit and so it reset to this wrong value