Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Nov 2003 11:11:14 +0100
From:      Elessar <elessar@galgenberg.net>
To:        Odhiambo Washington <wash@wananchi.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How does FreeBSD calculate disk sizes
Message-ID:  <20031103111114.7beefac9.elessar@galgenberg.net>
In-Reply-To: <20031103090715.GC20234@ns2.wananchi.com>
References:  <20031103090715.GC20234@ns2.wananchi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--Signature=_Mon__3_Nov_2003_11_11_14_+0100_C0v/e/XNOo.x1POE
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Hi

On Mon, 3 Nov 2003 12:07:15 +0300
Odhiambo Washington <wash@wananchi.com> wrote:

> Hello users,
> 
> I have a disk which is actually 72GB. 2GB has been used as swap while
> the rest was given to /.

Well, 72GByte in the manufacturer's notation which is decimal.
So your disk has 72 * 10^3^3 (= 72'000'000'000) Bytes.
freeBSD works - like every other OS i know - not decimal but dual.
Therefor the disk has 67.055225 * 2^10^3 (= 72'000'000'000) Bytes.

> sucks# uname -nmr
> sucks.wananchi.com 5.1-RELEASE-p10 i386
> 
> sucks# df -h
> Filesystem    Size   Used  Avail Capacity  Mounted on
> /dev/da0s1a    64G   1.8G    57G     3%    /
> devfs         1.0K   1.0K     0B   100%    /dev

Here we have our 67GiByte disk without the 2GiByte Swap, and a little
bit of unused space due to Sector 63 thingies.
So da0s1a ends up having 64GiByte of which iirc 8-10% are reserved and
used for filesystem optimizations. Makes 57GiByte available with 3% (or
1.8Gi) being used.

So everything is there, it's just a little math. And yes, it's quite
a pain in the ass, but you will get used to it ;]

Joerg

--Signature=_Mon__3_Nov_2003_11_11_14_+0100_C0v/e/XNOo.x1POE
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/pinMIrY0CTTJX8ARAtImAJ9V7Sr+h1DxUVuCBvFc2rhoTH7MBwCePRPk
A5/YlYelqhpxW1TqijQr0s8=
=cduL
-----END PGP SIGNATURE-----

--Signature=_Mon__3_Nov_2003_11_11_14_+0100_C0v/e/XNOo.x1POE--



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