I recently had a reason to want to boot Linux on my Mac which already has a Windows Bootcamp partition. I wanted to just install Ubuntu onto a USB stick or hard drive and boot from that. The first bit turned out to be easy, but getting it to boot was quite arcane. I found lots of conflicting information on the web, and even after drinking from this fire hose of useful information it took a lot of trial and error to get it working.
It is possible – you just have to install like normal but requires a third-party boot loader and bit of jiggling before it will boot on its own. I’ve documented what I did below for posterity and others beating their head against the same issue.
1. First, make a bootable Ubunutu install disk:
http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx
2. Boot, and by holding down the option key, get the boot menu. Ubuntu will show up as “EFI Boot” – boot that. Begin the installation.
3. When you get to the installation type, pick “Something else”.
4. Find your USB disk from the list. Look at “Device for boot loader installation” down below, it will probably show the device with a readable name so you can be sure – for instance: “/dev/sdd SanDisk Cruzer 32.0 GB”. Select this device.
Note: My screenshots are from a virtual machine, yours will probably have the Mac’s internal HDD listed (for instance, /dev/sda, /dev/sdb) and all its myriad partitions. You want to be careful not to mess with those.
5. Now let’s partition the USB disk. Find the device above, and select “New Partition Table”. This will replace the existing partition or partitions with “Free space”.
6. Create the following partitions with the “+” button:
Note 1: You can add extra partitions if you like. For instance, a FAT32 partition for sharing with the Mac. I also don’t know if c) is necessary, more experimentation required.)
Note 2: I believe the option to add an EFI boot partition is only present when you booted the installer via EFI (which is going to be the case for your Mac).
7. Hit “install now” and complete the installation. Afterwards, it will prompt you to reboot. Come back to OS X.
8. Get gdisk and run the .pkg installer.
9. Get rEFInd as a “binary zip file” from the rEFInd page and unzip it somewhere.
10. Open Terminal, and go to the refind-bin-0.x.x directory.
Type: diskutil list
Note the device that’s your USB, and the EFI boot partition. In this example, /dev/disk3 is the USB stick and /dev/disk3s1 is the EFI partition.
11. type sudo gdisk /dev/disk3 (or whichever number is appropriate)
You’ll see one ore more MBR partitions.
Now there will be one MBR partition.
11. In the rEFInd directory, run the installer script and point it at your EFI partition.
sudo ./install.sh --usedefault /dev/disk3s1
(or whichever disk is appropriate)
12. You should now be able to reboot with your USB device plugged in. After holding down option you should see an “EFI Boot” option. When selected, it will boot rEFInd. Alongside OS X and anything else you already have installed, there should be an option for linux/GRUB. Choose that and away you go!
Good luck and let me know if it worked for you with a comment.