From owner-freebsd-geom@FreeBSD.ORG Mon Mar 8 22:52:55 2010 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 D61D3106566C for ; Mon, 8 Mar 2010 22:52:55 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout023.mac.com (asmtpout023.mac.com [17.148.16.98]) by mx1.freebsd.org (Postfix) with ESMTP id BC6758FC28 for ; Mon, 8 Mar 2010 22:52:55 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii Received: from macbook-pro.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp023.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KYZ00152JK6MM40@asmtp023.mac.com> for freebsd-geom@freebsd.org; Mon, 08 Mar 2010 14:52:55 -0800 (PST) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1003080209 From: Marcel Moolenaar In-reply-to: <4B956533.2010900@icyb.net.ua> Date: Mon, 08 Mar 2010 14:52:54 -0800 Message-id: References: <3158041B-8E00-4A87-8172-741C0AE57131@mac.com> <4B954367.3070804@icyb.net.ua> <4B9544B3.80203@icyb.net.ua> <03BFAAEC-6C59-48EF-BED9-2E68ED03E2B6@mac.com> <4B956533.2010900@icyb.net.ua> To: Andriy Gapon X-Mailer: Apple Mail (2.1077) Cc: Pete French , freebsd-geom@freebsd.org Subject: Re: another gpt vs mbr (sanity) check 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, 08 Mar 2010 22:52:55 -0000 On Mar 8, 2010, at 12:59 PM, Andriy Gapon wrote: > on 08/03/2010 22:23 Marcel Moolenaar said the following: >> On Mar 8, 2010, at 10:40 AM, Andriy Gapon wrote: >> >>> on 08/03/2010 20:36 Marcel Moolenaar said the following: >>>> On Mar 8, 2010, at 10:35 AM, Andriy Gapon wrote: >>>> >>>>> on 08/03/2010 19:55 Marcel Moolenaar said the following: >>>>>> On Mar 8, 2010, at 9:48 AM, Pete French wrote: >>>>>>> The queston is then, why isn't Windows treating it as GPT ? >>>>>> Ask Microsoft. So far I've only seen violations to the spec. At >>>>>> least Apple kept to the spirit of it... >>>>> According to my understanding it's the opposite as much as I hate saying this. >>>>> My understanding is that valid GPT scheme _must_ provide only a protective MBR, >>>>> i.e. MBR where there is only partition and it is of type 0xEE. >>>>> That is, any "hybrid MBR" is not a valid GPT scheme. >>>>> Google turns up a lot of stuff on this topic. >>>> Exactly. That is exactly the violation of the spec I was referring >>>> to. >>> I am not which part of what I said you meant by 'that'. >> >> All of it. > This hasn't added any clarity. > > So I'll just post one link about what position Apple had (note the past tense) > about protective MBR: > http://developer.apple.com/mac/library/technotes/tn2006/tn2166.html#SECPROTECTIVEMBR The document describes theory, but does not seem to describe reality: Revision 1.39: download - view: text, markup, annotated - select for diffs Mon Jun 26 00:32:54 2006 UTC (3 years, 8 months ago) by sobomax Branches: MAIN Diff to: previous 1.38: preferred, colored Changes since revision 1.38: +24 -5 lines Improve check for protective MBR. Instead of assiming that protective MBR should have only one entry of type 0xEE, consider protective MBR to be one, that has at least one entry of type 0xEE covering the whole unit. This makes GEOM_GPT compatible with disks partitioned by the Apple's BootCamp. Approved in principle by: marcel MFC After: 1 month In short, Apple bootcamp creates an invalid PMBR according to their own technote. FYI, -- Marcel Moolenaar xcllnt@mac.com