From owner-freebsd-questions@FreeBSD.ORG Fri May 30 16:03:32 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 9DAD437B401 for ; Fri, 30 May 2003 16:03:32 -0700 (PDT) Received: from zim.0x7e.net (zim.0x7e.net [203.38.184.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E94143FA3 for ; Fri, 30 May 2003 16:03:29 -0700 (PDT) (envelope-from listone@deathbeforedecaf.net) Received: from goo.0x7e.net ([203.38.184.164] helo=goo) by zim.0x7e.net with smtp (Exim 3.36 #1) id 19LsuA-0006LX-00; Sat, 31 May 2003 08:33:22 +0930 Message-ID: <003101c326ff$aa729da0$a4b826cb@goo> From: "Rob" To: "Joel V" References: <000801c326cf$7eb40a80$0100a8c0@athlon> Date: Sat, 31 May 2003 08:33:20 +0930 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4920.2300 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4920.2300 cc: freebsd-questions@freebsd.org Subject: Re: df -h reporting weird numbers (FreeBSD 4.8) 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: Fri, 30 May 2003 23:03:32 -0000 On my (much smaller) disk, this is the output for root: /dev/ad0s1a 126M 42M 74M 36% / And 42M + 74M is only 166M - 10M missing? Using dumpfs(8), I see that the value of minfree is 8%: magic 11954 time Tue May 27 07:38:32 2003 [ ...snip... ] minfree 8% optim time maxcontig 7 maxbpg 4096 And 8% of 126M is 10M, which works out just right. So df(1) is reporting the space available to non-root users, not the actual free space on the filesystem. You can use tunefs(8) to change minfree - 8% is the default. The manpage says that this isn't a good idea, but it may depend on the size of the filesystem. I've noticed that Solaris used to set the same default minfree for everything, but recent versions make it much smaller (down to 1%) on very large disks. This may or may not be a good idea for FreeBSD - I don't know enough about filesystems. ----- Original Message ----- From: "Joel V" To: Sent: Saturday, May 31, 2003 2:48 AM Subject: df -h reporting weird numbers (FreeBSD 4.8) > /dev/ad0s1g 108G 5.2G 95G 5% /usr > /dev/ad2s1e 55G 428M 50G 1% /mnt/backups > > Okey, 55GB minus 0.5GB should be 54.5GB according to my math. I wont > even mention /usr. Where are the missing gigabytes? > Btw, drive is 60GB WD special edition, works perfectly, checked the > drive with Data Lifeguard etc. Filesystem is UFS. > This is the entry in fstab: > > /dev/ad0s1g /usr ufs rw,userquota 2 > 2 > /dev/ad2s1e /mnt/backups ufs rw 2 > 3 > > > > Cheers. > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >