From owner-freebsd-questions Tue Sep 25 5:27: 3 2001 Delivered-To: freebsd-questions@freebsd.org Received: from isy.liu.se (isy.liu.se [130.236.48.10]) by hub.freebsd.org (Postfix) with ESMTP id C3B3337B417 for ; Tue, 25 Sep 2001 05:26:57 -0700 (PDT) Received: from lagrange.isy.liu.se (lagrange.isy.liu.se [130.236.49.127]) by isy.liu.se (8.11.4/8.11.4) with ESMTP id f8PCQUc29802; Tue, 25 Sep 2001 14:26:30 +0200 (MET DST) Message-ID: X-Mailer: XFMail 1.5.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Tue, 25 Sep 2001 14:26:45 +0200 (CEST) From: Micke Josefsson To: Justin Stanford Subject: RE: Upgrading HDD space on existing installation.. ideas? Cc: freebsd-questions@FreeBSD.ORG 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 You do not need to reinstall. I suggest you endow your machine with two disks in total, the one you have there already and the new one. I think this route would be succesful: Insert your new disk, format it etc. Is it /usr/home that is crowded? Then put /home on the new disk. If not then move the entire /usr to the new disk: #cd /usr #find . -depth -print | cpio -pudm change /etc/fstab accordingly. Now you seem to be short on /var too? Given that your new disk has /usr on it, proceed as: either: # reuse your old /usr space mount /dev/ad0s2f /mnt cd /mnt rm -rf # then put /var into it cd /var find . -depth -print | cpio -pudm /mnt # and finally edit the /var-line in /etc/fstab or dump -0uaf /usr/var.dump /dev/ad0s2e This will build an exact image in /usr/var.dump cd /wherever you have ample amount of space restore rvf /usr/var.dump This will fill the new space with the old dump. Hope some of this is useful for you. Feel free to email me privately if you need to. Finally: Exactly what is taking all that space? Have you done make clean in /usr/ports? When I am building CD:s I have a separate disk mounted as /disk1 for the huge files needed. /Micke On 25-Sep-2001 Justin Stanford wrote: > Hi, > > 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. > > -- > Justin Stanford > Internet/Network Security & Solutions Consultant > 4D Digital Security > http://www.4dds.co.za > Cell: (082) 7402741 > E-Mail: jus@security.za.net > PGP Key: http://www.security.za.net/jus-pgp-key.txt > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message ---------------------------------- Michael Josefsson, MSEE mj@isy.liu.se This message was sent by XFMail running on FreeBSD 4.4-STABLE ---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message