From owner-freebsd-questions Tue Sep 25 11:15:11 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mout04.kundenserver.de (mout04.kundenserver.de [195.20.224.89]) by hub.freebsd.org (Postfix) with ESMTP id F1C8F37B403 for ; Tue, 25 Sep 2001 11:11:26 -0700 (PDT) Received: from [195.20.224.219] (helo=mrvdom03.schlund.de) by mout04.kundenserver.de with esmtp (Exim 2.12 #2) id 15lvTv-0006Rh-00; Tue, 25 Sep 2001 18:54:51 +0200 Received: from pd90172e3.dip.t-dialin.net ([217.1.114.227]) by mrvdom03.schlund.de with esmtp (Exim 2.12 #2) id 15lvTu-00002s-00; Tue, 25 Sep 2001 18:54:51 +0200 Date: Tue, 25 Sep 2001 16:54:25 +0000 (GMT) From: "P. U. (Uli) Kruppa" X-X-Sender: To: "Gerald A.Speak" Cc: Justin Stanford , Subject: Re: Upgrading HDD space on existing installation.. ideas? In-Reply-To: <20010925130755.7D03437B419@hub.freebsd.org> Message-ID: <20010925163701.S802-100000@big> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, the idea would be to 1) build in a second harddisk (ad1) and create your (future /usr) partition, let us say ad1s1a (with as many GBs as you like) 2) mount in somewhere on your existing system, let us say on /new 3) copy the old /usr - partition onto /new 4) test your copy by doing # umount /new # mount /dev/ad1s1a /usr Your old /usr-partition will not be deleted - just invisible. 5) When your applications from /usr still work change /etc/fstab : enter /dev/ad1s1a for /usr 6) reboot and pray! The problematic step is 3): you cannot just use # cp -r * because links will not be reproduced correctly. You will have to use pax or tar . About the use of pax you will find a small note in a freebsd-documentation called formatting media (use freebsd-search). Perhaps someone knows something about the use of tar. Good Luck! > On Tuesday 25 September 2001 06:22 am, Justin Stanford wrote: > > My current workstation is running FreeBSD 4.4-STABLE, and resides on a > > 10.2gb HDD. > > > > It looks like this: > > > > /dev/ad0s2a 48M 35M 9.2M 79% / > > /dev/ad0s2f 6.8G 5.8G 537M 92% /usr > > /dev/ad0s2e 19M 15M 2.5M 86% /var > > > > ad0s1 is the first partition on the drive, which contains Win98se. > > > > Now, as you can see, /usr is running out of space quite fast.. during > > today's general worktime I hit -68.5M and realised that I am in need of an > > HDD upgrade for some more space. > > > > Now, the problem presents itself in that, I have been using this > > workstation since 4.0-RELEASE (and have been tracking 4.x-STABLE via > > cvsup), and it is nothing trivial for me to just reinstall a fresh FreeBSD > > and start over -- my machine has years of configuration, software > > installation, etc, behind it, so I need to find some way to move to a new, > > bigger HDD, while still exactly preserving my system.. not just /usr, > > everything, like /etc, /var/, and so on. > > > > Various suggestions have been made, but I'm not sure what the best route > > is to follow.. any suggestions, anyone? > > > > Many thanks in advance, > > Justin > > > > PS: Kindly CC me any answers as I am not subscribed to the questions > > list. If this question is not suitable for this list, kindly forward it to > > the appropriate one. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message