From owner-freebsd-questions@FreeBSD.ORG Mon Nov 3 16:39:00 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 121DC16A4CE for ; Mon, 3 Nov 2003 16:39:00 -0800 (PST) Received: from smtp08.wxs.nl (smtp08.wxs.nl [195.121.6.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id A595543F3F for ; Mon, 3 Nov 2003 16:38:58 -0800 (PST) (envelope-from akruijff@www.kruijff.org) Received: from kruij557.speed.planet.nl (ipd50a97ba.speed.planet.nl [213.10.151.186]) by smtp08.wxs.nl (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with ESMTP id <0HNS00BPMXP9N7@smtp08.wxs.nl> for freebsd-questions@freebsd.org; Tue, 04 Nov 2003 01:36:45 +0100 (MET) Received: from Alex.lan (localhost [127.0.0.1]) by kruij557.speed.planet.nl (8.12.8p2/8.12.8) with ESMTP id hA40cH22004174; Tue, 04 Nov 2003 01:38:17 +0100 (CET envelope-from akruijff@Alex.lan) Received: (from akruijff@localhost) by Alex.lan (8.12.8p2/8.12.8/Submit) id hA40cDVC004173; Tue, 04 Nov 2003 01:38:13 +0100 (CET) Date: Tue, 04 Nov 2003 01:38:13 +0100 From: Alex de Kruijff In-reply-to: <20031103090715.GC20234@ns2.wananchi.com> To: Odhiambo Washington , freebsd-questions@freebsd.org Message-id: <20031104003813.GB4037@dds.nl> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.4.1i References: <20031103090715.GC20234@ns2.wananchi.com> 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: Tue, 04 Nov 2003 00:39:00 -0000 On Mon, Nov 03, 2003 at 12:07:15PM +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 /. > > Can someone explain to me what I could be missing here, because what > I am seeing isn't what I expect. Perhaps it's just right while I am > the dumb one. Why isn't the whole size reported? > > > 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 > > Some expert explanation would help clear my ignorance! The answers can be found in the FAQ. The source is: http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#DISK-MORE-THAN-FULL 9.25. How is it possible for a partition to be more than 100% full? A portion of each UFS partition (8%, by default) is reserved for use by the operating system and the root user. df(1) does not count that space when calculating the Capacity column, so it can exceed 100%. Also, you'll notice that the Blocks column is always greater than the sum of the Used and Avail columns, usually by a factor of 8%. For more details, look up the -m option in tunefs(8). -- Alex Articles based on solutions that I use: http://www.kruijff.org/alex/index.php?dir=docs/FreeBSD/