Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jun 1999 00:57:25 -0500
From:      Dan Nelson <dnelson@emsphone.com>
To:        Unknow User <kernel@tdnet.com.br>
Cc:        questions@FreeBSD.ORG
Subject:   Re: block size, simple question!
Message-ID:  <19990609005725.A13347@dan.emsphone.com>
In-Reply-To: <375DD516.C4451948@tdnet.com.br>; from "Unknow User" on Wed Jun  9 02:44:38 GMT 1999
References:  <375DD516.C4451948@tdnet.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jun 09), Unknow User said:
> What should i do to discover how big is my file system block ?
> Which one is FreeBSD default: 512 bytes, 1K or 2k, etc ?
> thanks

The default is 8K blocks, with 1K frags.  News spools usually are
formatted at 4K/512b; I have a couple of 60GB archive volumes at
16K/2K. Usually fragsize is blocksize/8.

You can check the blocksize of an existing filesystem by running
"dumpfs /dev/rda0s1a", or whatever device you are interested in:

$ dumpfs /dev/rda0s1a | head -6

magic	11954	time	Wed Jun  9 00:53:54 1999
cylgrp	dynamic	inodes	4.4BSD
nbfree	1426	ndir	71	nifree	5917	nffree	458
ncg	1	ncyl	16	size	32768	blocks	31775
bsize	8192	shift	13	mask	0xffffe000
fsize	1024	shift	10	mask	0xfffffc00

^^^^^  blocksize and fragsize


	-Dan Nelson
	dnelson@emsphone.com



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?19990609005725.A13347>