From owner-freebsd-questions@FreeBSD.ORG Sat Oct 29 04:12:58 2011 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 ED6551065670 for ; Sat, 29 Oct 2011 04:12:58 +0000 (UTC) (envelope-from carlj@peak.org) Received: from redcondor1.peak.org (redcondor1.peak.org [69.59.192.54]) by mx1.freebsd.org (Postfix) with ESMTP id BBA878FC14 for ; Sat, 29 Oct 2011 04:12:58 +0000 (UTC) Received: from zmail-mta02.peak.org ([207.55.16.112]) by redcondor1.peak.org ({e03e86cd-14ae-47ce-9578-3c080ce9c462}) via TCP (outbound) with ESMTP id 20111029041258097 for ; Sat, 29 Oct 2011 04:12:58 +0000 X-RC-FROM: X-RC-RCPT: Received: from maple.localnet (unknown [207.55.106.132]) by zmail-mta02.peak.org (Postfix) with ESMTPSA id D6A39489003 for ; Fri, 28 Oct 2011 21:12:57 -0700 (PDT) Received: from oak.localnet (oak.localnet [IPv6:2001:1938:266::6f:616b]) by maple.localnet (Postfix) with ESMTP id DCFB861F71 for ; Fri, 28 Oct 2011 21:12:55 -0700 (PDT) Received: from oak.localnet (localhost.localnet [127.0.0.1]) by oak.localnet (Postfix) with ESMTP id B3202BFD6 for ; Fri, 28 Oct 2011 21:12:55 -0700 (PDT) Received: (from carlj@localhost) by oak.localnet (8.14.4/8.14.4/Submit) id p9T4Ctkl072870; Fri, 28 Oct 2011 21:12:55 -0700 (PDT) (envelope-from carlj@peak.org) X-Authentication-Warning: oak.localnet: carlj set sender to carlj@peak.org using -f From: Carl Johnson To: freebsd-questions@freebsd.org References: <1319819884.93776.YahooMailNeo@web160115.mail.bf1.yahoo.com> Mail-Followup-To: freebsd-questions@freebsd.org Date: Fri, 28 Oct 2011 21:12:55 -0700 In-Reply-To: <1319819884.93776.YahooMailNeo@web160115.mail.bf1.yahoo.com> (Unga's message of "Fri, 28 Oct 2011 09:38:04 -0700 (PDT)") Message-ID: <87obx0306w.fsf@oak.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: How to dual-boot FreeBSD 9 with Linux? 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, 29 Oct 2011 04:12:59 -0000 Unga 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