Bug#783244: grub fails to boot Mac OS X
Thibaut Paumard
thibaut at debian.org
Fri Apr 24 14:08:30 UTC 2015
Package: grub-common
Version: 2.02~beta2-22
Severity: normal
Hi,
/etc/grub.d/30_os-prober generates two menu entries for booting OS X in 32bit
and 64bit mode.
When I try booting the 32bit entry, I get an error message: mach-0 doesn't
contain suitable 32-bit architecture. When I try booting the 64bit entry, my
screen remains frozen on the grub background image. I don't know whether OS X
is booting behind this frozen screen.
I manage to boot into OS X by exiting grub. Then, rEFInd loads, and I can boot
OS X from there. Attached in a snippet that provides a menu entry for that. I
*think* that the same solution would boot OS X directly if rEFInd was not
installed. Cannot test, though.
Kin regards, Thibaut.
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/sda5 / btrfs rw,relatime,space_cache 0 0
/dev/sda1 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=utf8,shortname=mixed,errors=remount-ro 0 0
/dev/sda5 /var/lib/schroot/mount/experimental-0729c13f-8291-404a-a3b9-be0450eea245 btrfs rw,relatime,space_cache 0 0
/dev/sda5 /var/lib/schroot/mount/experimental-0729c13f-8291-404a-a3b9-be0450eea245/home btrfs rw,relatime,space_cache 0 0
/dev/sda5 /var/lib/schroot/mount/experimental-0729c13f-8291-404a-a3b9-be0450eea245/tmp btrfs rw,relatime,space_cache 0 0
/dev/sda5 /var/lib/schroot/mount/experimental-10188668-9ac3-456b-8eb9-d6bf566adcf0 btrfs rw,relatime,space_cache 0 0
/dev/sda5 /var/lib/schroot/mount/experimental-10188668-9ac3-456b-8eb9-d6bf566adcf0/home btrfs rw,relatime,space_cache 0 0
/dev/sda5 /var/lib/schroot/mount/experimental-10188668-9ac3-456b-8eb9-d6bf566adcf0/tmp btrfs rw,relatime,space_cache 0 0
/dev/sda5 /var/lib/schroot/mount/experimental-352262de-96a0-4e29-bdf7-eb6146af9aef btrfs rw,relatime,space_cache 0 0
/dev/sda5 /var/lib/schroot/mount/experimental-352262de-96a0-4e29-bdf7-eb6146af9aef/home btrfs rw,relatime,space_cache 0 0
/dev/sda5 /var/lib/schroot/mount/experimental-352262de-96a0-4e29-bdf7-eb6146af9aef/tmp btrfs rw,relatime,space_cache 0 0
/dev/sda5 /var/lib/schroot/mount/experimental-56ebc5f2-f264-42f6-893c-f4c72d5bed2f btrfs rw,relatime,space_cache 0 0
/dev/sda5 /var/lib/schroot/mount/experimental-56ebc5f2-f264-42f6-893c-f4c72d5bed2f/home btrfs rw,relatime,space_cache 0 0
/dev/sda5 /var/lib/schroot/mount/experimental-56ebc5f2-f264-42f6-893c-f4c72d5bed2f/tmp btrfs rw,relatime,space_cache 0 0
/dev/sda5 /var/lib/schroot/mount/experimental-7b7ca10e-9450-4eba-b96c-708feff88bf9 btrfs rw,relatime,space_cache 0 0
/dev/sda5 /var/lib/schroot/mount/experimental-7b7ca10e-9450-4eba-b96c-708feff88bf9/home btrfs rw,relatime,space_cache 0 0
/dev/sda5 /var/lib/schroot/mount/experimental-7b7ca10e-9450-4eba-b96c-708feff88bf9/tmp btrfs rw,relatime,space_cache 0 0
/dev/sda5 /var/lib/schroot/mount/experimental-d5feaf3d-c96a-42c1-a433-b230b29bea44 btrfs rw,relatime,space_cache 0 0
/dev/sda5 /var/lib/schroot/mount/experimental-d5feaf3d-c96a-42c1-a433-b230b29bea44/home btrfs rw,relatime,space_cache 0 0
/dev/sda5 /var/lib/schroot/mount/experimental-d5feaf3d-c96a-42c1-a433-b230b29bea44/tmp btrfs rw,relatime,space_cache 0 0
*********************** END /proc/mounts
*********************** BEGIN /boot/grub/device.map
(hd0) /dev/disk/by-id/ata-APPLE_HDD_HTS541010A9E682_J550001MGJ815C
*********************** END /boot/grub/device.map
*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod btrfs
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 --hint='hd0,gpt5' f0ca0d2d-ff24-43a4-a555-cd5545ec03f1
else
search --no-floppy --fs-uuid --set=root f0ca0d2d-ff24-43a4-a555-cd5545ec03f1
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=fr_FR
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=-1
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_gpt
insmod btrfs
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 --hint='hd0,gpt5' f0ca0d2d-ff24-43a4-a555-cd5545ec03f1
else
search --no-floppy --fs-uuid --set=root f0ca0d2d-ff24-43a4-a555-cd5545ec03f1
fi
insmod png
if background_image /usr/share/images/desktop-base/lines-grub-1920x1080.png; then
set color_normal=white/black
set color_highlight=black/white
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-f0ca0d2d-ff24-43a4-a555-cd5545ec03f1' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod btrfs
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 --hint='hd0,gpt5' f0ca0d2d-ff24-43a4-a555-cd5545ec03f1
else
search --no-floppy --fs-uuid --set=root f0ca0d2d-ff24-43a4-a555-cd5545ec03f1
fi
echo 'Chargement de Linux 3.16.0-4-amd64…'
linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=f0ca0d2d-ff24-43a4-a555-cd5545ec03f1 ro quiet splash
echo 'Chargement du disque mémoire initial…'
initrd /boot/initrd.img-3.16.0-4-amd64
}
submenu 'Options avancées pour Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-f0ca0d2d-ff24-43a4-a555-cd5545ec03f1' {
menuentry 'Debian GNU/Linux, avec Linux 3.16.0-4-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-advanced-f0ca0d2d-ff24-43a4-a555-cd5545ec03f1' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod btrfs
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 --hint='hd0,gpt5' f0ca0d2d-ff24-43a4-a555-cd5545ec03f1
else
search --no-floppy --fs-uuid --set=root f0ca0d2d-ff24-43a4-a555-cd5545ec03f1
fi
echo 'Chargement de Linux 3.16.0-4-amd64…'
linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=f0ca0d2d-ff24-43a4-a555-cd5545ec03f1 ro quiet splash
echo 'Chargement du disque mémoire initial…'
initrd /boot/initrd.img-3.16.0-4-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (sysvinit)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-init-sysvinit-f0ca0d2d-ff24-43a4-a555-cd5545ec03f1' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod btrfs
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 --hint='hd0,gpt5' f0ca0d2d-ff24-43a4-a555-cd5545ec03f1
else
search --no-floppy --fs-uuid --set=root f0ca0d2d-ff24-43a4-a555-cd5545ec03f1
fi
echo 'Chargement de Linux 3.16.0-4-amd64…'
linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=f0ca0d2d-ff24-43a4-a555-cd5545ec03f1 ro quiet splash init=/lib/sysvinit/init
echo 'Chargement du disque mémoire initial…'
initrd /boot/initrd.img-3.16.0-4-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-recovery-f0ca0d2d-ff24-43a4-a555-cd5545ec03f1' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod btrfs
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 --hint='hd0,gpt5' f0ca0d2d-ff24-43a4-a555-cd5545ec03f1
else
search --no-floppy --fs-uuid --set=root f0ca0d2d-ff24-43a4-a555-cd5545ec03f1
fi
echo 'Chargement de Linux 3.16.0-4-amd64…'
linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=f0ca0d2d-ff24-43a4-a555-cd5545ec03f1 ro single
echo 'Chargement du disque mémoire initial…'
initrd /boot/initrd.img-3.16.0-4-amd64
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Mac OS X (32 bits) (sur /dev/sda2)' --class osx --class darwin --class os $menuentry_id_option 'osprober-xnu-32-50a246dc9b82a4d2' {
insmod part_gpt
insmod hfsplus
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 --hint='hd0,gpt2' 50a246dc9b82a4d2
else
search --no-floppy --fs-uuid --set=root 50a246dc9b82a4d2
fi
load_video
set do_resume=0
if [ /var/vm/sleepimage -nt10 / ]; then
if xnu_resume /var/vm/sleepimage; then
set do_resume=1
fi
fi
if [ $do_resume = 0 ]; then
xnu_uuid 50a246dc9b82a4d2 uuid
if [ -f /Extra/DSDT.aml ]; then
acpi -e /Extra/DSDT.aml
fi
if [ /kernelcache -nt /System/Library/Extensions ]; then
xnu_kernel /kernelcache boot-uuid=${uuid} rd=*uuid
else
xnu_kernel /mach_kernel boot-uuid=${uuid} rd=*uuid
if [ /System/Library/Extensions.mkext -nt /System/Library/Extensions ]; then
xnu_mkext /System/Library/Extensions.mkext
else
xnu_kextdir /System/Library/Extensions
fi
fi
if [ -f /Extra/Extensions.mkext ]; then
xnu_mkext /Extra/Extensions.mkext
fi
if [ -d /Extra/Extensions ]; then
xnu_kextdir /Extra/Extensions
fi
if [ -f /Extra/devprop.bin ]; then
xnu_devprop_load /Extra/devprop.bin
fi
if [ -f /Extra/splash.jpg ]; then
insmod jpeg
xnu_splash /Extra/splash.jpg
fi
if [ -f /Extra/splash.png ]; then
insmod png
xnu_splash /Extra/splash.png
fi
if [ -f /Extra/splash.tga ]; then
insmod tga
xnu_splash /Extra/splash.tga
fi
fi
}
menuentry 'Mac OS X (64 bits) (sur /dev/sda2)' --class osx --class darwin --class os $menuentry_id_option 'osprober-xnu-64-50a246dc9b82a4d2' {
insmod part_gpt
insmod hfsplus
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 --hint='hd0,gpt2' 50a246dc9b82a4d2
else
search --no-floppy --fs-uuid --set=root 50a246dc9b82a4d2
fi
load_video
set do_resume=0
if [ /var/vm/sleepimage -nt10 / ]; then
if xnu_resume /var/vm/sleepimage; then
set do_resume=1
fi
fi
if [ $do_resume = 0 ]; then
xnu_uuid 50a246dc9b82a4d2 uuid
if [ -f /Extra/DSDT.aml ]; then
acpi -e /Extra/DSDT.aml
fi
if [ /kernelcache -nt /System/Library/Extensions ]; then
xnu_kernel64 /kernelcache boot-uuid=${uuid} rd=*uuid
else
xnu_kernel64 /mach_kernel boot-uuid=${uuid} rd=*uuid
if [ /System/Library/Extensions.mkext -nt /System/Library/Extensions ]; then
xnu_mkext /System/Library/Extensions.mkext
else
xnu_kextdir /System/Library/Extensions
fi
fi
if [ -f /Extra/Extensions.mkext ]; then
xnu_mkext /Extra/Extensions.mkext
fi
if [ -d /Extra/Extensions ]; then
xnu_kextdir /Extra/Extensions
fi
if [ -f /Extra/devprop.bin ]; then
xnu_devprop_load /Extra/devprop.bin
fi
if [ -f /Extra/splash.jpg ]; then
insmod jpeg
xnu_splash /Extra/splash.jpg
fi
if [ -f /Extra/splash.png ]; then
insmod png
xnu_splash /Extra/splash.png
fi
if [ -f /Extra/splash.tga ]; then
insmod tga
xnu_splash /Extra/splash.tga
fi
fi
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "rEFInd" --class osx --class darwin --class os {
set root=(hd0,0)
exit
}
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
*********************** END /boot/grub/grub.cfg
*********************** BEGIN /proc/mdstat
cat: /proc/mdstat: No such file or directory
*********************** END /proc/mdstat
*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root 9 Apr 24 15:52 ata-APPLE_HDD_HTS541010A9E682_J550001MGJ815C -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 24 15:52 ata-APPLE_HDD_HTS541010A9E682_J550001MGJ815C-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 24 15:52 ata-APPLE_HDD_HTS541010A9E682_J550001MGJ815C-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Apr 24 15:52 ata-APPLE_HDD_HTS541010A9E682_J550001MGJ815C-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Apr 24 15:52 ata-APPLE_HDD_HTS541010A9E682_J550001MGJ815C-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Apr 24 15:52 ata-APPLE_HDD_HTS541010A9E682_J550001MGJ815C-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Apr 24 15:52 ata-APPLE_HDD_HTS541010A9E682_J550001MGJ815C-part6 -> ../../sda6
lrwxrwxrwx 1 root root 9 Apr 24 15:52 ata-MATSHITADVD-R_UJ-8A8_D02305700R8DTL7C8 -> ../../sr0
lrwxrwxrwx 1 root root 9 Apr 24 15:52 usb-WIKO_Mass_Storage_0123456789ABCDEF-0:0 -> ../../sdb
lrwxrwxrwx 1 root root 9 Apr 24 15:52 usb-WIKO_Mass_Storage_0123456789ABCDEF-0:1 -> ../../sdc
lrwxrwxrwx 1 root root 9 Apr 24 15:52 wwn-0x5000cca6c6c7641c -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 24 15:52 wwn-0x5000cca6c6c7641c-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 24 15:52 wwn-0x5000cca6c6c7641c-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Apr 24 15:52 wwn-0x5000cca6c6c7641c-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Apr 24 15:52 wwn-0x5000cca6c6c7641c-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Apr 24 15:52 wwn-0x5000cca6c6c7641c-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Apr 24 15:52 wwn-0x5000cca6c6c7641c-part6 -> ../../sda6
*********************** END /dev/disk/by-id
*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Apr 24 15:52 2860-11F4 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 24 15:52 4bed8f22-a0f1-3618-8a65-5e879fdda561 -> ../../sda2
lrwxrwxrwx 1 root root 10 Apr 24 15:52 71ae5aec-10c5-4ca5-8fb4-bb211f7a8167 -> ../../sda6
lrwxrwxrwx 1 root root 10 Apr 24 15:52 d4a26439-8153-33ec-bdc9-357e67155769 -> ../../sda3
lrwxrwxrwx 1 root root 10 Apr 24 15:52 f0ca0d2d-ff24-43a4-a555-cd5545ec03f1 -> ../../sda5
*********************** END /dev/disk/by-uuid
-- System Information:
Debian Release: 8.0
APT prefers testing
APT policy: (900, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages grub-common depends on:
ii gettext-base 0.19.3-2
ii libc6 2.19-18
ii libdevmapper1.02.1 2:1.02.90-2.2
ii libfreetype6 2.5.2-3
ii libfuse2 2.9.3-15+b1
ii liblzma5 5.1.1alpha+20120614-2+b3
ii libpng12-0 1.2.50-2+b2
ii zlib1g 1:1.2.8.dfsg-2+b1
Versions of packages grub-common recommends:
ii os-prober 1.65
Versions of packages grub-common suggests:
ii console-setup 1.123
ii desktop-base 8.0.2
pn grub-emu <none>
pn multiboot-doc <none>
ii xorriso 1.3.2-1.1
-- Configuration Files:
/etc/grub.d/40_custom changed:
exec tail -n +3 $0
menuentry "rEFInd" --class osx --class darwin --class os {
set root=(hd0,0)
exit
}
-- no debconf information
More information about the Pkg-grub-devel
mailing list