From owner-freebsd-questions Fri Mar 15 11: 9:59 2002 Delivered-To: freebsd-questions@freebsd.org Received: from maild.telia.com (maild.telia.com [194.22.190.101]) by hub.freebsd.org (Postfix) with ESMTP id 6C30037B416 for ; Fri, 15 Mar 2002 11:09:48 -0800 (PST) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by maild.telia.com (8.11.6/8.11.6) with ESMTP id g2FJ9l200331 for ; Fri, 15 Mar 2002 20:09:47 +0100 (CET) Received: from falcon.midgard.homeip.net (h68n2fls20o913.telia.com [212.181.163.68]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id UAA12169 for ; Fri, 15 Mar 2002 20:09:46 +0100 (CET) Received: (qmail 28701 invoked by uid 1001); 15 Mar 2002 19:09:44 -0000 Date: Fri, 15 Mar 2002 20:09:43 +0100 From: Erik Trulsson To: Kevin Stevens Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Available disk space is negative ? Message-ID: <20020315190943.GA28657@student.uu.se> Mail-Followup-To: Kevin Stevens , freebsd-questions@FreeBSD.ORG References: <20020315173637.GA27797@student.uu.se> <6D5CF9A4-3847-11D6-9C81-003065715DA8@pursued-with.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6D5CF9A4-3847-11D6-9C81-003065715DA8@pursued-with.net> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Mar 15, 2002 at 11:04:08AM -0800, Kevin Stevens wrote: > > On Friday, March 15, 2002, at 09:36 , Erik Trulsson wrote: > > >On Fri, Mar 15, 2002 at 06:17:52PM +0100, Jean-Yves Lefort wrote: > >>Hello all, > >> > >>This night i started a make buildworld on my router before > >>going to bed; unhopefully, i forgot to check the available > >>disk space before starting it, and when i waked up > >>i saw the buildworld dead because of disk full. > >> > >>I issued a 'df', and oh surprise, my available disk space > >>was '-85mb'. Negative value??? FreeBSD giving me a few > >>extra megs for free? Waw :) > >> > >>Well seriously, how does it happened? > > > >FreeBSD normally reserves a part of the filesystem that only root > >can use. > >The area reserved is by default 8% IIRC. This area is *not* included > >in the total space available reported by df. > >So if you get a negative value available disk space that just means > >that you have started using this reserved area. > > > >One reason why a part of the filesystem is set aside in this manner is > >that the performance of the filesystem drops rapidly as it becomes > >almost full so you normally don't want to use those last megabytes > >anyway. > > Where is this adjusted, in newfs? I have a 45GB /data partition, 4GB > seems a bit excessive for those "last megabytes"! > > KeS > newfs when you create the filesystem, tunefs for existing filesystems. -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message