Subject: Re: booting NetBSD - multi OS laptop
To: None <pavel.cahyna@st.mff.cuni.cz, current-users@netbsd.org>
From: Chavdar Ivanov <ci4ic4@gmail.com>
List: current-users
Date: 02/23/2006 23:33:26
2006/2/23, Pavel Cahyna <pavel.cahyna@st.mff.cuni.cz>:
> On Tue, Feb 21, 2006 at 07:21:27PM +0000, Glenn Becker wrote:
> >
> > Thanks all for the responses -
> >
...
> > OK, I had
> >
> > rootnoverify (hd0,4)
> > makeactive
> > chainloader +1
> > boot
>
> I had a very similar setup - Win 2000 in a primary partition, Linux too,
> and NetBSD in the extended partition. Grub was in MBR, booting Linux
> natively and Win 2000 and NetBSD via chainloading. It worked without
> problems. (The Windows partition was active.)
>
> I think that config lines for grub were something like
>
> rootnoverify (hd0,4,a)
> makeactive
> chainloader +1
> boot
>
> Pavel
>

You don't need to chainload -current any more - as long as you have
'options MULTIBOOT' in the kernel; my menu.lst is as follows:

-----

splashimage /grub/os-boot.xpm
foreground  =3D 5381a1
background  =3D e0e0e0
color light-gray/blue black/light-gray
default 2
timeout 10

title W2K
rootnoverify (hd0,1)
makeactive
chainloader +1
boot

title NetBSD-chain
root (hd0,2,a)       # NetBSD on 3rd MBR partition of 1st IDE disk
chainloader +1

title NetBSD
root (hd0,2,a)
kernel /netbsd console=3Dpc root=3Dwd0a

title NetBSD-single
root (hd0,2,a)
kernel /netbsd -s console=3Dpc root=3Dwd0a

title NetBSD-conf
root (hd0,2,a)
kernel /netbsd -c console=3Dpc root=3Dwd0a

title NetBSD-old
root (hd0,2,a)
kernel /onetbsd -c console=3Dpc root=3Dwd0a

----------------

(the splashimage bit doesn't work here - it's from another Solaris 10
setup; there is still an entry with chainloader, but the default is
the direct one; then there is the vesa splash image - and straight
into [kg]dm boot - nice, actually).

This is the latest grub-0.97nb5 from pkgsrc.

Chavdar