All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrey Borzenkov <arvidjaar@gmail.com>
To: grub-devel@gnu.org
Subject: Re: [PATCH] Skip Apple ghosts
Date: Tue, 07 Jan 2014 22:20:30 +0400	[thread overview]
Message-ID: <1389118830.2778.0.camel@opensuse.site> (raw)
In-Reply-To: <52B98B9A.5020609@gmail.com>


В Вт, 24/12/2013 в 14:26 +0100, Vladimir 'φ-coder/phcoder' Serbinenko
пишет:
> Hello, all. It was discovered that on macs sometimes firmware defines
> ghost disks with vendor suffix. E.g.
> /ACPI(a0341d0,0)/PCI(2,1f)/UnknownMessaging(12)/EndEntire
> is a normal disks with partitions presented with HD(...) but then
> /ACPI(a0341d0,0)/PCI(2,1f)/UnknownMessaging(12)/MediaVendor(Apple)[0:
> ]/EndEntire
> is a ghost disk. It has as suffix a vendor path with empty vendor data.
> This is a problem because when chainloading on such disks GRUB can't
> find handle of partition as none is defined. I propose to dkip ghosts
> completely. This should be safe as the skip happens only for empty Apple
> vendor suffix and if the parent is already a known disk.
> Did anyone see anything similar?

Yes (on MacBook Pro); 

Here is what I get when EFI-booting from GRUB rescue CD made with single
x86_64-efi target:

/ACPI(a0341d0,0)/PCI(1,1f)/ATAPI(0,0,0)/EndEntire
disk
block
/ACPI(a0341d0,0)/PCI(1,1f)/ATAPI(0,0,0)/MediaVendor(2b0585eb-d8b8-49a9-8b8c-e21b01aef2b7)[0: ]/EndEntire
block
simple FS
/ACPI(a0341d0,0)/PCI(1,1f)/ATAPI(0,0,0)/HD(2,10,5c1,0000000000000000,20,0)/EndEntire
disk
block
/ACPI(a0341d0,0)/PCI(1,1f)/ATAPI(0,0,0)/HD(3,5d1,ca3,0000000000000000,20,0)/EndEntire
simple FS
disk
block
/ACPI(a0341d0,0)/PCI(1,1f)/ATAPI(0,0,0)/HD(4,1274,a2,0000000000000000,20,0)/EndEntire
disk
block

The three HD media paths are for three Apple partitions (and the third
one has simple FS because it does contains HFS+). And I /think/ that the
very first Vendor media path refers to CD-ROM (based on the fact that it
got simple FS protocol). I played a bit with it; when I try to list
filesystem for this media path in EFI shell, it audibly tries to access
CD-ROM but fails. May be it requires Apple ISO9660 extensions, but I do
not know how to create EFI bootable image containing Apple extensions
(mkisofs should support it, but I was lost in arguments. xorriso
apparently does not support Apple extensions).

In your case you have SATA DVD drive, right? And path shown refers to
it?





      parent reply	other threads:[~2014-01-07 18:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-24 13:26 [PATCH] Skip Apple ghosts Vladimir 'φ-coder/phcoder' Serbinenko
2013-12-24 16:44 ` Andrey Borzenkov
2013-12-24 17:00   ` Vladimir 'φ-coder/phcoder' Serbinenko
2014-01-07 18:17 ` Andrey Borzenkov
2014-01-07 18:20 ` Andrey Borzenkov [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=1389118830.2778.0.camel@opensuse.site \
    --to=arvidjaar@gmail.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.