From owner-freebsd-questions Thu Sep 20 15: 0:35 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.the-i-pa.com (mail.the-i-pa.com [151.201.71.132]) by hub.freebsd.org (Postfix) with SMTP id 27E8F37B41A for ; Thu, 20 Sep 2001 15:00:32 -0700 (PDT) Received: (qmail 75207 invoked from network); 20 Sep 2001 22:11:10 -0000 Received: from unknown (HELO proxy.the-i-pa.com) (151.201.71.210) by mail.the-i-pa.com with SMTP; 20 Sep 2001 22:11:10 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Bill Moran Organization: Potential Technology To: "Dreamtime.net Inc." Subject: Re: Inodes Date: Thu, 20 Sep 2001 18:03:30 -0400 X-Mailer: KMail [version 1.2] Cc: questions@freebsd.org References: <20010920192531.A1071@student.uu.se> In-Reply-To: <20010920192531.A1071@student.uu.se> MIME-Version: 1.0 Message-Id: <01092018033001.01333@proxy.the-i-pa.com> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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