From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1GDBcR-0005Bq-KW for mharc-grub-devel@gnu.org; Tue, 15 Aug 2006 22:58:59 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GDBcQ-0005Bi-Ex for grub-devel@gnu.org; Tue, 15 Aug 2006 22:58:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GDBcP-0005B8-AJ for grub-devel@gnu.org; Tue, 15 Aug 2006 22:58:57 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GDBcP-0005B4-5x for grub-devel@gnu.org; Tue, 15 Aug 2006 22:58:57 -0400 Received: from [143.182.124.21] (helo=azsmga101-1.ch.intel.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GDBiZ-00057P-Cj for grub-devel@gnu.org; Tue, 15 Aug 2006 23:05:19 -0400 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101-1.ch.intel.com with ESMTP; 15 Aug 2006 19:58:54 -0700 Received: from unknown (HELO [10.239.24.40]) ([10.239.24.40]) by azsmga001.ch.intel.com with ESMTP; 15 Aug 2006 19:57:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: i="4.08,129,1154934000"; d="scan'208"; a="103505084:sNHT1254983744" Message-ID: <44E2898D.7040705@intel.com> Date: Wed, 16 Aug 2006 10:57:17 +0800 From: "bibo,mao" User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: The development of GRUB 2 References: <44D2DA8F.7030300@intel.com> <200608102116.00251.okuji@enbug.org><87irkyhr66.fsf@night.trouble.net> <200608151421.31562.okuji@enbug.org> In-Reply-To: <200608151421.31562.okuji@enbug.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: EFI disk probing problem 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: Wed, 16 Aug 2006 02:58:59 -0000 Hi, Sorry for late reply because of some other issues, here is my device mapping table, I describe it in tree format blk1 (floppy) blkA (BlockDevice cd-rom) blkB (BlockDevice harddisk) |----- blk2 (primary partition) |----- blk3 (primary partition) |----- blk4 (primary partition) |----- blk5 (extended partition) |-------- blk6 (logical partition) |-------- blk7 (logical partition) |-------- blk0 (logical partition) |-------- blk8 (logical partition) |-------- blk9 (logical partition) my harddisk is MBR partition type, blk0 is my grub FAT partition. EFI regards all partitions and disk node as block device, only that its type is different, parition block device's subtype is GRUB_EFI_MEDIA_DEVICE_PATH_TYPE, but disk nod is not, harddisk/cdrom nod type is GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE, floppy disk type is GRUB_EFI_ACPI_DEVICE_PATH_TYPE. In order to find root disk, current method is to find harddisk type device's parent device, parent device of block0 is blk5, so it will reagards blk5 as one block device. Actually it is only one extended partition. My patch discards all partition device(GRUB_EFI_MEDIA_DEVICE_PATH_TYPE). thanks bibo,mao blk1 :Floppy - Alias (null) Acpi(PNP0A03,0)/Pci(1F|0)/Acpi(PNP0604,0) blkA :BlockDevice - Alias (null) Acpi(PNP0A03,0)/Pci(1F|1)/Ata(Primary,Master) blkB :BlockDevice - Alias (null) Acpi(PNP0A03,0)/Pci(1F|2)/Ata(Primary,Master) blk2 :HardDisk - Alias (null) Acpi(PNP0A03,0)/Pci(1F|2)/Ata(Primary,Master)/HD(Part1,SigA3A3A3A3) blk3 :HardDisk - Alias (null) Acpi(PNP0A03,0)/Pci(1F|2)/Ata(Primary,Master)/HD(Part2,SigA3A3A3A3) blk4 :HardDisk - Alias (null) Acpi(PNP0A03,0)/Pci(1F|2)/Ata(Primary,Master)/HD(Part3,SigA3A3A3A3) blk5 :HardDisk - Alias (null) Acpi(PNP0A03,0)/Pci(1F|2)/Ata(Primary,Master)/HD(Part4,SigA3A3A3A3) blk6 :HardDisk - Alias (null) Acpi(PNP0A03,0)/Pci(1F|2)/Ata(Primary,Master)/HD(Part4,SigA3A3A3A3)/HD(Part1,Sig00000000) blk7 :HardDisk - Alias (null) Acpi(PNP0A03,0)/Pci(1F|2)/Ata(Primary,Master)/HD(Part4,SigA3A3A3A3)/HD(Part2,Sig00000000) blk0 :HardDisk - Alias hd31a4d fs0 Acpi(PNP0A03,0)/Pci(1F|2)/Ata(Primary,Master)/HD(Part4,SigA3A3A3A3)/HD(Part3,Sig00000000) blk8 :HardDisk - Alias (null) Acpi(PNP0A03,0)/Pci(1F|2)/Ata(Primary,Master)/HD(Part4,SigA3A3A3A3)/HD(Part4,Sig00000000) blk9 :HardDisk - Alias (null) Acpi(PNP0A03,0)/Pci(1F|2)/Ata(Primary,Master)/HD(Part4,SigA3A3A3A3)/HD(Part5,Sig00000000) Yoshinori K. Okuji wrote: > On Saturday 12 August 2006 18:09, Johan Rydberg wrote: > > "Yoshinori K. Okuji" writes: > > > I don't remember precisely, but I think I only added disk devices > but not > > > partition devices. On your system, don't disk devices as well as > > > partition devices get enumerated? > > > > I'm not 100% sure about this, but I think EFI does not have to add a > > disk device node if there is only a single logical partition on the > > disk. > > Maybe you are right. I hope Mao will comment on this. > > Okuji > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel >