Gentoo Archives: gentoo-user

From: Dale <dalek1967@×××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] FIXED!! Re: Can't emerge xfce4 with installed lprng. But ran out of inodes. :-(
Date: Fri, 25 Jul 2008 20:45:01
Message-Id: 488A3B46.5090206@bellsouth.net
In Reply to: [gentoo-user] FIXED!! Re: Can't emerge xfce4 with installed lprng. But ran out of inodes. :-( by Alan Mackenzie
1 Alan Mackenzie wrote:
2 > Hi, Dale and everybody else!
3 >
4 > On Fri, Jul 25, 2008 at 05:23:59AM -0500, Dale wrote:
5 >
6 >> Alan Mackenzie wrote:
7 >>
8 >
9 >
10 >> Just in case you are talking about editing the files in profiles, that
11 >> won't work long term. Keep in mind that each time you run emerge
12 >> --sync those files will be overwritten. It is not a good idea to edit
13 >> anything in /usr/portage since it will update when you sync again.
14 >>
15 >
16 >
17 >> If you want to enable/disable features in the profiles, do that in
18 >> make.conf instead.
19 >>
20 >
21 > DONE. It worked too, after fixing another problem (see below).
22 >
23 >
24 >> That is where you put in your final wishes. Example: cups is enabled
25 >> as a USE flag in the profile and you do not want cups enabled. Put
26 >> -cups in your make.conf and it should be disabled. The reverse is also
27 >> true. If you want cups but it is disabled in the profile, you can add
28 >> cups to your USE line in make.conf and it will be enabled.
29 >>
30 >
31 >
32 >> Hope that helps.
33 >>
34 >
35 > It helped a great deal, thanks!
36 >
37 > With about 9 packages to go, I started getting disk full messages, even
38 > though my (sole) partition had well over 1Gb free. It turns out I'd ran
39 > out of inodes. Curious. But the only "application" which has any data
40 > at all yet is portage. ;-)
41 >
42 > I haven't looked in detail where all these little files are - I suspect
43 > they're largely under /var - but dumpe2fs /dev/hdh5 gave:
44 >
45 > Inode count: 250976 <=======
46 > Block count: 1002046
47 > Reserved block count: 50102
48 > Free blocks: 354807
49 > Free inodes: 58 <=======
50 > First block: 0
51 > Block size: 4096
52 > Fragment size: 4096
53 >
54 > It seems I have 250,918 files in ~650,000 blocks. That's a _lot_ of
55 > files, most of them flea sized.
56 >
57 > So I formatted another ext3 partitions, with 2048 byte blocks and
58 > ~1,000,000 inodes, copied all the files across, rebooted into Gentoo and
59 > I was able to finish intalling xfce4. It's nice! I need to get firefox
60 > now, and I'll probably let that run overnight. ;-)
61 >
62 > Comparing the two partions with df immediately after the bulk copy, I got
63 > this:
64 >
65 > Filesystem 1K-blocks Used Available Use% Mounted on
66 > /dev/hdh5 3945128 2525880 1218840 68% /mnt/hdh5 <== Old
67 > /dev/hdh10 3882172 2069020 1612744 57% /mnt/hdh10 <== New
68 >
69 > Maybe 1024 byte blocks would have been even better. Or would it be a
70 > good idea to format the partition-with-all-the-little-files with Reiser.
71 > Does Reiserfs have static limits on numbers of files? It's supposed to
72 > be very good at handling lots of midget files.
73 >
74 >
75 >> Dale
76 >>
77 >
78 >
79 >> :-) :-)
80 >>
81 >
82 >
83
84 I'm glad I finally opened my mouth and helped someone. O_O Miracles
85 still happen.
86
87 How do you run out of inodes anyway? I use reiserfs for most partitions
88 except /boot and portage. My /data partition has 75,000 files and 3,600
89 directories. No problems so far but not near as many files as you have.
90
91 Maybe a file system guru will come along.
92
93 Dale
94
95 :-) :-)

Replies