Subject: Re: restoring bootselect
To: None <netbsd-help@netbsd.org>
From: Russell McManus <russell_mcmanus@yahoo.com>
List: netbsd-help
Date: 06/21/2003 21:59:00
bouyer@antioche.eu.org (Manuel Bouyer) writes:

> On Thu, Jun 19, 2003 at 10:08:11PM -0400, Russell McManus wrote:
> > 
> > I just installed xp on my i386 laptop, which also used to boot NetBSD
> > 1.6I.  Of course during the install XP overwrote the boot loader
> > (savages).  So in an attempt to fix things, I booted from a NetBSD
> > boot disk, and from there to the kernel on my NetBSD partition.
> > 
> > As root, I ran fdisk -B, and wrote out new bootselect code, with a 5
> > sec delay and an option for xp and one for netbsd.  This was easy, I
> > thought. Chyah. But the box still goes straight into XP!  No nice 5
> > second delay, no nice little menu, nothing.
> > 
> > I'm missing something easy.  Any ideas what I'm doing wrong?
> 
> fdisk -B will check that the boot code config (in sector 1) it there, and
> not update the boot code if it is. XP only touched sector 0, so fdisk -B thinks
> the right boot code is still here.
> fdisk -i -c /usr/mdec/mbr_bootsel
> should reinstall the right boot code.

Thanks, this worked.

-russ