Author Topic: ext4 block size  (Read 8068 times)

Online Yankee

  • Hero Member
  • *****
  • Posts: 1490
  • In theory, theory=practice, in practice ???
ext4 block size
« on: October 19, 2010, 01:57:49 PM »

Hello,

Looked around in system info (Xfce) but still cannot determine the block size for the
default ext4 installation I made.  That is supposed to determine the max file size ext4
can handle. 

What is the default block size we use ?


thanks for your response,

patrick013

ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE

uncleV

  • Guest
Re: ext4 block size
« Reply #1 on: October 19, 2010, 03:32:07 PM »
Wikipedis says
Ext4
Quote
Max file size  -  16 TiB (for 4k block filesystem)

 :-\

Online Yankee

  • Hero Member
  • *****
  • Posts: 1490
  • In theory, theory=practice, in practice ???
Re: ext4 block size
« Reply #2 on: October 19, 2010, 04:43:33 PM »
Wikipedis says
Ext4
Quote
Max file size  -  16 TiB (for 4k block filesystem)

 :-\



So somewhere between 16gb and 16tb there's a blocksize factor.   I wonder where that chart is,
and our installation default blocksize.   Are we at 4k and 16tb or 1k and 16gb ?    Still looking.


regards,

patrick013

ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6254
Re: ext4 block size
« Reply #3 on: October 19, 2010, 05:07:02 PM »

type this command as root on the terminal and it should give you what you want to know

dumpe2fs /dev/ABCD | grep -i "block size"

where "ABCD" is the device node address like sda5, sdb6, hda4 etc

i am getting 4096(4KiB) here.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Online Yankee

  • Hero Member
  • *****
  • Posts: 1490
  • In theory, theory=practice, in practice ???
Re: ext4 block size
« Reply #4 on: October 19, 2010, 05:37:25 PM »

Thanks a bunch,

Then we must be at 4k and 16tb default, which is relaxing as I might have 500gb partition size possibly, and who knows what backup file size, might be or more in the future.
Wonder why I ever tried xfs then.

patrick013

ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE