On Mon, Dec 12, 2011 at 12:15:52PM +0100, Daniel Troeder wrote:

> I have an ext4-filesystem that contains /usr/src, the /usr/portage and
> /var/cache/edb. It previously also contained /var/db/pkg, but I had to
> move that some weeks ago, because the fs was "full". Now it's "full"
> again, though it has free blocks. But no inodes are left:
> 
> $ fsck -vf /dev/sda5
> [..]
>   655360 inodes used (100.00%)
> [..]
> 
> $ find /gentoo -xdev | wc -l
> 655338
> 
> Is there any way to raise the number of inodes without using
> $ mkfs.ext4 -N BIGNUM

You can’t increase the number in an existing FS, you’ll have to reformat it.
If you have a backup, as you should anyway ;-) , you could boot a live system
and reformat.

On my system, /usr/portage currently contains 127000 files. But for reason of
increased performance I put it into a squashfs file.  (There was a nice howto
on this ML some months ago).  You could try that, which will free those inodes
up and ideally leaves you with one used inode for the squashfs image. Plus, if
you have enough RAM, you could put /var/tmp/portage into tmpfs. I have 3GB,
and this is fairly enough. For other hogs like firefox, LO and java, I use
binary packages though.
For comparision, I too have one (seldom two) kernel source trees and everything
else on / except /home. And while of the 17GB capacity barely 1GB is left free,
I still have 480k inodes free of the 1M in total. (I figured that I may have
more space for content if I reserved less for inodes).
-- 
Gruß | Greetings | Qapla'
I forbid any use of my email addresses with Facebook services.

A hammer is a wonderful tool,
but it is plain unsuitable for cleaning windows.  (SelfHTML forum)

Attachment: pgpyh5Ew7w2Gy.pgp
Description: PGP signature

Reply via email to