Saturday, March 04, 2006

Triple Booting Windows, Linux, and OSX86.

Hey all.

After following the developments regarding Mac OS X on Intel hardware, and installing 10.4.1 onto a spare partition... I recently decided to go the whole hog and attempt to triple-boot Windows, Linux (in this case Ubuntu) and a fresh install of the patched 10.4.3 install DVD.

Here's a list of what I used:

A .dmg file of Mac OS X 10.4.3 for Intel Install DVD (release 8F1099),
The Maxxuss DVD/ISO patcher for 8F1099 from http://maxxuss.com/home/
UltraISO 7.65 http://www.ezbsystems.com/ultraiso/
VMWare Workstation 5.5 http://www.vmware.com/
Daemon Tools http://www.daemon-tools.cc/dtcc/download.php?mode=ViewCategory&catid=5
Qemu for Windows http://www.h7.dion.ne.jp/~qemu-win/
Ubuntu "Dapper Drake" Flight 2 Install CD
Linux Live CD

Firstly, you'll have to make sure you have all your partitions set up properly. If you're starting from one Windows partition, you might want to use Partition Magic to shrink your Windows partition. I used fdisk under a Linux live CD to create the following:

A 6GB partition for Windows,
A 5GB root partition and 1GB swap partition for Linux,
A 6GB partition for Mac OS X,
Remaining unused space for a FAT32 data partition.

When under fdisk, hit "t" and change the type of your intended OS X partition to "AF" this will come up as "unknown" but don't panic.

Once back in Windows, use File -> Convert in UltraISO to convert the .dmg file into an .iso file. Then open up the PPF 3.0 patcher application in the maxxuss package. From here select the .iso file just created and set it running. By the end of this process you should have a properly patched .iso file.

Now open up VMWare and create a new virtual machine of "Custom" type. It's best to give it 128MB of memory to work with. Set it up with a 6GB virtual disk, and once created, mount your patched .iso in Daemon Tools and set your virtual machine to use this drive. Power up and install OS X in this virtual machine.

Once OS X is installed properly, power down your virtual machine. The program "qemu-img" distributed as part of Qemu can be used to convert VMWare disk images to a raw .img file. At a command prompt use the command:

qemu-img convert Name_of_your_VMWare_Disk_Image.vmdk - O raw tiger.img

This will take some time to complete. Once finished, the program "dd" can be used to write this .img file to your intended OS X partition using the command:

dd if=tiger.img of=/dev/hda3 bs=512 skip=63

Replace "/dev/hda3" with whchever partition you have allocated type "AF" earlier.

Now, reboot and install Linux using your install CD. Once finished, reboot into your new Linux install and open a command prompt. Type the following:

pico /etc/boot/grub/menu.lst

now add an entry like this:

# OSX86
title OSX86
root (hd0,2)
chainloader +1


Where "(hd0,2)" corresponds to your OS X partition, in the format hdax = (hd0,x-1)
This should add a menu option "OSX86" to your bootloader on startup. Now reboot and select "OSX86" all being well, OS X should begin to boot.

The End!