From owner-freebsd-questions Mon Apr 2 4:44: 3 2001 Delivered-To: freebsd-questions@freebsd.org Received: from istar.ca (d141-119-162.home.cgocable.net [24.141.119.162]) by hub.freebsd.org (Postfix) with ESMTP id C3A3237B71B for ; Mon, 2 Apr 2001 04:44:00 -0700 (PDT) (envelope-from genisis@istar.ca) Received: (from genisis@localhost) by istar.ca (8.11.1/8.11.1) id f32BlDV14181; Mon, 2 Apr 2001 07:47:13 -0400 (EDT) (envelope-from genisis) Date: Mon, 2 Apr 2001 07:47:12 -0400 (EDT) From: Dru To: Andrew Hesford Cc: FreeBSD-questions Subject: Re: disklabel and block size In-Reply-To: <20010402023151.A817@cec.wustl.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi Andrew, You might find the following article helpful: http://www.oreillynet.com/pub/a/bsd/2001/02/28/FreeBSD_Basics.html This was the 2nd article in a 3-part series, so you might want to scan the other 2 as well. Cheers, Dru On Mon, 2 Apr 2001, Andrew Hesford wrote: > I have two related questions: > > 1. In the disklabel output, what is the significance of the bps/cpg > group? The man page for disklabel says that for disks larger than 1G, it > defaults to 64, but mine is 16, and an example in the man page had it > set at 75. What does this field mean, and how will different values > affect the disk? > > 2. All my filesystems have block sizes of 8k and fragment sizes of 1k. > What does this mean? For ext2 and fat, a block is the smallest > allocatable disk segment, meaning that I can store at most 1 file in > each 8k block. However, the fragment suggests that the smallest > allocatable segment is 1k, with block having a different meaning. Can I > store up to 8 files in each 8k data segment, or only 1 file? > Furthermore, if the fragment is the smallest allocatable group (in the > sense of an ext2 block), what is the significance of an FFS block? Is it > the amount of space that is reserved for file writing in order to prevent > fragmentation of data? > -- > Andrew Hesford > ajh3@chmod.ath.cx > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message