Monday, September 21, 2009

How to recover a corrupted gzip file.

Sometimes we are faced with a corrupted ".gz" file, with important information and we must recover it at any cost. Fortunately there is a tool able to recover these files in an efficient manner, the gzip Recovery Toolkit.

The installation process is very easy:

$ wget
$ tar -xzvf gzrt-0.5.tar.gz
$ cd gzrt-0.5
$ make

And that's it.

To start using it just do:

$ ./gzrecover file_to_recover.gz

then it will create a new filename called "file_to_recover.recovered"

You must also read the "Disclaimer and Warnings"

«This program is provided AS IS with absolutely NO WARRANTY. It is not guaranteed to recover anything from your file, nor is what it does recover guaranteed to be good data. The bigger your file, the more likely that something will be extracted from it. Also keep in mind that this program gets faked out and is likely to "recover" some bad data. Everything should be manually verified. »


Nuno Leitao said...

Very useful!
thanks for sharing!

Anonymous said...

your gz recovery tip didn't work for me :(

Pradeep Thangavel said...

This worked for me perfectly dude.....
Thank you :)