From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HkKJR-0001zX-O6 for mharc-grub-devel@gnu.org; Sat, 05 May 2007 09:28:37 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HkKJP-0001zH-7y for grub-devel@gnu.org; Sat, 05 May 2007 09:28:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HkKJN-0001yt-PB for grub-devel@gnu.org; Sat, 05 May 2007 09:28:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HkKJN-0001yp-IW for grub-devel@gnu.org; Sat, 05 May 2007 09:28:33 -0400 Received: from smtp-vbr12.xs4all.nl ([194.109.24.32]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HkKCc-0002NY-DZ for grub-devel@gnu.org; Sat, 05 May 2007 09:21:34 -0400 Received: from localhost.localdomain (249-174.surfsnel.dsl.internl.net [145.99.174.249]) by smtp-vbr12.xs4all.nl (8.13.8/8.13.8) with ESMTP id l45DLXFo001340 for ; Sat, 5 May 2007 15:21:33 +0200 (CEST) (envelope-from mgerards@xs4all.nl) From: Marco Gerards To: The development of GRUB 2 References: <20070501191808.GA19766@aragorn> <871whxouby.fsf@xs4all.nl> <20070504230555.GA17479@aragorn> Mail-Copies-To: mgerards@xs4all.nl Date: Sat, 05 May 2007 15:21:38 +0200 In-Reply-To: <20070504230555.GA17479@aragorn> (Robert Millan's message of "Sat, 5 May 2007 01:05:55 +0200") Message-ID: <87fy6bo17h.fsf@xs4all.nl> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by XS4ALL Virus Scanner X-detected-kernel: FreeBSD 4.6-4.9 Subject: Re: GPT on PC/BIOS computers 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: Sat, 05 May 2007 13:28:35 -0000 Robert Millan writes: [...] > I've looked into this, but I need some advice. What's the simplest way to > obtain the corresponding grub_partition_t structure for a partition by knowing > its drive name? You can use grub_partition_iterate. Or open the disk and use ->partition. You can read the name of the partitioning scheme. The is also done in grub-setup.c, in the code you altered. -- Marco