From owner-freebsd-questions@FreeBSD.ORG Wed Sep 3 07:56:26 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E310116A4BF for ; Wed, 3 Sep 2003 07:56:26 -0700 (PDT) Received: from webserver.get-linux.org (adsl-64-161-78-226.dsl.lsan03.pacbell.net [64.161.78.226]) by mx1.FreeBSD.org (Postfix) with SMTP id E5D8143F3F for ; Wed, 3 Sep 2003 07:56:25 -0700 (PDT) (envelope-from oremanj@webserver.get-linux.org) Received: (qmail 29397 invoked by uid 1000); 3 Sep 2003 14:58:35 -0000 Date: Wed, 3 Sep 2003 07:58:35 -0700 From: Joshua Oreman To: Mark Message-ID: <20030903145835.GB29257@webserver> References: <20030903021608.B64375-100000@oahu.WURLDLINK.NET> <200309031312.H83DCO2K062567@asarian-host.net> <20030903141048.GC28275@webserver> <200309031427.H83ER32K066903@asarian-host.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200309031427.H83ER32K066903@asarian-host.net> User-Agent: Mutt/1.4.1i cc: questions@freebsd.org Subject: Re: Ghost for FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2003 14:56:27 -0000 On Wed, Sep 03, 2003 at 02:27:03PM +0000 or thereabouts, Mark wrote: > ----- Original Message ----- > From: "Joshua Oreman" > To: "Mark" > Cc: > Sent: Wednesday, September 03, 2003 4:08 PM > Subject: Re: Ghost for FreeBSD > > > > > > cd /mnt/root > > > > /sbin/dump -L -f- /|restore -rf- > > > > cd /mnt/var > > > > /sbin/dump -L -f- /var|restore -rf- > > > > cd /mnt/usr > > > > /sbin/dump -L -f- /usr|restore -rf- > > > > > > I have heard this before, but I never understand this part. :) How > > > does creating a /mnt/root directory, and restoring in that directory > > > get my / slice back? Then the restored data will just sit > > > in /mnt/root! What good does it there? > > > > > > Or should I create /mnt/root as partition, about equal in size to the > root > > > To mirror the root partition to another: > > # mkdir /mnt/root > > # mount /dev/ /mnt/root > > # cd /mnt/root > > # /sbin/dump -f- / | restore -rf- > > > > You will not *need* to umount the root partition. > > Ok; what you have done is made a dump on the root mirror device; great! But > how do I now tell FreeBSD to use that "restored" partition as /? Edit > /etc/fstab to effect the change for the next boot? I have a nagging > suspicion it will then still boot off the old / slice. Ah, that's right. You have to edit /etc/fstab *AND* tell the kernel. I'm not sure exactly what you need to do to boot from a different root device; maybe someone will fille me in? -- Josh > > - Mark