From owner-freebsd-geom@FreeBSD.ORG Mon Aug 17 16:29:46 2009 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05719106568F for ; Mon, 17 Aug 2009 16:29:46 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout029.mac.com (asmtpout029.mac.com [17.148.16.104]) by mx1.freebsd.org (Postfix) with ESMTP id E65238FC6F for ; Mon, 17 Aug 2009 16:29:45 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii; format=flowed Received: from macbook-pro.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp029.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KOJ00EGK4HIKH10@asmtp029.mac.com> for freebsd-geom@freebsd.org; Mon, 17 Aug 2009 09:29:45 -0700 (PDT) From: Marcel Moolenaar In-reply-to: <4A579076.5070008@wagsky.com> Date: Mon, 17 Aug 2009 09:29:41 -0700 Message-id: References: <4A578E3F.8050305@wagsky.com> <4A579076.5070008@wagsky.com> To: Jeff Kletsky X-Mailer: Apple Mail (2.1074) Cc: freebsd-geom@freebsd.org Subject: Re: 7.x and 8.0 gpt and gpart GPT PMBR prevents Intel boot X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Aug 2009 16:29:46 -0000 On Jul 10, 2009, at 12:03 PM, Jeff Kletsky wrote: *snip* > The PR indicates patches for the CHS issue for gpt. For gpart, the > code is in /usr/src/sys/geom/part/g_part_gpt.c and, I believe, should > be modified to read > > le16enc(table->mbr + DOSMAGICOFFSET, DOSMAGIC); > table->mbr[DOSPARTOFF + 1] = 0x01; /* shd */ > table->mbr[DOSPARTOFF + 2] = 0x01; /* ssect */ > table->mbr[DOSPARTOFF + 3] = 0x00; /* scyl */ > table->mbr[DOSPARTOFF + 4] = 0xee; /* typ */ > table->mbr[DOSPARTOFF + 5] = 0xff; /* ehd */ > table->mbr[DOSPARTOFF + 6] = 0xff; /* esect */ > table->mbr[DOSPARTOFF + 7] = 0xff; /* ecyl */ > le32enc(table->mbr + DOSPARTOFF + 8, 1); /* start */ > le32enc(table->mbr + DOSPARTOFF + 12, MIN(last, 0xffffffffLL)); *snip* > In my opinion, these issues should be considered for inclusion in the > 8.0-RELEASE -- at the very least, the 0xffffff issue, as it cannot > easily be resolved from the command line. This particular change will be in 8.0-RELEASE. Making the EFI GPT slice active is questionable and such has not been done. As you said, there's a simple work-around for it by using fdisk. 7-STABLE needs addressing still. FYI, -- Marcel Moolenaar xcllnt@mac.com