LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 06-28-2005, 05:28 PM   #1
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 212

Rep: Reputation: 30
zip/unzip - file too big


Evening Folks

I have a .zip file that's about 3G in size and corrupted - the msg I get is "missing end signature"

However, when I try to repair it with zip's -F option, I get a msg that says "File size limit exceeded". I've since discovered that there is a hard limit of 2G on file size.

Is there any way to get around this limitation? I'd like to repair my file and then unzip it.

Thanks
Joe
 
Old 06-28-2005, 05:39 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
I doubt it's actually corrupted Most likely, it just doesn't find the "end signature" by the 2G mark, and gives up.

Unfortunately, despite a careful reading of zip, unzip, gzip, and funzip man pages, I cannot find a solution to this. Perhaps some of the alternative zip programs on freshmeat.net might be of some help.
 
Old 06-28-2005, 06:03 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,168

Rep: Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784
What is the filesystem type where you are trying to unzip this file?
What kernel are you running i.e. 2.4.x or 2.6.x?

FAT32 has a 2GB file size limitation. With linux filesystems it depends if large file support is included in the kernel. Shouldn't be a problem with 2.6. kernels.
 
Old 06-28-2005, 06:12 PM   #4
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
My guess is the zip/unzip programs use 32bit integers interally for their representations of file offsets. Just a guess though.
 
Old 06-28-2005, 06:16 PM   #5
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 212

Original Poster
Rep: Reputation: 30
I'm trying to unzip it in a Reiser3 file system.

The kernel is 2.6.11-kanotix-11

Whe I run unzip, I get this msg: "unzip: cannot find or open [filename]"

Thanks for the quick answers.

Joe
 
Old 06-28-2005, 06:20 PM   #6
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Remove zip and unzip. Download the source for zip and unzip. Then add -D_FILE_OFFSET_BITS=64 to the CFLAGS and CXXFLAGS to the ./configure command. Also do not forget to include largefile option if there is one.

FAT32 has a file size limit of 4 GB, but for safety sake keep files under a gigabyte.
 
Old 06-28-2005, 06:33 PM   #7
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 212

Original Poster
Rep: Reputation: 30
Thanks Electro, I'll give it a shot (Tomorrow .

Cheers
Joe
 
Old 06-29-2005, 08:53 AM   #8
Sm1ler
Member
 
Registered: Apr 2004
Location: UK
Distribution: Fedora Core (all), Knoppix, RHEL, Centos, Debian
Posts: 100

Rep: Reputation: 16
Not really sure if this will help, but cross platform from Win to Lin I have always used an app called 7zip it has so many options as a quick fix it might just meet your requirements.

Best Wishes
Sm1ler
 
Old 07-01-2005, 05:28 PM   #9
SoRDiD
LQ Newbie
 
Registered: Jul 2005
Location: Germany / Krefeld
Distribution: Gentoo
Posts: 1

Rep: Reputation: 0
Thumbs up

i had the same problem with a 10 gig .zip file, and the solution using 7zip worked!!

recompiling unzip from info-zip with -D_FILE_OFFSET_BITS=64 and -D_LARGEFILE_SOURCE didnt work (2.6.11 gentoo kernel)
 
Old 06-18-2007, 09:40 AM   #10
zlatan24
LQ Newbie
 
Registered: Apr 2007
Posts: 3

Rep: Reputation: 0
I know program removed able recover zip files(archives), restore ZIP files from damaged media (floppy disks, CDs, DVDs, Zip drives, etc.), fix the Cannot open file: it does not appear to be a valid archive in ZIP archive error.

Last edited by Mara; 06-19-2007 at 04:35 PM. Reason: advertising, see below
 
Old 06-18-2007, 09:49 AM   #11
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by zlatan24
I know program (link removed) able recover zip files(archives), restore ZIP files from damaged media (floppy disks, CDs, DVDs, Zip drives, etc.), fix the Cannot open file: it does not appear to be a valid archive in ZIP archive error.
zlatan24, do you realise you have resurrected a 2 year old, resolved thread? And there's a whiff of some spam here too, given your post history. Reported to a mod.

Last edited by Mara; 06-19-2007 at 04:38 PM.
 
Old 06-19-2007, 04:37 PM   #12
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
Dear zlatan24,
I have edited your post for two reasons:
1. It's advertising.
2. The thread is very old.
3. The program you're advertising is not running Linux, so it does not fit the forum.

It's OK if you post links to tools you're associated with, but if you do not cross the advertisement border and only when it is the right tool to use in that special case.

If you have questions about this policy, contact one of the moderators or the site admin.
 
Old 01-25-2008, 11:50 AM   #13
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
W/o going to the feedback forum, does anybody know/have a guess why this old thread appeared in the

Subject: LinuxQuestions.org Zero Reply Threads
Date: Tue, 22 Jan 2008

e-mail?
 
Old 03-14-2014, 12:42 PM   #14
pauljackson
LQ Newbie
 
Registered: Mar 2014
Posts: 1

Rep: Reputation: Disabled
Java's jar utility supports the zip format and larger files:

jar xf filename.zip
 
  


Reply


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
unzip all .zip files in a directory tes15 Linux - Newbie 14 08-29-2014 12:46 PM
zip & unzip bong.mau Linux - Software 13 09-09-2005 08:18 PM
unzip .zip >4gb dkw Linux - General 1 07-07-2005 08:27 PM
Zip and Unzip concoran Linux - General 4 08-02-2002 08:12 PM
how do i unzip a .zip? lax2sman Linux - General 2 02-11-2002 06:17 PM


All times are GMT -5. The time now is 11:31 PM.

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