From owner-freebsd-questions Fri Mar 15 9:37:21 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailc.telia.com (mailc.telia.com [194.22.190.4]) by hub.freebsd.org (Postfix) with ESMTP id DF5F737B4AF for ; Fri, 15 Mar 2002 09:36:41 -0800 (PST) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by mailc.telia.com (8.11.6/8.11.6) with ESMTP id g2FHaer08322 for ; Fri, 15 Mar 2002 18:36:40 +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 SAA27538 for ; Fri, 15 Mar 2002 18:36:39 +0100 (CET) Received: (qmail 27809 invoked by uid 1001); 15 Mar 2002 17:36:37 -0000 Date: Fri, 15 Mar 2002 18:36:37 +0100 From: Erik Trulsson To: Jean-Yves Lefort Cc: freebsd-questions@FreeBSD.org Subject: Re: Available disk space is negative ? Message-ID: <20020315173637.GA27797@student.uu.se> Mail-Followup-To: Jean-Yves Lefort , freebsd-questions@FreeBSD.org References: <20020315181752.A60072@jsite.lefort.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020315181752.A60072@jsite.lefort.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 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. -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message