From owner-freebsd-questions@FreeBSD.ORG Sat Jan 28 08:54:26 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0183C106566B for ; Sat, 28 Jan 2012 08:54:26 +0000 (UTC) (envelope-from b.smeelen@ose.nl) Received: from mail.ose.nl (mail.ose.nl [212.178.134.164]) by mx1.freebsd.org (Postfix) with ESMTP id 91EF98FC13 for ; Sat, 28 Jan 2012 08:54:25 +0000 (UTC) X-Footer: b3NlLm5s Received: from localhost ([127.0.0.1]) by mail.ose.nl (using TLSv1/SSLv3 with cipher AES128-SHA (128 bits)); Sat, 28 Jan 2012 09:54:22 +0100 Date: Sat, 28 Jan 2012 09:54:12 +0100 From: Bas Smeelen To: kayasaman@gmail.com Message-ID: <20120128095412.03a18132@mpw> In-Reply-To: <4F2317DA.6010508@gmail.com> References: <4F2317DA.6010508@gmail.com> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; i386-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Dual Booting Linux with FreeBSD 9.0 - Grub in MBR X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jan 2012 08:54:26 -0000 On Fri, 27 Jan 2012 21:32:10 +0000 Kaya Saman wrote: > Hi, > > am just wondering if anyone has successfully managed to boot FreeBSD > 9.0 and Linux. > > I run Fedora 16 x64 with Grub installed in my MBR. > > FBSD9 installed as the new disk scheme GPT..... I think (I manually > partitioned as my disk is quite crowded). > > Anyway I found this: > > http://lists.freebsd.org/pipermail/freebsd-questions/2011-October/234858.html > > and at the moment I have this in my Grub config: > > menuentry 'FreeBSD 9.0' { > set root=(ada0,1,a) > kfreebsd /boot/loader > boot > } > > But unfortunately no boot :-( > > > I have tried using (hd0,0), (hd0,1,a), (hd0,0,a), and (hd0,a) but > unfortunately nothing is working. > > > The Grub version is 2. > > > Can anyone help me? > Hi I have the following partition layout P1 linux swap P2 FreeBSD P3 linux P4 extended which holds 2 more linux partitions FreeBSD 9 installed on P2 and the FreeBSD bootloader on P2 In /etc/grub.d/40_custom I have put the following: menuentry "FreeBSD" { set root=(hd0,2) chainloader +1 } Then run update-grub as root. The (hd0,2) entry means first harddisk (this laptop only has one) and the second partition, which holds the FreeBSD bootloader that gets loaded with the enry chainloader +1. This works for me. Hope it helps. I think with the way you have the setup now, a module must be loaded first in the grub config. Insmod ufs or similair. Disclaimer: http://www.ose.nl/email