From owner-freebsd-questions@FreeBSD.ORG Mon Nov 3 02:11:35 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2051816A4CE for ; Mon, 3 Nov 2003 02:11:35 -0800 (PST) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A12843FDD for ; Mon, 3 Nov 2003 02:11:33 -0800 (PST) (envelope-from elessar@galgenberg.net) Received: from wrzx30.rz.uni-wuerzburg.de (wrzx30.rz.uni-wuerzburg.de [132.187.1.30]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id A9FEB62896 for ; Mon, 3 Nov 2003 11:11:32 +0100 (CET) Received: from virusscan (localhost [127.0.0.1]) by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP id 795FD1D3D1 for ; Mon, 3 Nov 2003 11:11:32 +0100 (CET) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP id 8D0AD3411D for ; Mon, 3 Nov 2003 11:11:31 +0100 (CET) Received: from frodo.galgenberg.net (wwsx14.win-screen.uni-wuerzburg.de [132.187.253.14]) by mailmaster.uni-wuerzburg.de (Postfix) with SMTP id 43A3A62896 for ; Mon, 3 Nov 2003 11:11:31 +0100 (CET) Received: (qmail 97750 invoked from network); 3 Nov 2003 10:11:31 -0000 Received: from gb-22-219.galgenberg.net (HELO aragorn.starkstrom.lan) (172.16.22.219) by frodo.galgenberg.net with SMTP; 3 Nov 2003 10:11:31 -0000 Date: Mon, 3 Nov 2003 11:11:14 +0100 From: Elessar To: Odhiambo Washington Message-Id: <20031103111114.7beefac9.elessar@galgenberg.net> In-Reply-To: <20031103090715.GC20234@ns2.wananchi.com> References: <20031103090715.GC20234@ns2.wananchi.com> X-Mailer: Sylpheed version 0.9.6claws (GTK+ 1.2.10; i386-portbld-freebsd5.1) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="Signature=_Mon__3_Nov_2003_11_11_14_+0100_C0v/e/XNOo.x1POE" X-Virus-Scanned: by amavisd-new (Rechenzentrum Universitaet Wuerzburg) cc: freebsd-questions@freebsd.org Subject: Re: How does FreeBSD calculate disk sizes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Nov 2003 10:11:35 -0000 --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 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--