From owner-freebsd-questions@FreeBSD.ORG Mon Jun 27 17:01:50 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 A982E106564A for ; Mon, 27 Jun 2011 17:01:50 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [IPv6:2607:f678:1010::34]) by mx1.freebsd.org (Postfix) with ESMTP id 8647B8FC14 for ; Mon, 27 Jun 2011 17:01:50 +0000 (UTC) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id p5RH1mvH035863 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 27 Jun 2011 10:01:49 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id p5RH1mp1035862; Mon, 27 Jun 2011 10:01:48 -0700 (PDT) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA15280; Mon, 27 Jun 11 09:53:10 PDT Date: Mon, 27 Jun 2011 09:56:51 -0700 From: perryh@pluto.rain.com To: gyrd-se@thanelange.no Message-Id: <4e08b653.f21Zod5W+PPBQkwI%perryh@pluto.rain.com> References: <4D7F86D5012E084A@> <4e05220e.GBAaOafCcTgMjymv%perryh@pluto.rain.com> <20110626202852.6765f935@parvati.thanelange.no> In-Reply-To: <20110626202852.6765f935@parvati.thanelange.no> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: doug@safeport.com, freebsd-questions@freebsd.org Subject: Re: Dual Boot 8.2 and Windows 7 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: Mon, 27 Jun 2011 17:01:50 -0000 Gyrd Thane Lange wrote: > On Fri, 24 Jun 2011 16:47:26 -0700 > perryh@pluto.rain.com wrote: > > > ... The code in i386/boot2 and > > lib/libstand is written to find the / (or /boot) FS on a > > BSD partition of an fdisk "primary partition" (aka slice), > > or in a GPT partition, and would need additions to handle > > fdisk "extended partitions". > > Some years ago I ran into a similar problem. I ran out of primary > partitions (using MBR-speak) and had to move FreeBSD into an extended > partition. > > Here the simple patch I wrote for the FreeBSD boot loader: > > Any thought of submitting that as a PR? > The next challenge is to find a boot manager that will pick up > FreeBSD in an extended partition. For myself I use a self patched > GRUB. (GRUB also nearly worked out of the box, but had a different > problem.) It makes sense that GRUB would understand "extended partitions" since its roots are in Linux which is often installed in extended partitions. Ideally FreeBSD should have a native solution, i.e. a version of boot2 that would understand extended partitions. Dunno without trying it if the capability could be added to the existing boot2 without exceeding available space, or if it would need a new variant. > You're welcome to have those patches as well if you need them. It would be good to get them posted somewhere. GRUB is not in the FreeBSD tree AFAIK, so send-pr is likely not all that good a method, but perhaps they could be pushed upstream to the GRUB maintainers? > Lastly I have the following in my kernel configuration file: > > include GENERIC > ... > nooptions GEOM_PART_BSD > nooptions GEOM_PART_MBR > options GEOM_BSD > options GEOM_MBR > > That is because I am not fond of the new mangled device names, > but prefer the old ones. What differences? AFAIK a disk sliced with fdisk and partitioned with bsdlabel will have partition names like ad0s1a regardless of which GEOM modules are used to process the MBR and partitions. It's only if one uses the GPT partitioning scheme instead of fdisk/bsdlabel that the disk will have partition names like ad0a.