Tuesday, April 27, 2021

Fix Microsoft OneDrive export large ZIP files that are corrupt

File downloaded where size is more then 4GB, when you try unzipping shows corrupt.

Looks like there is a bug in the zip library itself that is not fixed. Following is a workaround.


problem:

 zipfile corrupt.
  (please check that you have transferred or created the zipfile in the
  appropriate BINARY mode and that you have compiled UnZip properly)

Solution: (from Paul Marquess)


https://github.com/pmqs/Fix-OneDrive-Zip

fix-onedrive-zip onedrive-zip-test-zeros.zip

After running the script, You shall be able to unzip the file as normal without error.


Note:-

If you want to see detailed explanation then see following


https://www.bitsgalore.org/2020/03/11/does-microsoft-onedrive-export-large-ZIP-files-that-are-corrupt

fix : nvml error: driver/library version mismatch: unknown.

 reboot the main machine and then retry.