Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-09-2003, 03:39 AM   #1
Registered: Jun 2002
Posts: 9

Rep: Reputation: 0
Unhappy Corrupt Zip/OpenOffice file - any way to fix?

Hi all,

I was transferring a bunch of files by ftp. I sent everything over to the remote server before realising it had all gone over in ASCII mode. I then tried to send all my openoffice documents over in BINARY mode... but instead of typing "mput *.sxw", I typed "mget *.sxw" thereby obliterating my originals with the newly borked copy.

I now have several OO.o docs (well, zip files effectively), that have transferred via ascii mode so won't open or unpack properly. Is there any way whatsoever that I can recover these documents, even if it's just the content.xml file from the zip? I've trawled google and all I find is a lot of pages telling me (helpfully) in big bold text "Alway transfer zip files in binary mode".

"zip -F" and "zip -FF" are no help. this is the output when I attempt to unzip:

error []: missing 42 bytes in zipfile
(attempting to process anyway)
error []: attempt to seek before beginning of zipfile
(please check that you have transferred or created the zipfile in the
appropriate BINARY mode and that you have compiled UnZip properly)
(attempting to re-compensate)
replace Pictures/100002000000001200000012EA5D6875.gif? [y]es, [n]o, [A]ll, [N]one, [r]ename: n
replace layout-cache? [y]es, [n]o, [A]ll, [N]one, [r]ename: n
file #3: bad zipfile offset (local header sig): 1164
(attempting to re-compensate)
file #3: bad zipfile offset (local header sig): 1164
file #4: bad zipfile offset (local header sig): 8150
file #5: bad zipfile offset (local header sig): 9656
file #6: bad zipfile offset (local header sig): 10879
file #7: bad zipfile offset (local header sig): 12055

I'm desperate to get these files back if someone can help.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
corrupt zip file - NEED HELP!!! FNC Linux - Software 2 10-29-2006 12:09 PM
How do I fix corrupt video settings? MALDATA Linux - General 3 03-14-2005 11:26 AM
create a self-extracting zip file with zip on solaris? samsolaris Solaris / OpenSolaris 3 10-15-2004 01:50 AM
can't 'userdel' OR How to fix a corrupt utmp? Plauderer Linux - General 3 09-03-2004 11:50 AM
Can't delete corrupt file linuxfond Linux - Newbie 2 02-01-2004 10:50 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration