From: Remy CARD (card@masi.ibp.fr)
Date: 03/28/93


From: card@masi.ibp.fr (Remy CARD)
Subject: Re: df reports disk 103% full?!?!
Date: Sun, 28 Mar 1993 16:42:47 GMT

In article <6983@blue.cis.pitt.edu> field@cs.pitt.edu writes:
>WONG YUI WAH GILBERT (wongyui@ecf.toronto.edu) wrote:
>: I got the same message when I tried to install the whole SLS
>: on my 72MB partition- can anyone kindly explain to me what's happening?
>
>
>In a normal unix file system, 10% of the file system capacity is left unused.
>Only root can allocate blocks from this last 10%. Hence, when you install SLS
>(as root) you can consume blocks in this last 10%, resulting in df reporting
>greater than 100% of the disk in use. (The disk blocks that make up this 10%
>are not statically allocated, but rather change over time-- see below).
>
> [allocation strategies description deleted]
>
>(I dunno if linux uses the same strategy. Linus?)

        In fact, the "problem" comes from the ext 2 fs. The ext 2 fs is the
only Linux file system which records blocks reserved for the super user. So,
as root, you can allocate more blocks than as a normal user. Thus, df can
report file systems more than 100% full.

>
>If you really want to allow the entire file system to be used by everyone, you
>can change the default 10% to whatever percentage you like using tunefs. For
>instance, if you want to allow acess to the entire file system, try:
>
> tunefs -m 0

        There is no tunefs program yet for the ext 2 fs. You can only specify
the reserved blocks ratio when you call mke2fs with the -m option (which
defaults to 5% in recent releases). I think that I will have to write a
tune2fs (and a dumpe2fs) soon.

>
>
>Brian
>

        Remy