Solved

Need a Terminal Expert to help with unzipping a damaged file.

Posted on 2008-06-09
10
420 Views
Last Modified: 2010-04-25
I have a large zipped file that is damaged so wont unzip.  I used terminal and managed to list everything that was in my zipped folder with this:

zip -F /Users/smoore808/Desktop/music.zip    

It made a big huge long list of everything in there, but I dont know how to get it out.  I tried to enter this:

unzip /Users/smoore808/Desktop/music.zip *.mp3*

But this error keeps coming up everytime I try to get something out:

Archive:  /Users/smoore808/Desktop/music.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /Users/smoore808/Desktop/music.zip or
        /Users/smoore808/Desktop/music.zip.zip, and cannot find /Users/smoore808/Desktop/music.zip.ZIP, period.

Could someone tell me what this error means, or even better, how to get rid of it?  Thank you in advance :)
0
Comment
Question by:smoore808
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 2
10 Comments
 

Author Comment

by:smoore808
ID: 21748456
I just need to know how to get the undamaged files out of the zipped folder using terminal =)
0
 
LVL 62

Expert Comment

by:☠ MASQ ☠
ID: 21748722
Only work from a copy so things don't get any worse.

Try a repair using:
zip -F /Users/smoore808/Desktop/music.zip

Try listing the contents:
unzip -l /Users/smoore808/Desktop/music.zip

If you can see the contents try extracting any file that matches your citreria, eg:

unzip /Users/smoore808/Desktop/music.zip *.mp3*

If this is coming up as a spanned disk and you know it is a single file I would not be that hopeful though :(

0
 

Author Comment

by:smoore808
ID: 21748749
Ok when I put in:
zip -F /Users/smoore808/Desktop/music.zip

Everything in the zipped file was shown (it took a while to list them all).

When I put:
unzip -l /Users/smoore808/Desktop/music.zip

This showed up (I think this is the big problem):
Archive:  /Users/smoore808/Desktop/music.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /Users/smoore808/Desktop/music.zip or
        /Users/smoore808/Desktop/music.zip.zip, and cannot find /Users/smoore808/Desktop/music.zip.ZIP, period.

That also came up when I tried to unzip mp3 files =(

0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 62

Expert Comment

by:☠ MASQ ☠
ID: 21748790
hmm ... maybe I should have started with
unzip -v /Users/smoore808/Desktop/music.zip
If you get "unexpected end of file" then I guess you are out of luck :(

0
 

Author Comment

by:smoore808
ID: 21748806
Ok I put that in and got this message again =( :

Archive:  /Users/smoore808/Desktop/music.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /Users/smoore808/Desktop/music.zip or
        /Users/smoore808/Desktop/music.zip.zip, and cannot find /Users/smoore808/Desktop/music.zip.ZIP, period.
0
 
LVL 40

Expert Comment

by:Eoin OSullivan
ID: 21748817
Sounds like you've the last file in a multi-part Zip archive .. there should be other files like
music01.zip, music02.zip etc.

Without all the zip files in the archive it is pretty much unrecoverable.

When you list the contents .. and get 100 files (for example) and they are all MP3 then you are looking at 4+Mb each.  As MP3s do not compress very much the overall ZIP would be in the 360-400Mb range or larger.  IF the ZIP was only 100Mb I'd be looking for 3 other parts to the Zip file.   As an example.
0
 
LVL 62

Accepted Solution

by:
☠ MASQ ☠ earned 300 total points
ID: 21748876
Sorry, I think the damage to the file is sufficient to allow you only to see the list file of the contents - when you generate a list of the files contained in the zip you are seeing data from this list rather than the presence of each separate file.  That is about the limit of what you are able to do with the file.  I think the files themselves are unrecoverable :(
0
 

Author Comment

by:smoore808
ID: 21748889
Oh dang, oh well.  Hmm if I have the music on my iphone, is there a way to get it back on my comp?
0
 
LVL 40

Assisted Solution

by:Eoin OSullivan
Eoin OSullivan earned 200 total points
ID: 21748997
Look for a program called TouchCopy - http://www.wideanglesoftware.com/touchcopy/

0
 

Author Comment

by:smoore808
ID: 21749070
Oh thank you =)  I guess I'll buy it.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

One of the biggest challenges facing freelancers is balancing multiple projects and deadlines. Organizational skills and time management are key to keeping up with projects and staying on track. Luckily, we’ve curated seven tools to help you focus o…
With the shift in today’s hiring climate (http://blog.experts-exchange.com/ee-blog/5-tips-on-succeeding-in-the-new-gig-economy/?cid=Blog_031816), many companies are choosing to hire freelancers to get projects completed efficiently and inexpensively…
The Bounty Board allows you to request an article or video on any technical topic, or fulfill a bounty request to earn points. Watch this video to learn how to use the Bounty Board to get the content you want, earn points, and browse submitted bount…
Notifications on Experts Exchange help you keep track of your activity and updates in one place. Watch this video to learn how to use them on the site to quickly access the content that matters to you.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question