Page 1 of 1

gz file recovery

Posted: 05 Jun 2018, 10:12
by Corner514
When I recover gz files from my disk, I found the length of the recovered files is not correct,the end of the file is filled with a lot of zero.How could
correct the file length?
Thanks a log.

Re: gz file recovery

Posted: 06 Jun 2018, 06:37
by cgrenier
You can try to recompress the files, something like

Code: Select all

zcat file.gz|gzip - > new_file.gz
But usually junk data at the end of the gz file isn't a real problem.