From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1KHMm0-0006GF-TP for garchives@archives.gentoo.org; Fri, 11 Jul 2008 17:51:13 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 717ACE05A2; Fri, 11 Jul 2008 17:51:10 +0000 (UTC) Received: from rabble.robbieab.com (rabble.robbieab.com [213.79.38.74]) by pigeon.gentoo.org (Postfix) with ESMTP id 34428E05A2 for ; Fri, 11 Jul 2008 17:51:10 +0000 (UTC) Received: from [192.168.1.71] (helo=pheonix) by rabble.robbieab.com with esmtp (Exim 4.69) (envelope-from ) id 1KHMlx-0004z0-4p for gentoo-user@lists.gentoo.org; Fri, 11 Jul 2008 18:51:09 +0100 Date: Fri, 11 Jul 2008 18:51:38 +0100 From: Robert Bridge To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] how does Gentoo's mke2fs determine how many inodes to create? Message-ID: <20080711185138.30e50a78@pheonix> In-Reply-To: <200807111745.59115.alan.mckinnon@gmail.com> References: <20080711111653.455A.0.NOFFLE@debian107.local> <200807111745.59115.alan.mckinnon@gmail.com> X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.9; i686-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: d13c2b47-5bfb-4062-9417-ae5d6672656a X-Archives-Hash: ee9a1aad1e7ecd6399da1a82465d211f On Fri, 11 Jul 2008 17:45:58 +0200 Alan McKinnon wrote: > On Friday 11 July 2008, Miernik wrote: > > I installed Gentoo using the handbook, and the root partition has > > 4094951424 bytes (a 4 GB USB pendrive), and "mke2fs -j /dev/sda2" as > > on > > http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap= > >4#doc_chap4 created me a partition with only 249984 inodes. That was > > REALLY SILLY of him, because: > > > > przehyba ~ # df -i /dev/sda2 > > Filesystem Inodes IUsed IFree IUse% Mounted on > > /dev/sda2 249984 249739 245 100% / > > przehyba ~ # > > Actually it's really silly of you to have done that for a gentoo root > partition. You have 16k per inode on average, much more than enough > for normal purposes so it's a sane default for ext2/ext3. > > I'll bet your problem is this: > > alan@develop ~ $ find /var/portage/ | wc > 143970 143970 7612245 > > That 65% of your inodes consumed right there in a required directory > structure. If so, easiest way out is to boot off a LiveCD, get access > to the pendrive and reduce it by about 350M or so. Create a new > filesystem in that space, mount it to $PORTDIR and move your portage > tree to it. > > Someone else will need to confirm how big PORTDIR is on ext2/ext3, as > mine isn't. Also make sure distfiles is also a separate filesystem. My experience when I was playing with Gentoo on a 2GB USB stick was that fragmenting the device was a BAD idea, a much more efficient trick is reducing the block size to 1k. This reduces the portage tree size massively, and increases the number of inodes a lot, as inodes are allocated proportional to the number of blocks. YMMV, Rob. -- gentoo-user@lists.gentoo.org mailing list