Commands to display the size of each block and inode?

Discussion in 'Installation/Configuration' started by BluesRenegade, Jun 25, 2007.

  1. BluesRenegade

    BluesRenegade New Member

    To configure disk quotas I need to set the limits by the # of blocks and/or # of inodes, so I need to know how many bytes each block and inode use on these SCSI hard drives to calculate the settings.

    What Linux command will give me that info?

    Thanks!
     
  2. BluesRenegade

    BluesRenegade New Member

    SOLUTION: HOW-TO find block and inode size of file system

    The command to find the block and inode size is, dumpe2fs.

    dumpe2fs is the command for ext2 and ext3 file systems.

    ReiserFS, cdrom's, etc. should have an equivalent command within their file system commands.

    i.e. you have an IDE drive, hda, with filesystems at hda1, hda2, etc.
    (a SCSI drive would be sda, with filesystems at sda1, sda2, etc.)

    To find the block and inode size of file system at hda1:

    dumpe2fs -h /dev/hda1 | grep 'Block size'
    dumpe2fs -h /dev/hda1 | grep 'Inode size'

    To find all known devices on the system:

    ls /dev/

    BluesRenegade
    "There are only 10 kinds of people in the world, binary and all the rest."
     
    Last edited: Jun 26, 2007

Share This Page