Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Jul 2004 22:11:21 +0200
From:      Geert Hendrickx <geert.hendrickx@ua.ac.be>
To:        Bruce Hunter <freebsd@solisix.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Grub installation from the ports collection vs. Freebsd boot loader
Message-ID:  <20040703201121.GA2170@lori.mine.nu>
In-Reply-To: <1088881267.32068.16.camel@solid.solisixoffice.com>
References:  <1088881267.32068.16.camel@solid.solisixoffice.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> Here is my hard drive setup
> ----------------------------
> Partition 0 ) 5g: Windows 2k
> Partition 1 ) 35g: Freebsd 5.2.1

In this case, your grub.config would look like this: 

	default 1
	timeout 30
	
	title Windows 2000
	root (hd0,0)
	makeactive
	chainloader +1
	
	title FreeBSD 5.2.1
	root (hd0,2,a)
	kernel /boot/loader

It does the following: after 30 seconds, FreeBSD will be booted by
default (0 is Windows and 1 is FreeBSD).  Both OS'es reside on the first
disk (hd0), Windows on the first partition of it (hd0,0).  You can't
load Windows' kernel from Grub, you just have to chainload the Windows-
partition, that's what makeactive and chainloader +1 do.  Your
FreeBSD-slice is de second partition (hd0,2), and I assume your root is
the first partition on that, which is (hd0,2,a) in Grub's terminology.
You then load /boot/loader (FreeBSD's bootloader) because you do not
want to skip your boot-configuration.  You could also boot your kernel
directly with kernel /kernel but this is not recommended.  

Grub has many more options (graphical boot splashes for example), you
really should check out the documentation.  But you can already set
things up with this simple configuration file.  

Let me know if it works, 

GH



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