disk space 'problem'

C. Scott Ananian (cananian@lcs.mit.edu)
Wed, 11 Feb 1998 22:57:58 -0500 (EST)


On Wed, 11 Feb 1998 Royans K Tharakan <rkt@poboxes.com> wrote:

> I am running 2.0.32 and am facing a very strange problem
>
> Filesystem 1024-blocks Used Available Capacity Mounted on
> /dev/hda3 289797 282977 0 100% /
[...]
> I get the above result from 'df' which tells me that though
> 8 MB is free... nothing is available.

The kernel (all versions) reserves some portion of the disk space for use
by root. 'man mke2fs' esp. the -m options. This protects you from users
who might use up all available disk space, not allowing the super-user
room to log in and fix things. The reserved blocks ensure you've got
enough space to move things and fix the disk space problem. By default 5%
of the blocks are reserved.

This isn't a terribly good explanation, but hopefully it helps to explain
your 'problem'. You can, of course, set the 'percent reserved' to 0 --
but I don't know if you can do this without reformatting.
--Scott
@ @
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-oOO-(_)-OOo-=-=-=-=-=
C. Scott Ananian: cananian@lcs.mit.edu / Declare the Truth boldly and
Laboratory for Computer Science/Crypto / without hindrance.
Massachusetts Institute of Technology /META-PARRESIAS AKOLUTOS:Acts 28:31
-.-. .-.. .. ..-. ..-. --- .-. -.. ... -.-. --- - - .- -. .- -. .. .- -.
PGP key available via finger and from http://www.pdos.lcs.mit.edu/~cananian

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu