Question

When i tried to unzip using the Mac default Archive zip utility and the error message:
Error 1 - Operation not permitted.

Then I tried using 7zx and got the error message:
Cannot open the files as archive file

How can I retrieve image files from the damaged zip archive file?

Are there any tools to retrieve at least some of my files from the damaged zip file?

Was it helpful?

Solution

are you sure that the file is an actual Zip file as you will get this message on a file that has been renamed as .zip when it isnt in fact a Zip file.

The only real way to tell is to use a HEX editor such as 0xED to check the first few bytes are the characters PK.

OTHER TIPS

If the issue is actually a damaged zip file, the command line zip tool can try to repair it. For that you'd use the -F or -FF options, like that:

zip -F damaged-copy.zip --out repaired.zip
zip -FF damaged-copy.zip --out repaired.zip

It's always a good practice to do that on a copy of the damaged file, so you're sure you don't damage it any further. To see what the -F and -FF options do, look at the man page: man zip.

A couple of possible solutions for you:

First, try unarchiving the file with Stuffit Expander. You probably already have it on your Mac and a simple spotlight search should reveal the location. If you don't, you can download it for free from the Stuffit Website.

If that doesn't work for you, try extracting it via Terminal. While it may seem a bit scary, some of the basic commands are quite simple, and incredibly useful. First, open the Terminal app, located in the Utilities folder inside your Applications Folder. Now, type the command unzip followed by a space, then drag the offending zip file over and drop it onto the terminal window, this will insert the path for the file. Press Enter and the archive should unzip to your home folder.

If neither of those options work for you, there are several programs out there that claim to be "Zip Archive repair tools". A quick google search yields several results. Your milage may vary, both in terms of cost and effectiveness though. I have no real experience with any of these utilities so can't speak to their effectiveness.

Licensed under: CC-BY-SA with attribution
Not affiliated with apple.stackexchange
scroll top