Subject: Re: Dual boot NetBSD and Linux
To: Tobias Anderberg <>
From: scott worley <>
List: port-i386
Date: 11/06/2001 09:39:19
On Tue, 6 Nov 2001 09:07:31 +0100 (CET)
Tobias Anderberg <> wrote:

> Hi!
> Maybe I've suffered from temporary blindness or something, but I've
> spent the entire morning searching and various other
> resources for information on howto dual boot NetBSD and Linux.
> I tried the fdisk -i -c /usr/mdec/mbr_bootsel; fdisk -B, but although
> they both appear in boot menu, I'm unable to boot the Linux partition.
> I was unable to boot NetBSD from the Linux bootloader as well, so
> I must be missing something here. Maybe I must resort to another
> bootloader, like osboot?
> Any hints?
> /tba

At one time I had Linux and OpenBSD on the same disk and was able to dual boot using GRUB.

/dev/sda1 = linux /boot
/dev/sda2 = linux /
/dev/sda3 = OpenBSD slice

in GRUB's /boot/grub/menu.lst

title=OpenBSD 2.9
root (hd0,2,a)
chainloader +1

When I installed OpenBSD I answered NO to "install OpenBSD bootloader" because I already had GRUB in the disk's MBR.  I did answer YES to "install default boot code".  I assume default boot code meant OpenBSD would install bootcode into it's partition/slice which is /dev/sda3.

The GRUB command root (hd0,2,a) is:
hd0 = first physical hard disk
2 = 3rd partition. GRUB uses zero based partition numbering
a = root subpartition inside of BSD slice
chainloader +1 launches boot code in partition specified in the root line.

Maybe this will work for NetBSD too.

scott worley