Overcoming 2GB Filesystem Limitation

Posted on 2003-03-26
Medium Priority
Last Modified: 2013-12-15

I am using Redhat Linux 7.2 and all my filesystem partitions are ext3 filesystems.
Problem is I am not able to create a file whose size is > 2GB. How to overcome this
2GB filesize in Redhat Linux7.2.

With Advanced Thanks,

P.L. Kannan
Question by:Kannanpl
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 8216468
Please tell me how many partitions u are having and what is the size of each partition and...are all partitions having the linux ext3 filesystem?

Expert Comment

ID: 8216784

In fact ext3 has not 2GB file size limit (as far as i remember it can address up to 4GB+). But there's a several application that can't deal with files larger than 2GB.

Author Comment

ID: 8217911
Hi all,

         i)  Reply for vlat

I installed Oracle 8i database on this linux system and this error occurs when I am creating a datafile of size > 2 GB. But I am sure that Oracle can handle file size > 2 GB. Its not app. limitation.

            ii) Reply for cb068

Here is the partition info of my linux system
 All the filesystem are of type ext3 only.

filesystem           1M-blocks      Used Available Use% Mounted on
/dev/sda7                  342        96       228  30% /
/dev/sda1                   99         6        87   7% /boot
/dev/sda2                 4030        35      3791   1% /home
none                       251         0       250   0% /dev/shm
/dev/sda6                  641        19       589   4% /tmp
/dev/sda9                23866      2256     20397  10% /user
/dev/sdb1                34181     26258      6187  81% /user1
/dev/sda3                 3938      1263      2474  34% /usr
/dev/sda8                  243        26       204  12% /var

With thanks
P.L. Kannan
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

LVL 16

Accepted Solution

JammyPak earned 1000 total points
ID: 8217962
try this command in one of your partitions:

dd if=/dev/zero of=bigfile bs=100M count=25

this will make "bigfile" a 2.5GB file - if it works, then you know that your file system can support it, it's just the program that can't. I've found that I can create large (2GB+) files on ext3, but (for example) the tar program on one of my other servers can't read  the whole thing.

LVL 51

Expert Comment

ID: 8223707
there is no >2GB problem in kernel > 2.4.x with glibc > 2.2.2
Ususally just the applications are the culprit, 'cause they are not compiled proper. Some programs have special commandline options for that, for some (I know of tar, apache) you need to take care when compiling (for example using: #define _LARGEFILE64_SOURCE , or: CFLAGS="-D_FILE_OFFSET_BITS=64", etc.)

Author Comment

ID: 8229919
Hi JammyPak
I tried this cmd'dd if=/dev/zero of=bigfile bs=100M count=25', it is creating files > 2GB. So, I think program
might be the culprit. The application what I am using is
Oracle 8.1.7 , Release 3. So, I need to troubleshoot this error from this application only. Its not OS (linux) limitation.


With Regards,

P.L. Kannan

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.
Suggested Courses
Course of the Month10 days, 21 hours left to enroll

770 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