Unable to boot OS X after dual booting Ubuntu.

Discussion in 'Windows, Linux & Others on the Mac' started by Aznskill2k, Mar 5, 2014.

  1. Aznskill2k macrumors newbie

    Joined:
    Jun 17, 2011
    Location:
    NYC
    #1
    Hi, I recently tried to dual boot Ubuntu on my mac osx lion. I'm not sure what went wrong but I currently have Ubuntu running fine but I am unable to boot osx. When I restart my computer I get several options to boot into (Ubuntu, osx 32bit, osx 64bit). When I choose either of the osx a black screen appears and the 64bit has an error sound.

    I still have all the files from my mac like documents, etc. Can any1 help me get back mac osx? Thanks!
     
  2. Quackers macrumors 6502a

    Joined:
    Sep 18, 2013
    Location:
    Manchester, UK
    #2
    If you reboot and hold down the Alt key do you get the normal Macintosh HD option? Does that boot OSX?
     
  3. Aznskill2k thread starter macrumors newbie

    Joined:
    Jun 17, 2011
    Location:
    NYC
    #3
    no nothing happens when I press the alt/option on start up. It bring me to the purplish screen that gives me the option to boot ubuntu, osx 32bit and 64bit.
     
  4. Quackers macrumors 6502a

    Joined:
    Sep 18, 2013
    Location:
    Manchester, UK
  5. Aznskill2k thread starter macrumors newbie

    Joined:
    Jun 17, 2011
    Location:
    NYC
    #5
    Yes I may have, when I restart it brings me to the GNU GRUB.
     
  6. Quackers macrumors 6502a

    Joined:
    Sep 18, 2013
    Location:
    Manchester, UK
    #6
    You would see that even in bios mode.
    Does the file /sys/firmware/efi exist?
     
  7. Aznskill2k thread starter macrumors newbie

    Joined:
    Jun 17, 2011
    Location:
    NYC
    #7
    Yes the file exist.
     
  8. Quackers macrumors 6502a

    Joined:
    Sep 18, 2013
    Location:
    Manchester, UK
    #8
    Then it's an EFI installation.

    The EFI boot order gets changed when grub-efi is used.
    The fact that grub does not boot OSX from either of the menu entries is a bug which I have reported to grub developers. Sadly (as is usual) they don't seem bothered about the problem and tried to blame everyone from me to the computer's firmware rather than try to fix it. So probably no fix soon then :roll eyes:

    The only way I know of to change this boot order is to use lichen1668's method as shown in the wiki page below.
    https://help.ubuntu.com/community/MacBookPro11-1/Saucy

    Basically, in Ubuntu start a terminal and run
    Code:
    sudo apt-get install efibootmgr
    Once installed please run
    Code:
    sudo efibootmgr
    and post the output in your next post.
     
  9. Aznskill2k thread starter macrumors newbie

    Joined:
    Jun 17, 2011
    Location:
    NYC
    #9
    BootCurrent: 0000
    Timeout: 5 seconds
    BootOrder: 0000,0080
    Boot0000* ubuntu
    Boot0080* Mac OS X
    Boot0081* Mac OS X
    Boot0082*
    BootFFFF*

    This is what showed up after the 2 commands. Also when I ran the command to install said efi was already the most updated.
     
  10. Quackers macrumors 6502a

    Joined:
    Sep 18, 2013
    Location:
    Manchester, UK
  11. Aznskill2k thread starter macrumors newbie

    Joined:
    Jun 17, 2011
    Location:
    NYC
    #11
    I am not sure but I only saw 2 after I installed ubuntu, which is a 32bit and 64bit version on the grub startup interface.
     
  12. Quackers macrumors 6502a

    Joined:
    Sep 18, 2013
    Location:
    Manchester, UK
    #12
    Hmm, well try these changes first.

    In the terminal do
    Code:
    sudo efibootmgr -o 0,80
    probably better to copy/paste that in to the terminal.

    Then do
    Code:
    sudo gedit /etc/grub.d/40_custom
    when a new window will open up with a few lines of text at the top.

    On the next line (after that text finishes) copy/paste this
    Code:
    menuentry "MacOS" {
      exit
    }
    Then save the file (File > save) then close the file and in the terminal run
    Code:
    sudo update-grub
    When finished close the terminal and reboot.
    On reboot you should see a new menu entry called "MacOS"
    Choose that and OSX should boot - hopefully :)
     
  13. Aznskill2k thread starter macrumors newbie

    Joined:
    Jun 17, 2011
    Location:
    NYC
    #13
    After doing all that it shows.

    Generating grub.cfg ...
    Found linux image: /boot/vmlinuz-3.11.0-17-generic
    Found initrd image: /boot/initrd.img-3.11.0-17-generic
    Found linux image: /boot/vmlinuz-3.11.0-15-generic
    Found initrd image: /boot/initrd.img-3.11.0-15-generic
    Found memtest86+ image: /boot/memtest86+.bin
    Found Mac OS X on /dev/sda2
    done
     
  14. Quackers macrumors 6502a

    Joined:
    Sep 18, 2013
    Location:
    Manchester, UK
    #14
    OK, reboot and see if the new menu entry appears and boots OSX
     
  15. Aznskill2k thread starter macrumors newbie

    Joined:
    Jun 17, 2011
    Location:
    NYC
    #15
    Okay, I rebooted and the same menu came up but this time there was another option called MacOSX. When I choose this 1, it brought me to the rEFit menu where I had the option to choose osx. I am currently on os x lion and it works perfectly.

    Is there anything I can do to remove the grub menu and use rEFit instead? Thanks for all your help btw. :)
     
  16. Quackers macrumors 6502a

    Joined:
    Sep 18, 2013
    Location:
    Manchester, UK
    #16
    Ok that's good :D
    Does Ubuntu boot from the refit menu? Check that first, because if it doesn't and you remove grub you won't be able to boot Ubuntu at all.
     
  17. Aznskill2k thread starter macrumors newbie

    Joined:
    Jun 17, 2011
    Location:
    NYC
    #17
    When I rebooted this time the 1st menu that came up with actually the rEFit. It showed 3 options (EFI\ubuntu\shimx64.efi, EFI\ubuntu\grubx64.efi, and mac). I choose the ubuntu\grub64.efi and it brought me back to the grub menu and was able to boot ubuntu from there.
     
  18. Quackers macrumors 6502a

    Joined:
    Sep 18, 2013
    Location:
    Manchester, UK
    #18
    I might be inclined to leave it for the moment unless Ubuntu will boot directly from the refit menu.
    It appears that refit still needs grub to boot Ubuntu.
    Refind (which is a more recent fork of refit) may boot Ubuntu via its efi stub by installing the ext4fs driver, if Ubuntu has an efi stub (not sure).
     
  19. Aznskill2k thread starter macrumors newbie

    Joined:
    Jun 17, 2011
    Location:
    NYC
    #19
    Okay well this solves my problem. Thanks a lot for the help!
     
  20. Quackers macrumors 6502a

    Joined:
    Sep 18, 2013
    Location:
    Manchester, UK

Share This Page