From owner-freebsd-questions Tue Sep 25 5:42:54 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gekko.ms-agentur.de (server.ms-agentur.de [62.153.134.194]) by hub.freebsd.org (Postfix) with ESMTP id 4514A37B440 for ; Tue, 25 Sep 2001 05:42:39 -0700 (PDT) Received: from i-clue.de (automatix.i-clue.de [192.168.0.112]) by gekko.ms-agentur.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id OAA23101; Tue, 25 Sep 2001 14:51:57 +0200 Message-ID: <3BB07BA1.2000709@i-clue.de> Date: Tue, 25 Sep 2001 14:42:09 +0200 From: Christoph Sold User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:0.9.4+) Gecko/20010916 X-Accept-Language: de, en MIME-Version: 1.0 To: Justin Stanford Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Upgrading HDD space on existing installation.. ideas? References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 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. > Heh. I know a partition which holds lot of room for /usr/local. Just kidding. >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? > Find another place (preferably in form of another HD). label and newfs it, use sysinstall if in double about the parameters. Use du to identify a suitable mount point: # du -k /usr | sort -rn | less Right at the top of those listings a directory should spring into view as candidate for relocation. Mount the new filesystem temporarily, then copy over the contents of your candidate directory. # mount /dev/newdisk /mnt # cd /usr # tar cf - | (cd /mnt; tar xpf -) Verify the extract has completed successfully (no errors showing up is a good sign). Shutdown to single user, remove the candidate directory, mount the new filesystem in its place: # shutdown now # rm -rf /usr/candidate # mount /dev/newdisk /usr/candidate Don't forget to adjust your /etc/fstab. Finally, ^D and everything should work as before... with room to spare. HTH -Christoph Sold >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. > Dutifully done. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message