From: "bibo,mao" <bibo.mao@intel.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: EFI disk probing problem
Date: Wed, 16 Aug 2006 10:57:17 +0800 [thread overview]
Message-ID: <44E2898D.7040705@intel.com> (raw)
In-Reply-To: <200608151421.31562.okuji@enbug.org>
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" <okuji@enbug.org> 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
>
prev parent reply other threads:[~2006-08-16 2:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-04 5:26 EFI disk probing problem bibo,mao
2006-08-10 19:15 ` Yoshinori K. Okuji
2006-08-12 16:09 ` Johan Rydberg
2006-08-15 12:21 ` Yoshinori K. Okuji
2006-08-16 2:57 ` bibo,mao [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44E2898D.7040705@intel.com \
--to=bibo.mao@intel.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.