Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unzip version with large file support

Status
Not open for further replies.

philipose

Programmer
Dec 24, 2003
137
0
0
US
Hi,
I is regarding unzip on an AIX 5.3 server.

z902909@caesar:/mount1/=> unzip WCCoding200612v51Complete4.zip
Archive: WCCoding200612v51Complete4.zip
[WCCoding200612v51Complete4.zip] WCCoding200612v51Complete4.txt password:
inflating: WCCoding200612v51Complete4.txt
WCCoding200612v51Complete4.txt: write error (disk full?). Continue? (y/n/^C)

There is enough space in the disc and the above error happens when the unzipped file is approx 2GB (2147483647 bytes). I was wondering if it was because the current version of unzip did not have large file support. If so, what version should I upgrade to ?

Given below is the current version on unzip.

z902909@caesar:/s01/staging=> unzip -v
UnZip 5.50 of 17 February 2002, by Info-ZIP. Maintained by C. Spieler. Send
bug reports to the authors at Zip-Bugs@lists.wku.edu; see README for details.

Latest sources and executables are at ftp://ftp.info-zip.org/pub/infozip/ ;
see ftp://ftp.info-zip.org/pub/infozip/UnZip.html for other sites.

Compiled with cc for Unix (IBM AIX) on Feb 20 2003.

Any help or suggestion will be helpful
philipose
 
Is your file system jfs or jfs2?


Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
Oops Mike,
Thank you very much for responding ? How can i find out whether the server is using jfs or jfs2 ?
philipose
 
Code:
# as root

lsfs -q /mount1

You'll want to see either jfs2 or "bf: true". If you see neither, your immediate problem is that the filesystem can't handle > 2GB files.

- Rod


IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

A Simple Code for Posting on the Web
 

I think we are using jfs2. See below

lsfs -q /s04
Name Nodename Mount Pt VFS Size Options Auto Accounting
/dev/lvs04 -- /s04 jfs2 1136656384 rw yes no

 
Ok, do the same for the filesystem you are unzipping in?
From your OP, and the shell prompt therein, you seem to be in directory /mount1 when you get the 'write error (disk full?)' error.


HTH,

p5wizard
 
p5wizard,
I think I confused you. The unzip operation is being done on the mount point /s04.

z902909@caesar:/s04=> lsfs -q /s04
Name Nodename Mount Pt VFS Size Options Auto Accounting
/dev/lvs04 -- /s04 jfs2 1136656384 rw yes no

z902909@caesar:/s04=> ulimit -f
unlimited
 
Well... from your OP:
philipose said:
z902909@caesar:[red]/mount1/[/red]=> unzip WCCoding200612v51Complete4.zip
Archive: WCCoding200612v51Complete4.zip
[WCCoding200612v51Complete4.zip] WCCoding200612v51Complete4.txt password:
inflating: WCCoding200612v51Complete4.txt
WCCoding200612v51Complete4.txt: write error (disk full?). Continue? (y/n/^C)



HTH,

p5wizard
 
I ran across this issue about 2 weeks ago as well. This is an issue with the UNZIP utility not being able to handle files larger than 2 GB (2147483647 bytes). I believe that the next version of these utilities will handle these large file.

I do not have access to a compiler at this time, but I think that there may be a compiler flag to allow files larger that 2 GB.
 
p5wizard,
Sorry again for the confusion. The file I was trying to extract was on the mount point /s04. I edited it while pasting to avoid identifying it.

I guess unzip has a large file limitation and I can stretch it only to a particular point. How about using pkzip or unrar ? Will they be able to handle .zip files ?
Thanks
philipose
 
Something that may or may not work is unzipping through a named pipe.

Code:
mknod crack p
cat crack >> unzippedfilename &
unzip << zippedfilename >> crack

With that method, unzip shouldn't have to open a file pointer for writing, and just keep pumping its output to stdout.

What might not work about it is if there is zipfile metadata embedded in the file, which is fairly likely.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top