[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

2 Gig File Size Limit????

Posted on 2002-06-23
10
Medium Priority
?
1,345 Views
Last Modified: 2012-06-21
I seem to be running to a 2 gig file size limit on a new linux machine.  I'm trying to unzip a file that I created on a Windows machine (under NTFS).  Once upzipped, the file should be over 3 gigabytes.  However, unzip always fails at 2.1478 gigs.....and I've tried other methods.

Is there some inherent file size restriction? If so, how do I get rid of it?

I have a Dell-installed Redhat Linux 7.3 server.  

Thanks,
Brett
0
Comment
Question by:brgordon
10 Comments
 
LVL 1

Expert Comment

by:elniniokev
ID: 7102510
AFAIK there is a 2 gig file size limit for Linux on 32-bit machines.  There should be a patch available to increase the max file size to 4 gig from Redhat.  You will have to recompile your kernel to take advantage of the patch.
0
 

Author Comment

by:brgordon
ID: 7102589
Is there any way to get past the 4 gig limit?

Thanks,
Brett
0
 
LVL 17

Expert Comment

by:dorward
ID: 7103225
Patch your kernel to support the XFS file system, install the XFS tools, and create an XFS file system on one of your partitions, depending on the page size the maximum file size varies beteen sixteen and sixty four Terrabytes, which should be more then enough for most people.

http://oss.sgi.com/projects/xfs/

Bonus - its journeling :)
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 51

Expert Comment

by:ahoffmann
ID: 7104087
With kernel 2.4.x and glibc 2.2.x there is no longer a 2GB limit.
Unfortunatelly most distribution come with the old binaries compiled with a (g)libc with the 2GB limit, and so won't work proper on 2.4.x kernels.
You need programs compiled under 2.4.x, which also use the open64(), lseek() and so on ... , function.
AFAIK there is a LFS (large filesystem) fileutils package.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7104101
BTW, if you compile tar:

    ./configure --enable-largefile

0
 

Author Comment

by:brgordon
ID: 7104130
ahoffman & dorward,

Thanks for both of your responses.  As it turns out, the problem does not seem to be with the OS - it seems like 'unzip' has a problem with > 2gb files.  I was able to create a 10 gb file.  

Do certain compression utilities have problems with the 2 gb limit?  If so, how do I get around it?  Are there other utilities?

ahoffman - could the 'unzip' utility be one of the old binaries?

Thanks,
Brett
0
 

Author Comment

by:brgordon
ID: 7104137
ahoffman,

lastly, what does 'AFAIK' mean?

-brett
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 400 total points
ID: 7104947
AFAIK - as far as I know
(OOTFA - one of these f... acronyms :)

> could the 'unzip' utility be one of the old binaries?
yes.
You can check with:
  nm -gop `which unzip`|grep -i open
but unzip is most likely a stripped binary, so you probably get nothing

I suggest to use gzip instead, but mae shure that it is 2GB aware:
  nm -gop `gzip`|grep -i open
(if there is a reference to glib2.0, it is a old one)
0
 

Author Comment

by:brgordon
ID: 7105064
I was able to use 'zcat'.

Thanks,
Brett
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7105109
zcat is a link to gzip, usually ;-)
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month18 days, 2 hours left to enroll

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question