*BSD News Article 25709


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!mimosa.astro.indiana.edu!pitts
From: pitts@mimosa.astro.indiana.edu (Jim Pitts)
Subject: Re: [FreeBSD] free diskspace?
Message-ID: <CJA41o.8I4@usenet.ucs.indiana.edu>
Sender: news@usenet.ucs.indiana.edu (USENET News System)
Nntp-Posting-Host: mimosa.astro.indiana.edu
Organization: Indiana University Astronomy Department
References: <gate.8oaTFc1w165w@subway.hacktic.nl>
Date: Fri, 7 Jan 1994 21:37:00 GMT
Lines: 45

In article <gate.8oaTFc1w165w@subway.hacktic.nl>,
Koen Martens <gmc@subway.hacktic.nl> wrote:
>
>I am having a little trouble with my diskspace. When I do an 'df', it
>gives me something like this:
>
>Filesystem  512-blocks    Used   Avail Capacity  Mounted on
>/dev/wd0a        28303   13364   12108    52%    /
>/dev/wd0e       266030  142957   96470    60%    /usr
>/dev/fd0a         2847    1928     919    68%    /mnt
>
>As you can see, for /dev/wd0a 13364+12108 does not equal 28303.. Also,
>142957+96470 does not equal 266030. It has happened that my system
>reported a negative value for available disk-space! fsck however does
>return the correct free disk space, but does not discover anything wrong
>with the disks.. Note that on a floppy everything seems ok.
>
>Is this a known problemm? And if yes, could you please tell me what to
>do to fix it??
>
>

This is not a problem.  When you make a new BSD filesystem 10% of the total
space is reserved as space that only 'root' can write to.  When you see
your disk space go into negative numbers, this means that 'root' is writing
into this overflow space.

142957 (used) + 96470 (avail) + 26603 (10% total space) = 266030 (total space)
                                ^^^^^^^^^^^^^^^^^^^^^^^

To answer your possible next question, this space is required by the BSD
filesystem.  It is used to insure that problems like fragmentation are kept
to a minumum.  I am sure that there are ways to make this space avaliable
for general consumption, but I would not suggest doing it.  It makes for
a -very- inefficent file system.  It is an integral part of the filesystem
itself and is crucial to its proper operation.




-- 
- pitts@mimosa.astro.indiana.edu             ^       | James J. Pitts        -
- Most people are sheep.                    /@\      | IU Physics Dept       -
- Only a select few are fit to rule.       /   \     | Voice:   812-855-8247 -
- We are The Bavarian Illuminati.         /_____\    | FAX  :   812-855-5533 -