Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Mar 2002 18:36:37 +0100
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        Jean-Yves Lefort <jylefort@brutele.be>
Cc:        freebsd-questions@FreeBSD.org
Subject:   Re: Available disk space is negative ?
Message-ID:  <20020315173637.GA27797@student.uu.se>
In-Reply-To: <20020315181752.A60072@jsite.lefort.net>
References:  <20020315181752.A60072@jsite.lefort.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020315173637.GA27797>