SUMMARY: Determining the bytes/inode in a Filesystem

From: Mike Peralta (
Date: Fri May 22 1992 - 20:56:45 CDT

Thanks to all who replied. It appears that the easiest way to determine
the number of bytes/inode in a filesystem is to use the "df" command
with and without the "-i" option.

        # df /mnt
        Filesystem kbytes used avail capacity Mounted on
        /dev/sd1g 983118 9 933954 0% /mnt

        # df -i /mnt
        Filesystem iused ifree %iused Mounted on
        /dev/sd1g 4 119164 0% /mnt

The "-i" option will report free disk space in terms of inodes instead of
kbytes. Simple arithmetic yields a close approximation of bytes/inode.

        bytes/inode = kbytes / ( iused + ifree )

Several people suggested using the "newfs -N /dev/rsd?" command, which
acording to the man pages will "Print out the file system parameters without
actually creating the file system". However, I tried this only to find out
that the number of bytes/inode reported is always the default value,
regardless of how the filesystem was actually configured.

Mike Peralta (
National Optical Astronomy Observatories
Tucson, AZ

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:42 CDT