From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1FYVNm-0003Fr-Cy for mharc-grub-devel@gnu.org; Tue, 25 Apr 2006 17:47:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FYVNk-0003D6-V6 for grub-devel@gnu.org; Tue, 25 Apr 2006 17:47:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FYVNj-0003BC-FT for grub-devel@gnu.org; Tue, 25 Apr 2006 17:47:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYVNj-0003Aq-7l for grub-devel@gnu.org; Tue, 25 Apr 2006 17:47:39 -0400 Received: from [66.187.233.31] (helo=mx1.redhat.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FYVQG-00074S-Tr for grub-devel@gnu.org; Tue, 25 Apr 2006 17:50:17 -0400 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k3PLlXc6023036 for ; Tue, 25 Apr 2006 17:47:33 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.11.6) with ESMTP id k3PLlXqe030992 for ; Tue, 25 Apr 2006 17:47:33 -0400 Received: from localhost.localdomain (vpn83-153.boston.redhat.com [172.16.83.153]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id k3PLlWa8016975 for ; Tue, 25 Apr 2006 17:47:33 -0400 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.13.6/8.13.4) with ESMTP id k3PLlX4s014555 for ; Tue, 25 Apr 2006 17:47:34 -0400 From: Peter Jones To: The development of GRUB 2 In-Reply-To: <87hd4hjt01.fsf@xs4all.nl> References: <200604252144.25598.okuji@enbug.org> <87hd4hjt01.fsf@xs4all.nl> Content-Type: text/plain Organization: Red Hat, Inc. Date: Tue, 25 Apr 2006 17:47:33 -0400 Message-Id: <1146001653.14889.45.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 (2.6.1-2) Content-Transfer-Encoding: 7bit Subject: Re: counting partitions in gpt partition map 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: Tue, 25 Apr 2006 21:47:41 -0000 On Tue, 2006-04-25 at 22:32 +0200, Marco Gerards wrote: > "Yoshinori K. Okuji" writes: > > > Why does the gpt partition map count partitions from one instead of zero, > > unlike other partition maps in GRUB? I don't object to changing the base > > number to one in GRUB 2, but they should be at least consistent. > > This most likely would be a bug, if this is the case. I haven't > really tested things on a partition map that is actually in use. > Perhaps it's that or clumsiness that introduced this. > > IIRC the first partition is one with a special meaning, perhaps it is > that? Well, the encapsulating partition table has one sentinel value in it, and if you're using EFI you might have EFI boot partitions. The former you really wouldn't want to count, the latter you would. -- Peter