[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] ReiserFS and ext2 fsck question.
> I've just looked at this again, and the numbers don't really make much
> sense...
>
> The ext2 partition is saying it's only using 20k, when it is at the same
> time reporting 27M less available that the size of the disk, whereas the
> reiserfs partition is at least telling the story consistantly...
>
> What's the crack?
Do "tune2fs -m 0 /dev/hda1" then have a look at the figures :)
The ext2 filesystem has a concept of "reserved blocks", where an amount of
the disk can be reserved for user by a single user or group - normally UID 0,
and GID 0 (root:root), but this can be changed with tune2fs.
This allows a priviledged user to do things on a file system and hence any
malicious users can't cause a DoS by filling the disk up - they'll
inconvinience[1] other users, but that want stop the sys admin doing their
job :)
What the tune2fs command above does is it sets the reserved blocks to zero,
giving all space to all users. With reserved blocks, df can report funny
numbers - 100% is when all the user space is taken...so the %usage can report
110% or whatever when the disk is full and root is using their reserved space
:)
Chris...
[1] I'm sure that's spelt wrong and I still can't quite remember how it
should be spelt. Knew I should have drawn that pentagram to help me spell
better :-)
--
Chris Johnson \ "If not for me then, do it for yourself. If not
sixie@nccnet.co.uk \ for then do it for the world." -- Stevie Nicks
www.nccnet.co.uk/~sixie/ ~---------------------------------------+
Redclaw chat - http://redclaw.org.uk - telnet redclaw.org.uk 2000 \______
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word
"unsubscribe" in the body of the message.
GNU the choice of a complete generation.