Uncompressing a ZIP file despite CRC errors

3

1

I have downloaded a multipart ZIP archive. It contains a video file.

Unfortunately, IZarc reports a CRC check fail when extracting the archive. Downloading the archive again is a long task, since I used a freemium digital locker and JDownloader, it will take me several hours to download all files again and I'm even unsure if the result will be better.

So I want to ask: provided that the archive is composed by .zip, .z01 ... .z09 parts, and provided that a few bytes damaged in a video stream don't necessarily make the video unreadable (it's an MP4),

How do I extract a multipart ZIP archive disabling CRC checks or at least preventing the zip utility from deleting a file that fails the check?

usr-local-ΕΨΗΕΛΩΝ

Posted 2013-02-04T13:27:42.730

Reputation: 3 733

Answers

3

Cygwin's zip has the command line switches -F and -FF. They can be used if some portions of the archive are missing.

Use zip -F broken_archive -F --out fixed_archive.zip to create a new ZIP file that contains the same files with hard-fixed CRC, then extract the usual way from the new archive

user570500

Posted 2013-02-04T13:27:42.730

Reputation: 606

Just one question: supposing Cygwin emulates GNU/Linux and "man unzip" reports no -F -FF flags, how am I supposed to use them in Windows? By the way, I have Linux too and I can open files from there. Any advice? – usr-local-ΕΨΗΕΛΩΝ – 2013-02-04T13:50:48.563

"man zip" mentions those flags. It also explains how to use them. Basically you use zip -F broken_archive.zip --out fixed_archive.zip – user570500 – 2013-02-04T13:55:42.857

It looked working just fine. I wasn't lucky: video crashes in the middle but this answer the question anyway – usr-local-ΕΨΗΕΛΩΝ – 2013-02-04T14:23:52.070

@djechelon: WinRAR has a Keep broken files extraction option as well. – Karan – 2013-02-04T18:22:58.133