GRUB2 Mac OS Boot Error

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
Odin Overland
Level 1
Level 1
Posts: 3
Joined: Tue Feb 09, 2010 11:15 am

GRUB2 Mac OS Boot Error

Post by Odin Overland » Fri Feb 19, 2010 3:09 pm

I have been unable to get GRUB2 (1.97 beta) to boot Mac OS X (either 10.5 or 10.6) despite it being listed. I have tried this with my iMacs both as MBR and GPT (GPT/MBR hybrid). It fails on both - on MBR (if I remember correctly) it simply reboots the computer when you select Mac OS from GRUB2. When running on GPT, you get a Kernel panic. I have tried this with both Ubuntu 9.10 and Mint 8 (both 32 bit desktop).

Here are the results of the Boot Info Script Leppie had me run.

Boot Info Script 0.55 dated February 15th, 2010

============================= Boot Info Summary: ==============================

=> Grub 2 is installed in the MBR of /dev/sda and looks at sector 222848990
of the same hard drive for core.img, core.img is at this location on
/dev/sda and looks on partition #4 for /boot/grub.

sda1: _________________________________________________________________________

File system: vfat
Boot sector type: BSD4.4: Fat32
Boot sector info: According to the info in the boot sector, sda1 starts
at sector 0. But according to the info from fdisk,
sda1 starts at sector 40.
Operating System:
Boot files/dirs:

sda2: _________________________________________________________________________

File system: hfsplus
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:

sda3: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files/dirs: /bootmgr /Boot/BCD /Windows/System32/winload.exe

sda4: _________________________________________________________________________

File system: ext3
Boot sector type: -
Boot sector info:
Operating System: Linux Mint 8 Helena - Main
Edition
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda5: _________________________________________________________________________

File system: swap
Boot sector type: -
Boot sector info:

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ _____________________________________________________

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x4b31b3de

Partition Boot Start End Size Id System

/dev/sda1 1 409,639 409,639 ee GPT
/dev/sda2 * 409,640 44,275,139 43,865,500 af HFS
/dev/sda3 104,872,320 209,069,909 104,197,590 7 HPFS/NTFS
/dev/sda4 209,069,910 303,355,394 94,285,485 83 Linux


GUID Partition Table detected.

Partition Start End Size System
/dev/sda1 40 409,639 409,600 System/Boot Partition
/dev/sda2 409,640 44,275,139 43,865,500 HFS+
/dev/sda3 104,872,320 209,069,909 104,197,590 Linux or Data
/dev/sda4 209,069,910 303,355,394 94,285,485 Linux or Data
/dev/sda5 303,355,395 312,576,704 9,221,310 Linux Swap

blkid -c /dev/null: ____________________________________________________________

Device UUID TYPE LABEL

/dev/sda1 70D6-1701 vfat EFI
/dev/sda2 3fefafd0-37b3-3153-ae69-05a01eee2d0d hfsplus Mac OS GPT Triple Test 2
/dev/sda3 560A66A60A66833B ntfs
/dev/sda4 70adcb64-9b10-491e-a1cf-df48b46f4890 ext3
/dev/sda5 50630509-bf3e-4668-bdf0-3cd4d7857ed5 swap

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

/dev/sda4 / ext3 (rw,errors=remount-ro)


=========================== sda4/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,4)
search --no-floppy --fs-uuid --set 70adcb64-9b10-491e-a1cf-df48b46f4890
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/06_mint_theme ###
insmod ext2
set root=(hd0,4)
search --no-floppy --fs-uuid --set 70adcb64-9b10-491e-a1cf-df48b46f4890
insmod png
if background_image /boot/grub/linuxmint.png ; then
set color_normal=white/black
set color_highlight=white/light-gray
else
set menu_color_normal=white/black
set menu_color_highlight=white/light-gray
fi
### END /etc/grub.d/06_mint_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Linux Mint 8 Helena, linux 2.6.31-14-generic (/dev/sda4)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,4)
search --no-floppy --fs-uuid --set 70adcb64-9b10-491e-a1cf-df48b46f4890
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=70adcb64-9b10-491e-a1cf-df48b46f4890 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Linux Mint 8 Helena, linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,4)
search --no-floppy --fs-uuid --set 70adcb64-9b10-491e-a1cf-df48b46f4890
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=70adcb64-9b10-491e-a1cf-df48b46f4890 ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Mac OS X (on /dev/sda2)" {
insmod hfsplus
set root=(hd0,2)
search --no-floppy --fs-uuid --set 209d98d857d9f16a
insmod vbe
do_resume=0
if [ /var/vm/sleepimage -nt10 / ]; then
if xnu_resume /var/vm/sleepimage; then
do_resume=1
fi
fi
if [ $do_resume == 0 ]; then
xnu_uuid 209d98d857d9f16a uuid
if [ -f /Extra/DSDT.aml ]; then
acpi -e /Extra/DSDT.aml
fi
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
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/devtree.txt ]; then
xnu_devtree /Extra/devtree.txt
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 "Windows 7 (loader) (on /dev/sda3)" {
insmod ntfs
set root=(hd0,3)
search --no-floppy --fs-uuid --set 560a66a60a66833b
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### 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.
### END /etc/grub.d/40_custom ###

=============================== sda4/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda4 during installation
UUID=70adcb64-9b10-491e-a1cf-df48b46f4890 / ext3 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=50630509-bf3e-4668-bdf0-3cd4d7857ed5 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

=================== sda4: Location of files loaded by Grub: ===================


114.0GB: boot/grub/core.img
114.0GB: boot/grub/grub.cfg
114.0GB: boot/initrd.img-2.6.31-14-generic
114.0GB: boot/vmlinuz-2.6.31-14-generic
114.0GB: initrd.img
114.0GB: vmlinuz

Husse
Level 23
Level 23
Posts: 18701
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: GRUB2 Mac OS Boot Error

Post by Husse » Tue Feb 23, 2010 3:11 pm

The section to boot MacOS looks rather complicated, so much so that I need to do some analysis to understand it
I have to come back to you
Image
Don't fix it if it ain't broken, don't break it if you can't fix it

Post Reply

Return to “Installation & Boot”