[Cialug] corrupt zip files
kristau
kristau at gmail.com
Sun Apr 8 21:52:32 CDT 2007
On 4/6/07, Dan Hockey <icepuck2k at mchsi.com> wrote:
> Has anyone been able to fix a corrupt zip file under (mandriva) linux?
> -dh
Every time I've run into this issue (not too many), the zip file has
been corrupt beyond repair. A common issue, depending on how you
obtained the original zip, is to accidentally download it from an FTP
site in ASCII mode instead of binary mode.
What have you tried so far? If you haven't already, try the -F option
to zip. From the man page for zip:
-F Fix the zip archive. This option can be used if some portions of
the archive are missing. It is not guaranteed to work, so you
MUST make a backup of the original archive first.
When doubled as in -FF the compressed sizes given inside the
damaged archive are not trusted and zip scans for special signa$B!>(B
tures to identify the limits between the archive members. The
single -F is more reliable if the archive is not too much dam$B!>(B
aged, for example if it has only been truncated, so try this
option first.
Neither option will recover archives that have been incorrectly
transferred in ascii mode instead of binary. After the repair,
the -t option of unzip may show that some files have a bad CRC.
Such files cannot be recovered; you can remove them from the
archive using the -d option of zip.
More information about the zip file might help others help you. Did
you create the zip file or download it from somewhere? By what method
did you create/download it?
later,
kristau
--
Tired programmer
Coding late into the night
The core dump follows
My GNUPG public key is available at http://www.kristau.net/public_key.asc
More information about the Cialug
mailing list