From owner-freebsd-questions@FreeBSD.ORG Wed Aug 22 15:27:46 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51A3B16A419 for ; Wed, 22 Aug 2007 15:27:46 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id D9E1213C4F4 for ; Wed, 22 Aug 2007 15:27:45 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id l7MFNQWo056361; Wed, 22 Aug 2007 11:23:26 -0400 (EDT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id l7MFNQ3Q056360; Wed, 22 Aug 2007 11:23:26 -0400 (EDT) (envelope-from jerrymc) Date: Wed, 22 Aug 2007 11:23:26 -0400 From: Jerry McAllister To: Christopher Key Message-ID: <20070822152326.GF56142@gizmo.acns.msu.edu> References: <46CC1DB7.7040506@cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46CC1DB7.7040506@cam.ac.uk> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD MBRs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2007 15:27:46 -0000 On Wed, Aug 22, 2007 at 12:27:51PM +0100, Christopher Key wrote: > Hello, > > I've a machine with 3 SATA drives. The first (ad8) with a standard > FreeBSD install in a single slice with /boot/boot0 MBR. The remaining > two drives (ad10, ad12) are in a RAID1 mirror with 3 slices, and used > for storing data. They have the /boot/mbr MBR. > > After booting off various USB flash drives to try and update the BIOS on > my machine, it got into a state where during startup, it would display > 'Missing operating system' and hang. What seems to have been happening > is that it was trying to boot from one of my data store drives, despite > the boot order of the disks set in the BIOS. > > The only solution that I found was to start booting from a USB flash > drive with a boot0 MBR, and to hit F5 to change to booting from my first > drive After this, the machine then reboots quite happily until I hit F5 > again, in which case I get the same 'Missing operating behavior'. This > persists even while power cycling the machine. > > I had imagined the boot process to be entirely stateless, certainly > across power cycles. The BIOS executes the MBR on the first drive in > its boot boot. The boot0 MBR then allowed you to either execute the > boot sector from any of the slices on the current drive, or to execute > the MBR from the next drive in the list. > > However, this clearly isn't what's happening. Is it boot0 remembering > my F5 key stroke, or is it more likely that the BIOS is remembering > something? Does anyone have any recommendations to avoid this in the > future? Is putting boot0 on all three drives a good idea perhaps? I am having a little trouble following the narrative here, but maybe I can comment on a couple of specific questions. The system does record your most recent menu choice and the next time it will be the default if you don't hit another one during the countdown. This makes it default to trying to boot the way it last booted. You only need an MBR on disks that will be booted. I don't know as it will actually hurt anything to write an MBR on non-boot, data only disks, but it can garbage up you menu with non-functional choices. Those other disk with an MBR show up as an F5 and maybe F6, etc (I've never had more than two at a time) in the menu, but then if you hit F5, it won't be able to go anywhere, because there is no real boot stuff on that disk. ////jerry > > Regards, > > Chris > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"