Re: on bytes-per-inode Q
In foo.debian-user, you wrote:
> Hello List,
> May I know at how many bytes-per-inode is the default debian (slink) install at ?
> Or, in my already working debian system, how do i know how many bytes/inode is it presently set at ?
> I am about to add a new hd as my /home and i want to make sure I make2fs them in uniform.
I would gamble that your bytes-per-inode is 4096, as this is the default.
To verify, first find the number of inodes on your system (as root):
[prompt]# dumpe2fs /dev/hda1 |egrep '^Inode Count:'
Then, find the number of blocks:
[prompt]# dumpe2fs /dev/hda1 |egrep '^Block Count:'
Then, find the size of each block:
[prompt]# dumpe2fs /dev/hda1 |egrep '^Block Size:'
Then, do some math:
<Bytes per Inode> = <Block Count> * <Block Size> / <Inode Count>
and it should be close to 4096. Allow some error for rounding, overhead,
or crap I didn't think of.
I'm sure there is an easier way, but DIIKI*
-Mitch
*Damned If I Know It
Reply to: