Date: Sat, 11 Dec 2004 13:24:58 +1030 From: Greg 'groggy' Lehey <grog@FreeBSD.org> To: Liu Haixiao <liuhaixiao20041205@yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: I lost ten percent of disk place in each partition, why? Message-ID: <20041211025458.GJ38962@wantadilla.lemis.com> In-Reply-To: <20041211024935.64077.qmail@web90003.mail.scd.yahoo.com> References: <20041211024935.64077.qmail@web90003.mail.scd.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041211025458.GJ38962>