From owner-freebsd-questions@FreeBSD.ORG Mon Dec 1 12:45:30 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 1B2E116A4CF for ; Mon, 1 Dec 2003 12:45:30 -0800 (PST) Received: from web12603.mail.yahoo.com (web12603.mail.yahoo.com [216.136.173.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 1BF5743FCB for ; Mon, 1 Dec 2003 12:45:05 -0800 (PST) (envelope-from bj93542@yahoo.com) Message-ID: <20031201204504.25715.qmail@web12603.mail.yahoo.com> Received: from [128.226.68.47] by web12603.mail.yahoo.com via HTTP; Mon, 01 Dec 2003 12:45:04 PST Date: Mon, 1 Dec 2003 12:45:04 -0800 (PST) From: Dorin H To: Dan Strick In-Reply-To: <200312010555.hB15tslB000684@mist.nodomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-questions@freebsd.org Subject: Re: Solved [Re: delete first partition XP and reformat as ufs -> kernel not found] 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: Mon, 01 Dec 2003 20:45:30 -0000 > > The problem was that the new XP partition, not ^^^ Oops, mistype: I was talking about the new FreeBSD partition. > > The second stage FreeBSD boostrap program, "boot2", > assumes that the the > slice being booted is the FreeBSD slice with the > active partition flag > set or (if no FreeBSD slice has the active partition > flag) the first > FreeBSD slice. If you have two FreeBSD slices on a > single disk and your > MBR (master bootstrap record) program does not > rewrite the MBR with the > active flag set for the selected slice before it > runs boot2, either > because you have disabled that feature with the > boot0cfg command or > because you are not using the FreeBSD boot0 MBR > program, then boot2 > could very easily try to boot the wrong slice. > > If I understand your email, you must have run afoul > of the fragile > assumptions made by boot2. What program were you > using for the master > bootstrap? Do you know which slice had the active > partition flag? > I am using the Debian lilo in MBR to select which os I should boot. Initially was: ad0s1 XP * marked as bootable ad0s2Swap Debian Debian / FreeBSD (swap, /) * marked as bootable Everything was fine. I needed space for FreeBSD, so went into /stand/sysinstall and delete XP; recreate a new FreeBSD slice, press W to save it into MBR, forgot the pesky "bootable" flag, return to FreeBSD, and before creating any partition in the new FreeBSD slice, now first, I rebooted. In MBR I had: FreeBSD (no slices) * marked as bootable Swap Debian Debian / FreeBSD (swap, /) * marked as bootable In this moment, the FreeBSD doesn't boot anymore. From fixit/live cd, I reset the bootable flag for first slice and the system booted finely well. I was hoping that I can specify in the boot2 prompt the correct partition, on ad0s4 > Dan Strick > strick@covad.net __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/