From owner-freebsd-questions@FreeBSD.ORG Thu May 15 14:24:42 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D392A37B401 for ; Thu, 15 May 2003 14:24:42 -0700 (PDT) Received: from sccrmhc03.attbi.com (sccrmhc03.attbi.com [204.127.202.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA9D443F85 for ; Thu, 15 May 2003 14:24:41 -0700 (PDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com[24.147.188.198]) by attbi.com (sccrmhc03) with ESMTP id <2003051521244100300be0hre>; Thu, 15 May 2003 21:24:41 +0000 Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.198] (may be forged)) by be-well.ilk.org (8.12.9/8.12.7) with ESMTP id h4FLOfYt005732; Thu, 15 May 2003 17:24:41 -0400 (EDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: (from lowell@localhost) by be-well.ilk.org (8.12.9/8.12.6/Submit) id h4FLOeVt005729; Thu, 15 May 2003 17:24:40 -0400 (EDT) X-Authentication-Warning: be-well.ilk.org: lowell set sender to freebsd-questions-local@be-well.ilk.org using -f Sender: lowell@be-well.no-ip.com To: Joel Rees References: <20030513192837.92E5.JOEL@alpsgiken.gr.jp> From: Lowell Gilbert Date: 15 May 2003 17:24:40 -0400 In-Reply-To: <20030513192837.92E5.JOEL@alpsgiken.gr.jp> Message-ID: <44znln52ef.fsf@be-well.ilk.org> Lines: 48 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-questions@freebsd.org Subject: Re: running out of space in /usr (rambling) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 May 2003 21:24:43 -0000 Joel Rees writes: > I originally gave /usr 2G, and I just recently tried to install perl 5.8. > It ran out of space in three places, so I started cleaning /usr up. It > was up to 83%, then I did a make clean in php4 and several other places, > and got it down to 78%. You probably have other cruft around, but with the disk space there anywhere, it's not worth worrying about. > So, I used disklabel to allocate the rest of the 10G slice fBSD is > living in to a new partition and disklable gave it the letter "d". > > (Why doesn't disklabel give out "d" in sequence? I think I read > something once, but I don't remember, can't find it in a casual glance > through the FAQ.) 'c' is reserved for the whole disk, for historical reasons. > Anyway, I told disklabel to mount the "d" partition as /usr/prod, did > > sudo cp -Rp /usr/ports /usr/prod > sudo rm -R /usr/ports > sudo mkdir /usr/ports > > Then I edited /etc/fstab, adding a line for the "d" drive and setting it > to mount at /usr/ports. Rebooted and it _looks_ like I'm okay. (Actually, > /usr is only down to 53%, so I'm probably going to use fdisk to give the > other 10G I was saving for a rainy day to fBSD, reformat the whole thing, > and re-install, using this as an excuse to go to 4.8-STABLE.) Reducing the number of partitions may be an appropriate approach for your (desktop, it appears) situation. > Question -- Is cp -Rp the recommended way to move the contents of a > subdirectory to a new partition? Even though I'm the only user on the > machine, I should have done the copying in single-user mode, right? Single-user mode isn't really necessary with no other users, as long as you're not running any major daemons. Some other methods would be faster, and backup/restore would correctly handle any flags or links you had there, but it's quite possible none of this applies to your situation. > And one more, is the limit of 8 partitions in an fdisk slice every going > away? If I remember correctly, it's just a compile-time constant...