- To: slug@xxxxxxxxxxx
- Subject: Re: [SLUG] Have free space, but 100% used?
- From: Peter Hardy <peterhardy@xxxxxxxxxxxxxx>
- Date: Thu Jul 19 09:12:01 2001
- User-agent: Mutt/1.2.5i
...and then Rob B said:
> Can anyone explain to me why this is happening?
Yes. Hopefully that'll be me. :-)
>
> bunbun:/# df
> Filesystem 1k-blocks Used Available Use% Mounted on
> /dev/sda1 186670 22858 154174 13% /
> /dev/sda3 482249 469491 0 100% /var
> /dev/sda4 3249508 229016 2855428 7% /usr
> /dev/sdb1 8815404 2818376 5549220 34% /export
Notice that, for all of your filesystems, the Used + Available < total free
space. That's because mke2fs reserves a portion of the filesystem (default
is 5%) that can only be used by root. The rationale is that, even when the
filesystem is full, root can get in and fix the problem.
Do a "dumpe2fs -h /dev/sda3", and look for the Reserved block count: field.
If you want to change the reserved block count, use the tune2fs utility.
HTH,
Peter
peterhardy@xxxxxxxxxxxxxx
--
The storm walked around the hills on legs of lightning,
shouting and grumbling.
-- (Terry Pratchett, Equal Rites)