Triple Booting my PC with OSX Lion, Windows 7, and Lubuntu 12.04

My computer has three operating systems.

“Why do you need three operating systems?” one might ask.

First, because it’s cool, but mostly because it is quite practical for web and mobile development and playing games.  Linux and OSX are both great environments for trying out new-to-me technologies like node.js, Ruby on Rails, MongoDB, and all sorts of hackerish command line tools.  OSX has the added benefit of being able to deploy apps directly to my iPhone (as well as being the prettiest of the OSs).  And when it comes to playing the games, nothing beats Windows. OSX is starting to get some love from Steam, and quite a few interesting indie releases show up on Linux, but if you want a guaranteed awesome PC gaming experience, you need Windows.

Also, from a web-development standpoint, the ability to do cross-browser testing comes in very handy.  Plus, there are no development tools that are off-limits because the author decided to only release a Windows or OSX version.

So here is a basic rundown of my system, and how it was put together.  Rather than develop a detailed howto, I’ll leave it to the many talented bloggers out on the internets to provide the step-by-step.

Required Hardware

The most important element by far when installing OSX on a non-Mac is the motherboard.  It’s like the foundation on a house – it needs to be sturdy or everything comes crashing down.  Luckily, when I built my PC in early 2009, I purchased an Asus p6t, which just happens to be very compatible with OSX – as does the nVidia graphics card I picked up.  Apparently Gigabyte mobos are all the rage with the hackintosh crowd, so if you are in the market for a new build, or want to check your current hardware, see the following links when considering hardware:

And if you are wondering if your existing hardware works, take a look at the following:
As for Windows and Ubuntu, most mainstream motherboards are accepted, but check your manufacturers website for compatibility information.  Also, for discrete graphics in Ubuntu, go with nVidia, as they still support linux with proprietary drivers.

Installation Media

  • OSX: 8GB or larger USB thumb-drive
  • Windows 7: 8GB or larger USB thumb-drive or blank DVD
  • Lubuntu: 1GB thumb-drive, blank CD, or blank DVD
Preparing a bootable USB drive with OSX Lion is definitely the most inconvenient step of the whole process.  The ideal situation is to have a retail copy of OSX Lion, and an actual Mac available for temporary use. I actually cheated and had a friend at work create the OSX Lion installer for me (using his own hackintosh).  Luckily, there are scads of online tutorials for creating a Lion USB installer using a nifty tool called UniBeast.
Once the OSX USB drive is created, download MultiBeast and copy the file to the USB drive. This will be needed later.
Preparing  Windows and Ubuntu installation media is less of a task.  Because Windows 7 is a commercial operating system, you will need a licensed copy.  I purchased a copy when it was released, but others may have an OEM version baked into a manufacturers recovery disc.  If this is the case, you can get a clean Windows 7 ISO for re-installation from Microsoft.  There’s a great tutorial on how to re-install Windows at PC World.  Creating a disc or USB drive for Ubuntu couldn’t be easier.  Simply visit the Ubuntu download page and follow the instructions for your chosen medium.

Adjust BIOS Settings

Unplug any hardware that is not necessary for the installation of the operating systems (extra hard drives, USB hubs, printers, etc…).  Some BIOS settings may need adjusting as well.  If available, make sure the following settings are true:

  • Quickboot is disabled
  • SATA is set to AHCI rather than IDE
  • The primary hard drive has priority and is the first boot device (or 2nd behind the optical drive)

Prepare Hard Drive

Once all the installation media is ready to go, the targeted hard drive needs to be properly formatted.  Because OSX is very finicky about drives and partitions, you must use the OSX disc utility to format your drive.  In my case, I created five partitions on my 1.5TB hard drive.

  1. Insert the OSX Usb stick, power on, and tap the key for the alternative boot menu (F8 on my system)
  2. Boot the USB Disk containing OSX Lion and wait for the installer to load
  3. Open Disk Utility from the Applications menu
  4. Select your hard drive in the left-hand column
  5. Under Volume Scheme: separate the drive into at least 3 partitions.  I use 4 partitions (one for each OS, plus a shared FAT32 drive for file storage).
  6. Click Options… choose GUID Partition Table, then click OK.
  7. Click the first partition (Untitled 1). Type LION for the Name. Choose Mac OS Extended (Journaled) for the Format.
  8. Click the next partition (Untitled 2). Name = WINDOWS7, Format = MSDOS (FAT).
  9. If you have an extra partition for shared files, do the same for Untitiled 3. Name=FILES, Format=MSDOS (FAT)
  10. The last partition must be free space.  It is important that the last partition is free, as this is where linux partitions will go.  Leaving it at the end of the disk will make things go more smoothly during the linux installation.
  11. Click Apply and close Disk Utility
  12. Shut Down (do not proceed with the installer)
