Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
    
Can you give the gzip version? "gzip --version" and your architecture (32 or 64 bits) ? –  Weboide Jun 21 '10 at 21:50
add comment

5 Answers 5

up vote 3 down vote accepted

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

share|improve this answer
add comment

Try to verify size of uncompressed data:

gzip -dc my.sql.gz | wc

If it will be smaller than your free disk size - check limits/quota.

share|improve this answer
add comment

Could be:

  • The file system /mnt/tmp only supports file sizes up to 2GB.
  • /mnt/tmp really is running out of space (gunzip -c FILE | wc -c will show you the uncompressed size)
share|improve this answer
add comment

could be inodes! df -i

share|improve this answer
add comment
  1. What about the root "reserved" area on the disk? Depending on how this is accounted for in df, some of your empty space might not be available to you and reserved to the root user.

  2. Another issue is that the compressed file is not released and deleted until the uncompression is complete. Your partition might not be able to hold both of these with the amount of space you have available.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.