Ubuntu booting in mac

Below is the sequence of steps needed to finish installing Ubuntu on a Mac. I assume you installed Ubuntu to use EFI booting.

  1. Boot to Ubuntu live.
  2. From the Desktop, press the control+option+T keys to open a Terminal window.
  3. Enter the command shown below.

    sudo  fdisk  -l  /dev/sda
    

    Below is the output I saw from entering this command.

    Note: For a better view, click on the image or open the image in a new window.

    j0

  4. From the output of the sudo fdisk -l /dev/sda command, determine the device for the EFI System partition. For me, this was /dev/sda1. If you determine a different device, make the appropriate substitutions.

  5. Enter the commands given below to make Ubuntu appear in the Startup Manager.

    sudo  bash
    mkdir  efi
    mount  /dev/sda1  efi
    cd  efi/EFI
    mkdir  BOOT
    cp  ubuntu/grubx64.efi  BOOT/bootx64.efi
    cd  ~
    umount  efi
    rmdir  efi
    exit
    exit
    
  6. Shutdown Ubuntu live.

  7. Startup the Mac and immediately hold down the option key until the Startup Manager icons appear.

  8. Click on the hard disk icon labeled "EFI Boot". Next, while holding down the control key, click on the circular arrow below this icon.

You are finished. Your Mac will now automatically boot to Ubuntu on startup and restart.