Again, check out TonyMacX86’s blog for a nice guide on setting up a hard drive for multiple OSs.  The article refers to Snow Leopard and dual booting, but many of the steps are identical to my setup.  The key is to set up the partitions first with Disk Utility, then instnall Windows and Ubuntu before OSX.

Install Windows 7

After setting up the hard drive partitions in the OSX Disk Utility, it’s best to set up Windows 7 next, as it has the most intrusive bootloader – which will get overwritten later.  Start this process with the PC shut down.

  1. Insert the Windows 7 installation media (USB or DVD).
  2. Power up and boot into the Windows Installer.
  3. Choose Custom (Advanced) for the installation type.
  4. When presented with a list of drives, select the ‘WINDOWS7’ partition.
  5. Click Drive Options (advanced)
  6. Click format.
  7. Click next.
  8. Windows 7 will now install itself.  You may need to remove the installation media if the PC is set up to auto-boot from the Windows 7 disk.
  9. When installation is complete, set up Windows, or Shut Down.

Install Ubuntu / Lubuntu

  1. Boot with the Linux installation USB or CD.
  2. Select ‘Install Ubuntu to the local hard drive’ option (or something similar)
  3. At the Allocate Drive Space screen, choose  Something Else.
  4. Under /dev/sda click free space. (If you have more than one hard drive, choose the free space on the appropriate drive).
  5. Click Add…
  6. Type for new partition: Logical
  7. New Partition Size in Megabytes: Set this to the amount of RAM in your machine (e.g. 4096)
  8. Location for new partition: End
  9. Use As: swap area and click OK.
  10. You should see the swap space appear in your drive list. Click free space again.
  11. Click Add… again.
  12. New Partition: Logical
  13. New partition size in megabytes: it should default to the maximum space available. If not click the up arrow until the number no longer changes.
  14. Location for new partition: End
  15. Use As: Pick Ext4 if you work with huge files or need extra fast performance.  Choose Ext3 if you want to access the linux file system from OSX (and possibly Windows with the right tools).
  16. Mount Point: Choose  the forward slash – 
  17. Click OK.
  18. Device for boot loader installation: Choose the large linux partition that you just created (e.g. /dev/sda4).
  19. Click Install Now
  20. Proceed through the Ubuntu installation
  21. Shut down
Here’s a nice guide with screenshots for installing Ubuntu. Just remember to use the end of the drive.

Install OSX Lion

  1. Remove the Ubuntu installation media, and insert the OSX USB drive.
  2. Boot the computer with the USB drive and enter the OSX Lion installer
  3. Proceed through the installation process.  Be sure to select the LION drive as the target for installation.
  4. When the installer ends, you will be at the Mac desktop.
  5. Copy the MultiBeast file from your USB drive to the desktop (or download it if you have internet access)
  6. Install and run MultiBeast.
  7. Here is where things get tricky.  Everyone has different hardware, so there is no magic bullet.  I selected EasyBeast to get the absolute necessities, and then chose specific options for audio and ethernet.  Check this guide for a great explaination of the MultiBeast options.
  8. Reboot.

Win!

7 Comments

  1. Hi Eric,

    Liked your write up and have a quick question. After I set up Win7 and Ubuntu but before OSX, if I wanted to check how the installation went, which bootloader do I use and how to set it up? Thx,

  2. Hey Raj,

    At that point, Windows should still have control of your MBR, so you should be booting into Windows 7 when you turn on your computer and let it do its thing. There is no need to set anything up. GRUB (linux bootloader) will be installed on your linux partition, and cannot be accessed without first booting from your OSX thumbdrive, or a thumbdrive with GRUB that allows you to select your linux partition as a boot option.

  3. Hey Eric,

    Can I install Lion on a VHD instead of a partition?

  4. Yes, but the process is very different, and actually much easier. You need an unlocker program to allow VMWare the ability to install OSX on a Windows host. See http://www.sysprobs.com/vmware-workstation-8-0-8-0-1-unlocker-to-run-mac-os-x-guest-in-windows-7

    SoulDevTeam has a lot of pre-built VM images for both VirtualBox and VMWare with OSX: http://www.souldevteam.net/blog/

    Also, sorry for the late reply. I’ve been getting tons of spam and this got lost in my approval queue.

  5. thank u for the detailed guide for ubuntu installation.Now i have a triple boot system, which is M.LION,Windows (7&8),Ubuntu12.04.keep up the good work

  6. Glad it helped! Have fun!

  7. Thanks for this great guide! Now I have a triple boot! Many thanks for this!!!

3 Pingbacks

  1. Pingback: URL
  2. Pingback: Insulation
  3. Pingback: http://www.inkasso-abc.org

Leave a Reply

Your email address will not be published.

*

© 2017 Eric Terpstra

Theme by Anders NorénUp ↑