All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrei Borzenkov <arvidjaar@gmail.com>
To: danjde@msw.it
Cc: grub-devel@gnu.org
Subject: Re: macosx (darwin) fail to boot from Grub2
Date: Sun, 28 Jun 2015 20:22:21 +0300	[thread overview]
Message-ID: <20150628202221.31a76b02@opensuse.site> (raw)
In-Reply-To: <476fd913934dfcd834c06b8aa9f3046b@msw.it>

В Sun, 28 Jun 2015 11:45:49 +0200
danjde@msw.it пишет:

> Hi friends,
> I've just installed successifully Ubuntu 14.04 on iMac 9.1 (Darwin).
> 
> The partitions are so suddivided:
> 
> 
> |-EFI-FAT32-|---MAC-HFS+---|--/BOOT-EXT4--|----/ROOT-EXT4----|----/HOME-REISERFS-----|---SWAP---|
> 
> 
> On sda is installed rEFIT.
> Grub2 is installed on sda3 (/BOOT)
> 
> Linux boot correctly from Grub2, MAC not (only from rEFIT). Booting 
> from Grub2 MAC, it does't found the system partition.
> 
> 
> Here the Grub2 (macosx) entry:
> 
> 
> menuentry 'Mac OS X (32 bit) (su /dev/sda2)' --class osx --class darwin 
> --class os $menuentry_id_option 'osprober-xnu-32-86296317cf88a9f9'  {

This does not work on native EFI grub (i.e. when grub platform is
x86_64-efi or i386-efi). You can use EFI chainloading to start Mac OS X
bootloader instead of trying to load kernel directly. Somehing like

To load OSX, use the following section in grub.cfg:

menuentry "MacOSX" {
  # Search the root device for Mac OS X's loader.
  search --file --no-floppy --set=root /usr/standalone/i386/boot.efi
  # chainload the loader, pass parameters like -v directly
  chainloader (${root})/usr/standalone/i386/boot.efi #-v
}

I think boot.efi is also present under some other path, I forgot. The
above is from Ubuntu page.


  reply	other threads:[~2015-06-28 17:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-28  9:45 macosx (darwin) fail to boot from Grub2 danjde
2015-06-28 17:22 ` Andrei Borzenkov [this message]
2015-06-29 10:02   ` danjde
2015-06-29 16:43     ` Andrei Borzenkov
2016-02-12 14:42 ` Vladimir 'φ-coder/phcoder' Serbinenko

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=20150628202221.31a76b02@opensuse.site \
    --to=arvidjaar@gmail.com \
    --cc=danjde@msw.it \
    --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.