From owner-freebsd-questions Mon Feb 12 19:32:46 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cody.jharris.com (cody.jharris.com [205.238.128.83]) by hub.freebsd.org (Postfix) with ESMTP id A457837B491 for ; Mon, 12 Feb 2001 19:32:43 -0800 (PST) Received: from localhost (nick@localhost) by cody.jharris.com (8.11.1/8.9.3) with ESMTP id f1D3tJ965522; Mon, 12 Feb 2001 21:55:19 -0600 (CST) (envelope-from nick@rogness.net) Date: Mon, 12 Feb 2001 21:55:18 -0600 (CST) From: Nick Rogness X-Sender: nick@cody.jharris.com To: Brad W Cc: questions@FreeBSD.ORG Subject: Re: Transfer disk space form /usr to root partition In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 12 Feb 2001, Nick Rogness wrote: Forgot to mention some minor detail...see bottom of message. [snip] > 1) Add a new disk to the system > 2) fdisk and disklabel it (via /stand/sysinstall or manually) > 3) mount the filesystem(s) on the new disk > (example: Where ad1 is the new disk) > > # mount /dev/ad1s1a /mnt > # mount /dev/ad1s1f /mnt/usr > # mount /dev/ad1s1e /mnt/var > > 4) Dump the data and restore it. This copies your existing > filesystems to the new disk, example: > > # dump 0af - / |(cd /mnt;restore xf -) > # dump 0af - /usr |(cd /mnt/usr;restore xf -) > # dump 0af - /var |(cd /mnt/var;restore xf -) > > 5) edit and change your /etc/fstab file to reflect the new > changes, save it and reboot! Forgot to mention that you will need to swap the location of the drives on your ide chain...swap new disk with old...then reboot. Nick Rogness - Keep on routing in a Free World... "FreeBSD: The Power to Serve!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message