Solved

2 Gig File Size Limit????

Posted on 2002-06-23
10
1,327 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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 100 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Fine Tune your automatic Updates for Ubuntu / Debian
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

820 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