From owner-freebsd-questions Fri Mar 2 5:45: 4 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gekko.i-clue.de (server.ms-agentur.de [62.153.134.194]) by hub.freebsd.org (Postfix) with ESMTP id F0B5B37B71A for ; Fri, 2 Mar 2001 05:44:56 -0800 (PST) (envelope-from so@server.i-clue.de) Received: from i-clue.de (automatix.i-clue.de [192.168.0.112]) by gekko.i-clue.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id PAA17312; Fri, 2 Mar 2001 15:51:10 +0100 Message-ID: <3A9FA42B.D4EE938B@i-clue.de> Date: Fri, 02 Mar 2001 14:46:19 +0100 From: Christoph Sold Reply-To: so@server.i-clue.de X-Mailer: Mozilla 4.75 [de] (WinNT; U) X-Accept-Language: de MIME-Version: 1.0 To: "Dan S." Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Added a new HD need some help. References: <20010302114705.91071.qmail@web12005.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Dan S." schrieb: > > I just added a new HD to my system. I Fdisk'ed it and > labeled it from /stand/sysinstall. I labeled it /zusr > and added an entry for the drive to fstab. What I am > wondering is how can I get things to install to the > new HD instead of /usr which is almost full? How can i > get something I install from the ports collection to > install to /zusr? I have tried making a symbolic link > but that didn't do what I wanted. Any suggestions on > how to get it working the way I want? What's the way you want? ideally, I'd run du /usr to check where a split point is, try to guess which arae inside /usr will grow how fast, then single out _one_ directory inside /usr to transfer to the new disk. For example, I decide /usr/home will grow fastes. To get this area to the new disk, # cd /usr # tar cpf - home/ | (cd /zusr; tar xpf -) to copy the contents over. Remember to check if the copy succeded. # shutdown now goes to single user (not really neccessary, just added security nobody gets in the way) # rm -r /usr/home/* removes the old contents and fress up some space on the old drive # umount /zusr unmounts the drive at its old location, now assuming ad1s1e isw the new disk, replace with whatever you new disk is located at # mount /dev/ad1s1e /usr/home mounts the new disk in place of the old, rapidly grwing home directory. As a last step, adjust /etc/fstab to automount your new disk at its new location. HTH -Christoph Sold To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message