Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Oct 2011 21:12:55 -0700
From:      Carl Johnson <carlj@peak.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: How to dual-boot FreeBSD 9 with Linux?
Message-ID:  <87obx0306w.fsf@oak.localnet>
In-Reply-To: <1319819884.93776.YahooMailNeo@web160115.mail.bf1.yahoo.com> (Unga's message of "Fri, 28 Oct 2011 09:38:04 -0700 (PDT)")
References:  <1319819884.93776.YahooMailNeo@web160115.mail.bf1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Unga <unga888@yahoo.com> writes:

> Hi all
>
> Is any one by now successfully dual-booting FreeBSD 9 with Linux?
>
> I have tried with OpenSuse 11.4 with FreeBSD 9. OpenSuse installs
> Grub1 to mbr. Grub1 doesn't seem to support FreeBSD 9. It cannot
> recognise the file system type.
>
> Any help in this regard is very much appreciated.

It isn't very difficult and there are at least two ways to do it.
Grub1 actually does support ffs and ufs2 file systems, but the linux
distributions don't seem to include the drivers.  If you can get the
source, that should have all of them.  I think that I just got the grub
package from the FreeBSD file system and copied the additional drivers
directly into my linux grub directory, but I am not sure now.

The other way is to use the 'chainloader' command.  You just specify the
disk and partition (slice) with the root command, and then add the
commands 'chainloader +1' and 'boot'.  The chainloader command just
means to boot whatever is at the first sector of the previously
specified disk and slice.  I think the first sector of a ufs2 file
system just jumps to the loader.

The menu items from mine are just:

title           FreeBSD /boot/loader
root            (hd1,2,a)
kernel          /boot/loader
boot

title           FreeBSD chainloader
root            (hd1,2)
chainloader     +1
boot

In my case, those specifies that they use the third slice on the second
disk.  The first menu item requires that you already have the
'ufs2_stage1_5' file in your grub directory.

-- 
Carl Johnson		carlj@peak.org




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87obx0306w.fsf>