Zip files corrupt over 4 gigabytes - No warnings or errors - Did I lose my data? Zip files corrupt over 4 gigabytes - No warnings or errors - Did I lose my data? linux linux

Zip files corrupt over 4 gigabytes - No warnings or errors - Did I lose my data?


Unzip below 6 seemingly fails, use

jar -xf <zipfile>

if you have java installed, or yet another unzip before you write the file off.

See: https://serverfault.com/questions/235139/how-to-unzip-files-bigger-than-4gb


Try 7z x

I had the same issue with unzip %x on Linux for a .zip file larger than 4GB, compounded with a only DEFLATED entries can have EXT descriptor error.

The command 7z x resolved all my issues though.

Be careful though, the command 7z x will extract all files with a path rooted in the current directory. The option -o allows to specify an output directory.


I had a similar problem backing up a 12GB directory before performing a hard disk format. Funnily enough I used the same command as you.

I read around and found suggestions to run:

zip -F    

and

zip -FF     

to try to fix the file.

Unfortunately these did not work and I still received errors.

After looking around some more, I found the ditto command and it worked perfectly against my original (untouched) zip file:

ditto -x -k original-file.zip dst-directory   -x to extract an archive-k Specifies it to be a PKZip archive instead of the default CPIO

After using this command, I successfully extracted all of the files.