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" <[EMAIL PROTECTED]> 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
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel