Gentoo Archives: gentoo-user

From: Daniel Iliev <daniel.iliev@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] how does Gentoo's mke2fs determine how many inodes to create?
Date: Fri, 11 Jul 2008 12:15:19
Message-Id: 20080711151500.3ae97b4f@ilievnet.com
In Reply to: [gentoo-user] how does Gentoo's mke2fs determine how many inodes to create? by Miernik
1 On Fri, 11 Jul 2008 13:16:53 +0200
2 Miernik <public@××××××××××××××.name> wrote:
3
4 > I installed Gentoo using the handbook, and the root partition has
5 > 4094951424 bytes (a 4 GB USB pendrive), and "mke2fs -j /dev/sda2" as
6 > on
7 > http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=4#doc_chap4
8 > created me a partition with only 249984 inodes. That was REALLY SILLY
9 > of him, because:
10 >
11 > przehyba ~ # df -i /dev/sda2
12 > Filesystem Inodes IUsed IFree IUse% Mounted on
13 > /dev/sda2 249984 249739 245 100% /
14 > przehyba ~ #
15 >
16 > I ran out of inodes! Now it cries that the disk ran out of space when
17 > I try to compile anything. I did already get rid of /usr/share/doc/ as
18 > there are many small files there, and purged /var/tmp/ too, but again
19 > emerge quickly fills all possible inodes, and fails.
20 >
21 > Why did he did so little inodes? On another machine, which is Debian
22 > and about 5 GB disk, I have 752192 inodes and even on a 3.2 GB one
23 > 376096 inodes, so here why did I get so little by default?
24 >
25 > What can I do now, besides starting the installation over again from
26 > the beggining, which would be 2 days of work lost!
27 >
28 > Any other places besides /usr/share/doc and /var/tmp/ I can look to
29 > recover a lot of inodes? Can someone fix mke2fs so it doesn't do that
30 > to anyone again in the future?
31 >
32
33
34 /etc/mke2fs.conf - this file contains the default options plus several
35 presets.
36
37 The number of inodes can be specified at creation time with the "-N"
38 parameter. AFAIK it cannot be changed afterwards.
39
40
41
42 --
43 Best regards,
44 Daniel
45 --
46 gentoo-user@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-user] how does Gentoo's mke2fs determine how many inodes to create? Anthony Metcalf <Anthony.Metcalf@×××××××××××.cx>