Operating System - HP-UX
1753779 Members
7473 Online
108799 Solutions
New Discussion юеВ

Re: unzip problem. Needs help

 
sreeram n
Frequent Advisor

unzip problem. Needs help

Hi Gurus.

I want to unzip a file on hpux server which is near about 10GB in size and zipped using winzip. What I am doing is I am zipping the contents on windows servers and a doing an ftp to unix. But when I am trying to unzip it using ( gunzip , unzip or uncompress) giving the error

root gunzip inetpub.zip
gunzip: inetpub.zip: unknown suffix -- ignored

#unzip inetpub.zip
unzip: cannot find or open inetpub.zip, inetpub.zip.zip or inetpub.zip.ZIP.


The interesting thing is that I am able to unzip a zip file (which is zipped using WinZip) of small size (say 10Mb) using unzip.

I just want to know any one of you come across similar problem.

What I am really looking is to transfer 10GB of data from windows UNIX.

Thanks in advance.

Sreeram
Sreeram N
5 REPLIES 5
Patrick Wallek
Honored Contributor

Re: unzip problem. Needs help

gunzip definitely won't work on a zip file.

The version of unzip you are using may have a file size limit.

PKZIP has a version of their software that runs on HP-UX. You can download an evaluation copy and see if it will help.

http://www.pkware.com/index.php?option=com_content&task=view&id=188&Itemid=94&Product=PKZIP&FullProduct=PKZIP%20Server%20for%20UNIX/Linuxoption=com_content&task=view&id=188&Itemid=94&Product=PKZIP&FullProduct=PKZIP%20Server%20for%20UNIX/Linux&CompanyType=enterprise

More info - http://www.pkware.com/index.php?option=com_content&task=view&id=40&Itemid=87
Paul Sperry
Honored Contributor

Re: unzip problem. Needs help

You should also be sure that you are unzipping on a filesystem that has largefiles enabled.
Steven Schweda
Honored Contributor

Re: unzip problem. Needs help

> unzip: cannot find or open [...]

This symptom is common on UNIX(-like) systems
which hide large files from programs which
were built using small-file run-time support.

> The interesting thing is [...]

That's only _one_ interesting thing, not
_the_ interesting thing. For example,
another interesting thing would have been the
output from "unzip -v", but I'd bet that it
would say "UnZip 5.*", not, say, "UnZip 6.00d
BETA of 17 Feb 08, [...]", and it also
wouldn't say any of this:

LARGE_FILE_SUPPORT (large files over 2 GB supported)
ZIP64_SUPPORT (archives using Zip64 for large files supported)

If you'd like an UnZip program which should
be able to cope with a large-file archive (or
an archive which contains large files), you
might try the pre-release ("BETA") UnZip
6.0d, a source kir for which should be
available from:

ftp://ftp.info-zip.org/pub/infozip/beta/
http://sourceforge.net/project/showfiles.php?group_id=118012

See also:

http://www.info-zip.org/

If you don't have a C compiler, then it might
also help if you revealed yet another
interesting thing, namely the system type,
OS, and OS version where all this happened.
Arturo Galbiati
Esteemed Contributor

Re: unzip problem. Needs help

Hi,

If you don't have access to an unzipping utility, you can use the jar command, included in the "bin" directory of the Java as long as it is reachable from your executable path.
You can look for it is this way:
find /opt -name jar 2>/dev/null

# unzip file
jar xvf file.zip

HTH,
Art
Steven Schweda
Honored Contributor

Re: unzip problem. Needs help

> [...] you can use the jar command [...]

And you've tried this on a large-file Zip
archive? Ah. I thought not.

dyi # uname -a
HP-UX dyi B.11.31 U ia64 4235313755 unlimited-user license

dyi # ls -l VMS732X8.ZIP
-rw-r--r-- 1 root sys 2166926629 Mar 13 18:47 VMS732X8.ZIP

dyi # unzip6e -t VMS732X8.ZIP
Archive: VMS732X8.ZIP
testing: vms732x8.img OK
No errors detected in compressed data of VMS732X8.ZIP.

dyi # /opt/java1.5/bin/jar -tf VMS732X8.ZIP
java.util.zip.ZipException: invalid entry size (expected 4294967295 but got 9050
19392 bytes)
at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:368)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:141)
at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:91)
at sun.tools.jar.Main.list(Main.java:778)
at sun.tools.jar.Main.run(Main.java:195)
at sun.tools.jar.Main.main(Main.java:938)


Otherwise that was a good plan.