LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-13-2017, 01:49 AM   #1
mcmxciv
LQ Newbie
 
Registered: Nov 2017
Posts: 17

Rep: Reputation: Disabled
In ext2 file system,how to calculate the "Inode blocks per group" ?


For studying,i assigned a size of 100M and formatted as ext2.Using dumpe2fs,the output says:

[root@ ext2fs]# dumpe2fs /dev/sda2
dumpe2fs 1.42.9 (28-Dec-2013)
Filesystem volume name: <none>
Last mounted on: /home
Filesystem UUID: dd4a8792-84b0-48a3-8356-682229114afd
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: ext_attr resize_inode dir_index filetype sparse_super
Filesystem flags: signed_directory_hash
Default mount options: user_xattr acl
Filesystem state: not clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 25688
Block count: 102400
Reserved block count: 5120
Free blocks: 97577
Free inodes: 25662
First block: 1
Block size: 1024
Fragment size: 1024
Reserved GDT blocks: 256
Blocks per group: 8192
Fragments per group: 8192
Inodes per group: 1976
Inode blocks per group: 247
Filesystem created: Tue Dec 12 10:08:16 2017
Last mount time: Wed Dec 13 09:23:29 2017
Last write time: Wed Dec 13 09:23:29 2017
Mount count: 4
Maximum mount count: -1
Last checked: Tue Dec 12 10:08:16 2017
Check interval: 0 (<none>)
Lifetime writes: 58 kB
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 128
Default directory hash: half_md4
Directory Hash Seed: a24eb501-5513-40fe-afeb-04b93ae8d11f

I wonder how is "Inode Blocks per group",which is 247 in this case,calculated?
 
Old 12-13-2017, 07:15 AM   #2
giis
Member
 
Registered: Nov 2013
Location: Third Rock from Moon
Distribution: RPM/DEB based and LFS
Posts: 73

Rep: Reputation: Disabled
I think its calculated based on these 3 fields:

Code:
(Inodes per group * Inode size) / Block size = Inode blocks per group
Quote:
Originally Posted by mcmxciv View Post
Block size: 1024
Inodes per group: 1976
Inode size: 128
1976 * 128 / 1024 = 247

Quote:
Inode blocks per group: 247
You may be interested in this doc: http://www.giis.co.in/Kick_start.html
also check http://www.giis.co.in/ext2.pdf
 
Old 12-13-2017, 07:24 AM   #3
mcmxciv
LQ Newbie
 
Registered: Nov 2017
Posts: 17

Original Poster
Rep: Reputation: Disabled
I know this calculating process,1976*128/1024 = 247,then how does Inodes per group(1976) calculate?
 
  


Reply



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
[SOLVED] How to add the "dialout" group in my system without the command "groupadd"? floppy_stuttgart Linux - Networking 3 09-19-2013 02:55 PM
How to calculate file age ? "File xy is 2 days 3 hours old" fluppi Linux - Software 5 06-03-2013 10:27 AM
How to increase a file-system capacity from "/home" to "/" danndp Linux - Newbie 3 04-18-2011 08:58 AM
Can't Fix. massive ext3 file system corruption "directory entry across blocks" legaultp1 Linux - Kernel 3 10-07-2009 11:56 PM
"fc5" mount does not recognize "smbfs" file system? bdplays Linux - Networking 6 06-28-2006 11:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:53 AM.

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