From owner-freebsd-questions@FreeBSD.ORG Sat Jan 28 12:08:03 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 38595106566C for ; Sat, 28 Jan 2012 12:08:03 +0000 (UTC) (envelope-from kayasaman@gmail.com) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id B8B638FC15 for ; Sat, 28 Jan 2012 12:08:02 +0000 (UTC) Received: by wibhn14 with SMTP id hn14so3109817wib.13 for ; Sat, 28 Jan 2012 04:08:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=6Aw/95of1MgIOWFy+KxTgIqSRYT58XO8l0ZFEafzKcY=; b=JpFL7UUH675Uf65LZLmCHh6LnmDmPRr6wONTE1ZreJKzeg6X0jPzuq9dvFycAO+GRW rSeaX0k0hmiWmmfxUF6bfUkIB5r2rc2cZTrb/23kgsMY8WKRBc2cbnvA8pBUrQ43071y TlWBXaL1zfD48petrU6uImDYk+qWp8jmagAg4= Received: by 10.180.102.169 with SMTP id fp9mr16814069wib.9.1327752481783; Sat, 28 Jan 2012 04:08:01 -0800 (PST) Received: from X220.optiplex-networks.com (81-178-2-118.dsl.pipex.com. [81.178.2.118]) by mx.google.com with ESMTPS id bj10sm17670834wib.9.2012.01.28.04.08.00 (version=SSLv3 cipher=OTHER); Sat, 28 Jan 2012 04:08:00 -0800 (PST) Message-ID: <4F23E51F.8080908@gmail.com> Date: Sat, 28 Jan 2012 12:07:59 +0000 From: Kaya Saman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111222 Thunderbird/9.0 MIME-Version: 1.0 To: Bas Smeelen References: <4F2317DA.6010508@gmail.com> <20120128095412.03a18132@mpw> In-Reply-To: <20120128095412.03a18132@mpw> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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 12:08:03 -0000 On 01/28/2012 08:54 AM, Bas Smeelen wrote: > 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 > Thanks for the response!! Actually I got this working but eventually was up for nearly 24 hours which meant I was too tired to post back here :-) My Grub is just weird! Which is why I couldn't work things out. For anyone running Fedora 16 or alike this may help; I have this partition layout: 1. FreeBSD UFS2 4. Extended Partition 5. Linux / Ext4 2 Linux Swap 3 Linux JFS Don't ask why 4,5 partitions but Fedora installer took over and left me with no control otherwise Fedora should have been on 2. Now the Grub entry is as follows: menuentry 'FreeBSD 9.0' { insmod part_msdos set root='(hd0,msdos1)' chainloader +1 } I have no idea why my version of grub is sooo different from everyone elses as finding many dualboot bsd/linux combos with Grub entries being more like yours, Bas, this is certainly puzzling. Anyhow the situation is solved :-) Regards, Kaya