From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KbMn1-00048G-Io for mharc-grub-devel@gnu.org; Thu, 04 Sep 2008 17:54:55 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbMmz-00047Z-Lq for grub-devel@gnu.org; Thu, 04 Sep 2008 17:54:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbMmz-000475-3l for grub-devel@gnu.org; Thu, 04 Sep 2008 17:54:53 -0400 Received: from [199.232.76.173] (port=50592 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbMmy-00046z-TM for grub-devel@gnu.org; Thu, 04 Sep 2008 17:54:52 -0400 Received: from fg-out-1718.google.com ([72.14.220.154]:20019) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KbMmu-0006aq-RY for grub-devel@gnu.org; Thu, 04 Sep 2008 17:54:51 -0400 Received: by fg-out-1718.google.com with SMTP id l26so574217fgb.30 for ; Thu, 04 Sep 2008 14:54:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=xnTn9W7WVQMpJcha1lHgqYkcri0+wiUf0Ty0GW8T5p4=; b=SsXWnaFcc+VvuNcLr+Pi9/PMCd9FlFH+u3PJNPV9S4AFKSBnCJuTVlbTZ+iQ7bvlRx MJq+8mUR9GnCZXbtaLIWj7eZaApoD+RBJ+GQeO44fTLu+hk4dUAbgE7sp4gpPweVMD7+ GWMnvcC9i5Vx5781xzSunGDjX/pnJH/NPgPg8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=j+KOGEwnrWNfFDgivD4ryEqyc/pEUTCbAPBDAfiaJF0QXott6cGQ6A0pmleWGCg+V0 coE176UQcSdwGQP0POAOm/pUh1KevKGb5W3gdieWQHfLtx79GTvGb/tYjTlOpVT/IZso dXz2jQD6Iqc61bkJ9pLG4PQTskOzA3XmW3bkY= Received: by 10.86.28.2 with SMTP id b2mr8149018fgb.31.1220565287899; Thu, 04 Sep 2008 14:54:47 -0700 (PDT) Received: from ?192.168.1.15? ( [85.0.144.99]) by mx.google.com with ESMTPS id 3sm117755fge.3.2008.09.04.14.54.44 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 04 Sep 2008 14:54:46 -0700 (PDT) Message-ID: <48C05923.3060001@gmail.com> Date: Thu, 04 Sep 2008 23:54:43 +0200 From: phcoder User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: The development of GRUB 2 References: <48BED2B2.1060000@gmail.com> <20080904194015.GF9133@thorin> In-Reply-To: <20080904194015.GF9133@thorin> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: Multiple partition maps X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Sep 2008 21:54:54 -0000 BTW GPT module checks the protective MBR. In some cases when legay OS modified the MBR it's no longer "protective MBR". And in theese cases GRUB will refuse to boot. Isn't the magic number check enough? Vladimir 'phcoder' Serbinenko Robert Millan wrote: > On Wed, Sep 03, 2008 at 08:08:50PM +0200, phcoder wrote: >> Hello. I was looking at the grub code and seen that if a disk has >> multiple partition tables (e.g. macintel with bootcamp) then only first >> one will be detected. In some cases it can lead to unreachable >> partitions if for some reason partition is present only in one table. >> Does anyone has an idea how theese cases may be treated compactly and >> efficiently? > > Strictly speaking, GPT+MSDOS hybrid tables are a violation of the GPT > specification. It's not clear what would be the "correct" way of handling > them. > > Since we're not a legacy program, I suppose the sane thing to do would be > to abort MSDOS probing if a protective DOS partition (0xee) is found, and > then only GPT will be used. > > Isn't this what GRUB does already? I thought it would be... >