Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-05-2025, 07:05 PM
|
#1
|
Member
Registered: Oct 2022
Posts: 155
Rep:
|
Why don't ext2/ext3 size limits scale proportionally to block size?
[ Log in to get rid of this advertisement]
(Yes, I know, ext2 and ext3 are superseded by ext4, but it seems this no one asked this before.)
On file systems like FAT32 and NTFS and UDF, the maximum volume size scales proportionally with block size or cluster size. This means twice the cluster size means twice the size limit. However, ext2 and ext3 are different:
Code:
Filesystem block size: 1kB 2kB 4kB 8kB
File size limit: 16GB 256GB 2048GB 2048GB
Filesystem size limit: 2047GB 8192GB 16384GB 32768GB
(from https://www.kernel.org/doc/Documenta...stems/ext2.txt )
Does anyone know why does the filesystem size limit with 2K blocks become four times larger than 1K blocks, but only doubles with 4K and 8K blocks?
Also, why is the size limit so low with 1K blocks? (16G) Is it arbitrarily done for performance reasons (like FAT32 does with its 2 MiB directory entry limit) or is there a technical reason?
And how come it doesn't increase with 4K to 8K blocks while becoming 16 times larger from 1K to 2K?
|
|
|
09-06-2025, 09:51 AM
|
#2
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE & OS/2 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 6,700
|
I can't answer your question, but I can suggest any value those filesystems have before then will expire on 19 January 2038, so creating any more of them would seem to have dubious value other than as educational exercise.
I have to think the size limits were colored by system RAM and bus sizes and speeds when EXT2 was written over three decades ago, with RAM measured in MB rather than GB, and 64MB was a lot rather than 128GB being a lot.
|
|
1 members found this post helpful.
|
09-18-2025, 01:50 AM
|
#3
|
Member
Registered: Oct 2022
Posts: 512
Rep:
|
you definitely didn't read the directions before formatting the partition
there ARE correct defaults and you ARE encourage to change them depending on what kind of server you are configuring
|
|
|
09-18-2025, 02:15 AM
|
#4
|
Senior Member
Registered: Apr 2010
Posts: 2,374
|
From the internet:
File size limits are tied to inode pointer architecture, not just block size.
Filesystem size limits are tied to total block count and block size.
The scaling is non-linear due to these architectural constraints.
|
|
|
09-18-2025, 08:23 AM
|
#5
|
Member
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 966
|
Quote:
Originally Posted by mrmazda
I can't answer your question, but I can suggest any value those filesystems have before then will expire on 19 January 2038
|
I thought ext3 was fine, but I wonder if I missed something with ext2/3, so I did a search:
Yes, looks like ext2 will be no more: linuxiac.com
And seems ext3 also: lwn.net.
ext3 is a bit of a surprise to me, but from the articles I can see why they will be deprecated. Reading between the lines, to make ext3 work after 2038, you would need to re-format your file system. So if you have to do that, might as well go to ext4 or another fs.
I left ext2/3 many years ago, but I have a couple ext2 diskettes hanging around. Time to see what is on them, if possible 
|
|
|
09-18-2025, 12:14 PM
|
#6
|
LQ Guru
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 6,526
|
Quote:
Originally Posted by jmccue
I thought ext3 was fine, but I wonder if I missed something with ext2/3, so I did a search:
Yes, looks like ext2 will be no more: linuxiac.com
And seems ext3 also: lwn.net.
ext3 is a bit of a surprise to me, but from the articles I can see why they will be deprecated. Reading between the lines, to make ext3 work after 2038, you would need to re-format your file system. So if you have to do that, might as well go to ext4 or another fs.
I left ext2/3 many years ago, but I have a couple ext2 diskettes hanging around. Time to see what is on them, if possible 
|
As long as EXT2 and EXT3 are supported by the EXT4 drivers we will be able to create and use those file systems. There will be issues, and booting or hosting any system critical files there will become an un-recommended and unsupported configuration because the date/time information on disk will be "odd". (Not exactly meaningless, but not very useful.)
The only distributions that I am aware of that still make use of EXT2 by default do so for specific purposes and using a kernel in the 3.X or 4.X version family. Functional EXT3 is more likely to be missed, but EXT4 can be tuned to serve the usage case to replace EXT3 and perform well.
In summary: 1. they are not really going to totally go away as long as EXT4 does not, but will become a lot less useful. 2. I doubt anyone will really notice after 2032. We have larger issues to address.
Last edited by wpeckham; 09-18-2025 at 12:15 PM.
|
|
|
09-18-2025, 04:46 PM
|
#7
|
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 11,471
|
I would "as a matter of course" upgrade these disks to the latest version of the latest file system. Also, if they are "spinning metal," be aware of the age of the device itself.
|
|
|
All times are GMT -5. The time now is 02:49 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|