LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 09-05-2025, 07:05 PM   #1
exerceo
Member
 
Registered: Oct 2022
Posts: 155

Rep: Reputation: 31
Question 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?
 
Old 09-06-2025, 09:51 AM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE & OS/2 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 6,700
Blog Entries: 1

Rep: Reputation: 2320Reputation: 2320Reputation: 2320Reputation: 2320Reputation: 2320Reputation: 2320Reputation: 2320Reputation: 2320Reputation: 2320Reputation: 2320Reputation: 2320
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.
Old 09-18-2025, 01:50 AM   #3
xlfs-0.2
Member
 
Registered: Oct 2022
Posts: 512

Rep: Reputation: 69
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
 
Old 09-18-2025, 02:15 AM   #4
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,374

Rep: Reputation: 488Reputation: 488Reputation: 488Reputation: 488Reputation: 488
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.
 
Old 09-18-2025, 08:23 AM   #5
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 966
Blog Entries: 1

Rep: Reputation: 442Reputation: 442Reputation: 442Reputation: 442Reputation: 442
Quote:
Originally Posted by mrmazda View Post
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
 
Old 09-18-2025, 12:14 PM   #6
wpeckham
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

Rep: Reputation: 3127Reputation: 3127Reputation: 3127Reputation: 3127Reputation: 3127Reputation: 3127Reputation: 3127Reputation: 3127Reputation: 3127Reputation: 3127Reputation: 3127
Quote:
Originally Posted by jmccue View Post
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.
 
Old 09-18-2025, 04:46 PM   #7
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 11,471
Blog Entries: 4

Rep: Reputation: 4218Reputation: 4218Reputation: 4218Reputation: 4218Reputation: 4218Reputation: 4218Reputation: 4218Reputation: 4218Reputation: 4218Reputation: 4218Reputation: 4218
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.
 
  


Reply

Tags
file systems



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the math for proportionally plotting a chart? lucmove Programming 16 12-21-2022 05:57 AM
LXer: SCALE 8x Update: Jobs@SCALE (not Steve), T-shirts, SCALE Uni and UpSCALE talks LXer Syndicated Linux News 0 02-13-2010 01:10 PM
ext2 vs ext3 on usb-is ext2 better for health of usb? linus72 Linux - Newbie 13 06-10-2009 04:18 AM
EXT2 -fs warning (device sda1): ext2_fill_super:mounting ext3 filesystem as ext2 snakeo2 Linux - Newbie 6 11-19-2006 07:35 PM
why we can't change the block size in ext2 filesystem in source code nagesh20k Linux - General 3 08-23-2006 04:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration