From owner-freebsd-questions@FreeBSD.ORG Wed Sep 3 19:28:19 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 15A6D16A4BF for ; Wed, 3 Sep 2003 19:28:19 -0700 (PDT) Received: from asarian-host.net (mail.asarian-host.net [194.109.160.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40FE543FF9 for ; Wed, 3 Sep 2003 19:28:16 -0700 (PDT) (envelope-from admin@asarian-host.net) Comments: To protect the identity of the sender, certain header fields are either not shown, or masked. Anonymous email accounts can be requested by filling in the appropriate form at: https://asarian-host.net/cgi-bin/signup.cgi Received: (from root@localhost) by mail.asarian-host.net (8.12.9/8.12.9) id h842SEej095302 for questions@freebsd.org; Thu, 4 Sep 2003 04:28:14 +0200 (CEST) (envelope-from admin@asarian-host.net) From: Mark Message-Id: <200309040228.H842SD2K095284@asarian-host.net> Date: Thu, 04 Sep 2003 02:28:14 GMT X-Authenticated-Sender: admin@asarian-host.net X-Trace: 1ckK61fi57OH9V3j7v9P6afAmrITixgm0nfhGAqGq7/G6ymodDu+EvVRR7PFYmMO5vz6cioXnBi9mL5LLcNZtQ== X-Complaints-To: abuse@asarian-host.net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we are unable to process your complaint Organization: Asarian-host To: "Vincent Poy" , "Ruben de Groot" References: <20030903111647.D64375-100000@oahu.WURLDLINK.NET> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Auth: Asarian-host PGP signature iQEVAwUAP1ajPjFqW1BleBN9AQHblwf9Fhd9EOhNnP85QZvQ/FT4HfqWJq5lIq3y 2LiBjM+8VlwU1OLZ+sxqKSQhb3a+yYufkQ3jnbyzEU6WeakUfZ4bkNTZ25fMk1Py wmHyi4rj2KKF1CH+42lAe9E3Hp3sxAAwocPbHoT+DPxsPTmSQ94+fqCS5a4ysprp 1Z/N6BrX40qq8DzX1acfXPwzwGhv/xQs/IJU8jfXnm/N/trjnv+gAoJVooKCU6EY Q4ekwELkhCzFnOxCc4qHz6xYfMaLv+bv2acXy27t4Q6kmQrTn9Ax6fRBcmeycxSQ mrliJg6Ik1u08GtdsObCWKpcedSS5EzlKM8F0qEFQbxmx+C3dfT5wg== =NZFO cc: questions@freebsd.org cc: Joshua Oreman 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: Thu, 04 Sep 2003 02:28:19 -0000 ----- Original Message ----- From: "Vincent Poy" To: "Ruben de Groot" Cc: ; "Joshua Oreman" Sent: Wednesday, September 03, 2003 11:21 PM Subject: Re: Ghost for FreeBSD > On Wed, 3 Sep 2003, Ruben de Groot wrote: > > > On Wed, Sep 03, 2003 at 07:58:35AM -0700, Joshua Oreman typed: > > > > > > > > > > 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? > > > > You'll have to edit /etc/fstab on the mirror root partition. Then you'll > > have to tell the BIOS to boot disk1 instead of disk0. If your BIOS > > doesn't support this, you're out of luck. You'll have to switch cables > > then. If it does, no kernel changes necessary. > > > > Ruben > > Never thought about the BIOS but if he installed the FreeBSD Boot > Manager on both drives, then all he has to do to boot the second drive is > he has to hit the key to select the second drive when the Boot Manager > shows up prior to FreeBSD booting. The switching cables or even replacing > the original drive with the second drive is really only if the main drive > dies or if you wanted to use a different drive like greater capacity, > faster, etc or you didn't like the brandname of the drive for some reason. Thanks, Vincent. But what if I just made a boo-boo on the root partition? My quandary has always been that I know of no way to restore the / slice on the existing disk-set (RAID-1). I can boot off the CD, but then I am still stuck on the same / slice. Although I have not yet messed up / to the point of having to do a full restore, this might well be needed at some point (an extended power-outage, for instance, ruining the file-system). Would it work if I mounted a "spare" partition, on the same array, restore the root partition therein, and then edited /etc/fstab accordingly? It seems to me, though, that the kernel cannot possibly use /etc/fstab to determine what device the root partition will be, as /etc/fstab is itself on that root-partition. So, I then take it the MBR supplies the entry-point for FreeBSD to boot from (which will be considered the root partition), so that booting of a "spare" slice would require an edit in the MBR (which I am not too keen on doing, btw). - Mark