On Wed, Oct 25, 2006 at 12:53:05AM +0100, Ciaran Johnston wrote:
> On Wednesday 25 October 2006 00:18, Brendan Halpin wrote:
> > I've got myself into an awkward state with "apt-get upgrade" on my
> > laptop. I think the problem has to do with apt-get reserving disc
> > space and somehow not yielding it. df tells me I have 0 k free
> > space in /, but the "used" amount is less than the partition size.
> > Moreover, root can write despite the no-free-space, but users
> > cannot.
>> Probably because space is reserved on the filesystem for the superuser. Not
> sure how much, but 5% seems to ring a bell. I believe it is tunable - ah,
> yes, from "man mke2fs"
>> -m reserved-blocks-percentage
> Specify the percentage of the filesystem blocks reserved for
> the super-user. This avoids fragmentation, and allows root-
> owned daemons, such as syslogd(8), to continue to function cor???
> rectly after non-privileged processes are prevented from writ???
> ing to the filesystem. The default percentage is 5%.
You can use tune2fs to change it on the fly. You can also change what
user/group can use the reserved space. Note that having a disk this full
is likely to cause fragmentation.
Brian
--
Website: http://www.netsoc.tcd.ie/~bbrazil
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!