But before performing any fixes to the file system, please be aware that it could result in serious data loss. If you need an open-source backup solution that could work with cloud storage services, be sure to check out rclone. You can get an easy head start without learning too much about the tool with our guide on rclone common commands. If you see a "device is corrupted" message, back up your files immediately while you still can, then format the whole drive and check for errors before storing any important data on it.
First, ensure the filesystem is unmounted. To run a filesystem check, use the command e2fsck. If the above command returns with errors about a "bad superblock" then run the following command:. If this does not solve your problem, then reboot the system. Upon booting, a filesystem check will probably be forced. If you boot to a shell, run e2fsck on the partition that is reporting the errors.
If you're still unable to open it, comment below with the warning s received from the command. If you've reached this point though, it's likely that the file is irreparably damaged.
There are a number of things that could have happened here. The easiest way of resolving this is to re-download or re-copy the zip file from it's original source and re-try opening it up again.
Without having more information, here's a list of possible things that could be happening:. All of these problems are non-intuitive and the fixes for them are equally non-intuitive and technical. I think your best bet is trying to re-acquire the file again. Try opening the file with an app other than Archive Utility, which is the unarchiver built in to macOS. I used the app Keka. It too encountered an error:. However it also was able to unzip a directory that contained 6 complete image files, along with a 7th failed "Zero bytes" image that failed extraction.
Using this app, or some other 3rd party unzipping app, you may be able to recover at least some of the files from the corrupted archive. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Learn more. Error opening a zip file: No such file or directory? Ask Question. Asked 7 years, 5 months ago. Active 1 year, 6 months ago. Active Oldest Votes. Improve this answer. Arun Arun 1, 8 8 silver badges 21 21 bronze badges. Thank you. I did wonder, because the error came back 3 times if it might have something to do with the spaces, but thought I would check in with the community — NoVice.
The Overflow Blog. Who owns this outage? Building intelligent escalation chains for modern SRE. Podcast Who is building clouds for the independent developer?
Featured on Meta. You'll still get the errors for the empty directories though. Same sort of reason: if the file doesn't find a match for the pattern, it passes the pattern itself as an argument to the command. You're not checking for failure of that command. In general you should check the exit status of commands, but that's especially true of cd , because the rest of the commands assume you're in that new directory, and that could have dramatic consequences when you're not.
Also, mv accepts relative paths so you don't need to build up the absolute path. Here, you do want the splitting, but only on newline characters, and you don't want the globbing, so you'd need to disable it:.
Here, you want neither, so you need to quote those variables. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?
0コメント