Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Sep 2001 18:03:30 -0400
From:      Bill Moran <wmoran@iowna.com>
To:        "Dreamtime.net Inc." <clients@dreamtime.net>
Cc:        questions@freebsd.org
Subject:   Re: Inodes
Message-ID:  <01092018033001.01333@proxy.the-i-pa.com>
In-Reply-To: <20010920192531.A1071@student.uu.se>
References:  <JEELLDECNKBMDHPNMECKIENHDLAA.clients@dreamtime.net> <20010920192531.A1071@student.uu.se>

next in thread | previous in thread | raw e-mail | index | archive | help
Note also, that if you've already newfsed and mounted the drive, issuing
"df -i" will tell you exactly how many inodes are available, as well as how
many have been used so far. See the man page for more.

On Thursday 20 September 2001 13:25, Erik Trulsson wrote:
> On Thu, Sep 20, 2001 at 08:58:33AM -0700, Dreamtime.net Inc. wrote:
> > Does anyone know how many inodes are created by default with 17 Gig
> > filesystem?
>
> In the newfs(8) manpage one can find the following:
>
>
>   -f frag-size
>         The fragment size of the file system in bytes.  It must be a
>         power of two ranging in value between blocksize/8 and blocksize.
>         The default is 1024 bytes.
>   -i number of bytes per inode
>         Specify the density of inodes in the file system.  The default is
>         to create an inode for every (4 * frag-size) bytes of data space.
>         If fewer inodes are desired, a larger number should be used; to
>         create more inodes a smaller number should be given.  One inode
>         is required for each distinct file, so this value effectively
>         specifies the average file size on the file system.
>
> A quick calculation shows that, by default, one inode is created for
> every (4 * 1024 = ) 4096 bytes on the disk.
>
> 17 GB / 4096 bytes  gives a result of somewhat more than 4 million inodes.
>
> (The exact number depends on exactly how large the filesystem is. 17 GB
> is not a very precise measurement and I can't tell if GB is used as
> 10^9 bytes or 2^30 bytes.  (The former is what all harddisk
> manufacturers use, the second is what all operating systems use.))

-- 
Bill Moran
Potential Technology technical services
(412) 793-4257

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01092018033001.01333>