Operating System - Linux
1831043 Members
2427 Online
110019 Solutions
New Discussion

Does ext3 disk has a 2 GB file size limit?

 
SOLVED
Go to solution
Geert Van Pamel
Regular Advisor

Does ext3 disk has a 2 GB file size limit?

I have read somewhere that Linux ext3 disks have a file size limit of 2 GB. Could it be dependend on the distribution /version?

For MySQL database files this could become a blocking factor for (very) big tables.

Is there any solution?
2 REPLIES 2
Stuart Browne
Honored Contributor

Re: Does ext3 disk has a 2 GB file size limit?

No, this is most definately *NOT* the case.

MySQL (in pre v4) had a table-size limit of 2GB however.
One long-haired git at your service...
Patrick Terlisten
Honored Contributor
Solution

Re: Does ext3 disk has a 2 GB file size limit?

Hello Geert,

the maximum file size for ext3 depends on the used block-size for the filesystem.

1 kb 16 GB
2 kb 256 GB
4 kb 2048 GB
8 kb 2048 GB

Use tune2fs -l /dev/$DISKDEVICE to show up the used blocksize. On the other hand ulimit can limit the max filesize that can be created. The command 'ulimit -f' should be output 'unlimited'.

Regards,
Patrick
Best regards,
Patrick