Fix-OneDrive-Zip
Fix-OneDrive-Zip copied to clipboard
bad offset error
Hi. Thanks for this invaluable fix! Unfortunately, it is not working for me. I have three zip files created by OneDrive that won't unzip and when I run:
perl fix-onedrive-zip filename1.zip
I get the error:
Error: bad offset 0xBAC696C1 at end of 'filename1.zip'
Apologies if I missed an explanation of this in the ReadMe, but am not sure if there is a way to resolve this.
Hey David
the Fix-OneDrive-Zip script expects to see a well-formed zip file that has one very specific item of metadata incorrect. Your zip files appear to have a different metadata issue., so it would likely make things worse if my script ignored this problem.
You could try the Strategies for recovering data section in my documentation to see if that helps.
If you are still stuck, and you need assistance, I need to understand more about what is wrong with the zip files. Could you try running another script of mine that dumps the metadata from a zip file. Download a copy of zipdetails and run this
perl zipdetails -v 'filename1.zip
If you have filenames in the zip file you'd rather not share,, include the --redact option, like this
perl zipdetails -v --redact 'filename1.zip
If the script fails, run this instead
perl zipdetails -v --walk 'filename1.zip
Be warned though, if you have a lot of files in these zipfiles the script may take a very long time to run. If the file is enormous, I'm most interested in the output near the end of the file -- post at least everything from the line that has END CENTRAL HEADER to the end of the file.
I have a similar problem. Should I create a new Issue?
You can use this issue. See if you can get the information I requested for your zip file.