From owner-freebsd-questions@FreeBSD.ORG Tue May 13 03:41:21 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 CFD8A37B401 for ; Tue, 13 May 2003 03:41:21 -0700 (PDT) Received: from alpsgiken.alpsgiken.gr.jp (www.alpsgiken.gr.jp [210.166.150.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9308C43FAF for ; Tue, 13 May 2003 03:41:20 -0700 (PDT) (envelope-from joel@alpsgiken.alpsgiken.gr.jp) Received: from zz_radiant2 (www1.alpsgiken.gr.jp [61.114.244.165]) by alpsgiken.alpsgiken.gr.jp (8.9.1a/3.7W) with ESMTP id TAA14962 for ; Tue, 13 May 2003 19:41:17 +0900 Date: Tue, 13 May 2003 19:46:42 +0900 From: Joel Rees To: freebsd-questions@freebsd.org Message-Id: <20030513192837.92E5.JOEL@alpsgiken.gr.jp> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.00.11 Subject: 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: Tue, 13 May 2003 10:41:22 -0000 4.7-RELEASE: 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%. 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.) 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.) 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? And one more, is the limit of 8 partitions in an fdisk slice every going away? -- Joel Rees