From owner-freebsd-questions@FreeBSD.ORG Sat Dec 11 02:55:02 2004 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 9218416A4CE for ; Sat, 11 Dec 2004 02:55:02 +0000 (GMT) Received: from blackwater.lemis.com (wantadilla.lemis.com [192.109.197.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3C7E43D53 for ; Sat, 11 Dec 2004 02:55:00 +0000 (GMT) (envelope-from grog@lemis.com) Received: by blackwater.lemis.com (Postfix, from userid 1004) id BC08E85667; Sat, 11 Dec 2004 13:24:58 +1030 (CST) Date: Sat, 11 Dec 2004 13:24:58 +1030 From: Greg 'groggy' Lehey To: Liu Haixiao Message-ID: <20041211025458.GJ38962@wantadilla.lemis.com> References: <20041211024935.64077.qmail@web90003.mail.scd.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4vpci17Ql0Nrbul2" Content-Disposition: inline In-Reply-To: <20041211024935.64077.qmail@web90003.mail.scd.yahoo.com> User-Agent: Mutt/1.4.2.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 cc: freebsd-questions@freebsd.org Subject: Re: I lost ten percent of disk place in each partition, why? 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: Sat, 11 Dec 2004 02:55:02 -0000 --4vpci17Ql0Nrbul2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline [Format recovered--see http://www.lemis.com/email/email-format.html] Output wrapped inappropriately. On Friday, 10 December 2004 at 18:49:35 -0800, Liu Haixiao wrote: > Dir sir: > Please look at this: > >> df > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/ad0s1a 253678 36588 196796 16% / > devfs 1 1 0 100% /dev > /dev/ad0s2e 20154808 5938198 12604226 32% /mnt/s2 > /dev/ad0s3e 18803906 2 17299592 0% /mnt/s3 > /dev/ad0s1e 253678 12 233372 0% /tmp > /dev/ad0s1f 18836160 1591380 15737888 9% /usr > /dev/ad0s1d 253678 10452 222932 4% /var > > Used + Avail = 0.92 * 1K-blocks, that means I lost 10% disk space, > why? That's the way the file system works. The last 11% are reserved for root. You can change it with tunefs(8) if you want (see the -m flag), but you shouldn't want. FWIW, this is fairly typical. Microsoft does it as well. Here's what I get from an empty flash card from my digital camera: $ mount -v | grep camera /dev/da0s1 on /camera (msdosfs, local, reads: sync 3 async 0, fsid 1e04000004000000) $ df /camera Filesystem 1048576-blocks Used Avail Capacity Mounted on /dev/da0s1 121 11 109 10% /camera $ ls -Rl /camera/ total 1 drwxr-xr-x 1 root wheel 16384 Feb 23 2004 dcim /camera/dcim: total 1 drwxr-xr-x 1 root wheel 16384 Feb 23 2004 100ricoh /camera/dcim/100ricoh: total 0 Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers. --4vpci17Ql0Nrbul2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBumGCIubykFB6QiMRAr2PAKCuoBGVnHuAgL37eWLPCuIvuNY36ACgqvZE z6isBIYpzrkVBXfeJoVKfAM= =mY8d -----END PGP SIGNATURE----- --4vpci17Ql0Nrbul2--