ext2 filesystem superblock
- From: Sevag Krikorian <kahlinor@xxxxxxxxxxxxx>
- Date: Fri, 29 Apr 2005 20:14:08 -0400
Hi all,
I'm working on understanding filesystems and thought I'd start with the ext2 filesystem (since I have an image of that lying around).
I wrote a little test program to scan the superblock of a 10mb linux hd image.
The documentation for ext2 filesystem state that the 'blocks' and 'inodes' are equally divided among the 'groups'
Here is the data I get from the image file:
Loading 'linux.img' Total inodes 2560 Total blocks 10240 Reserved blocks 0 Free blocks 872 Block size 1024 Fragment size 1024 Blocks/group 8192 Fragments/group 8192 Inodes/group 1280 Last time mounted 3FB1_0F81 Last time written 4209_3E84 Last time checked 3FB1_0F43 Time allowed for checks 00ED_4E00 Times mounted 99 Max mounts till check 37 Filesystem state 0000 Error state None Minor revision 0000 Revision Level V2 Dynamic Host OS Linux Volume ID E978_03C2_D56E_0D9F_3246_0834_1D38_73AC Volume Name Directory last mounted
All of the information seems to make sence except for the blocks/group
I get 8192 blocks per group but only 10240 total blocks. The documentation doesn't state it, is it normal for the last group on the partition to have a partial share of the blocks? Or does this mean that
there is only one group and the last 2048 blocks of the disk are not used? Or maybe something altoghter different...
-- [kain] http://www.geocities.com/kahlinor .
- Follow-Ups:
- Re: ext2 filesystem superblock
- From: T.M. Sommers
- Re: ext2 filesystem superblock
- Prev by Date: Re: RosAsm injects extra bytes into your data
- Next by Date: Re: ext2 filesystem superblock
- Previous by thread: Several, bring coffie
- Next by thread: Re: ext2 filesystem superblock
- Index(es):