B0rg
04-15-2007, 07:00 AM
There are lots of guides how to do this but I think this is a pretty decent tutorial for those interested. I've done this myself on my Macbook Pro so msg back if you have any issues. Please note that I did not write this but stumbled across it today. Original article: http://www.michaelvkim.net/?p=5
Operation Triple Boot = Success! OS X and XP and Linux, oh my! (http://www.michaelvkim.net/?p=5)
I’ve successfully installed three different operating systems on my Macbook Pro; Mac OS X, Windows XP SP2, and Ubuntu 6.10 Linux. I’ll show you how to do the same. There are many tutorials online to triple boot on a Macbook, but only a handful of good ones that focus on the Macbook Pro, and none of them do it like me. This was pretty complicated, so hopefully I can simplify it for you.
You’ll need:
Macbook Pro with Mac OS X installed
Windows XP SP2 (Home or Professional will work as long as it has SP2)
Bootable Ubuntu Linux CD [download] (http://www.ubuntu.com/getubuntu/download)
USB drive
rEFIt Bootloader (mac os x and debian package) [OS X download] (http://sourceforge.net/project/downloading.php?groupname=refit&filename=rEFIt-0.9.dmg&use_mirror=easynews) [debian download] (http://packages.debian.org/cgi-bin/download.pl?arch=i386&file=pool%2Fmain%2Fr%2Frefit%2Frefit_0.7-3_i386.deb&md5sum=3c024545a08c11c57290ee49725b8ab2&arch=i386&type=main)
Boot Camp 1.1 or laterStep 1
Download and install Boot Camp. Run the Boot Camp Assistant (Finder -> Applications -> Utilities -> Boot Camp Assistant) and create the Windows XP Driver cd. Do NOT partition the drives! Just make the CD and exit. Go ahead and install the OS X rEFIt as well. Here’s a tutorial on how to install rEFIt (http://refit.sourceforge.net/doc/c1s1_install.html). Download the rEFIt package for Linux (http://packages.debian.org/cgi-bin/download.pl?arch=i386&file=pool%2Fmain%2Fr%2Frefit%2Frefit_0.7-3_i386.deb&md5sum=3c024545a08c11c57290ee49725b8ab2&arch=i386&type=main) and transfer it to a USB drive. In a nutshell, rEFIt is like Boot Camp without the 2-OS limit. Boot Camp only allows you to boot from 2 different partitions in the internal hard drive, Mac OS X and Windows. rEFIt will allow you to boot from several partitions on the internal hard drive, several partitions on any attached external drive, and even from a bootable CD-ROM. In summary, Boot Camp = Dual Boot; rEFIt = Triple Boot.
Step 2
In Mac OS X, open up a Terminal window (Finder -> Applications -> Utilities -> Terminal) and type in:
diskutil list
and you should see something like this:
/dev/disk0
#: type name size identifier
0: GUID_partition_scheme *115.8 GB disk0
1: EFI 200.0 MB disk0s1
2: Apple_HFS Macintosh HD 115.5 GB disk0s2
We’re going to re-partition the hard drive now. Right now, there’s only one partition: Apple_HFS (Mac OS X), which takes all of the space on the hard drive. We need to shrink this partition and add 2 others for Windows and Linux. To do so, type in:
diskutil resizeVolume disk0s2 85.5G "Linux" "Linux" 15G "MS-DOS FAT32" "Windows" 15G
In English, this command resizes the current partition to 85.5 GB (disk0s2 85.5G), creates a 15 GB Linux-type partition labelled “Linux” (”Linux” “Linux” 15G), and creates another 15 GB FAT32-type partition labelled “Windows”(”MS-DOS FAT32″ “Windows” 15G). My 120GB hard drive has 115.8GB, so be sure to change the partition size to match your disk space. After resizing the partitions, it will ask you to reboot. Go ahead and reboot. Verify the partitions to make sure they’re correct. It should look a little something like this:
/dev/disk0
#: type name size identifier
0: GUID_partition_scheme *115.8 GB disk0
1: EFI 200.0 MB disk0s1
2: Apple_HFS Macintosh HD 85.5 GB disk0s2
3: Linux 15.0 GB disk0s3
4: NTFS/FAT32 15.0 GB disk0s4
Step 3
Time to install Windows! Note: the installation disc MUST have SP2 due to the special SATA drivers that come pre-installed. If your copy of Windows doesn’t have SP2, slipstream it in (http://www.nliteos.com/). Insert the Windows XP Installation CD and reboot. When it’s rebooting, press and hold the ‘C’ key. This will force the computer to boot from the CD. Follow the installation instructions. When prompted for the partition to install Windows, select drive C: (disk0s4).
Triple-booting will not work if Windows is on the 2nd or 3rd partition. This is because Mac OS X and Linux use Extensible Firmware Interface, or EFI, and Windows uses the older PC BIOS, which relies on the Master Boot Record, or MBR. I’m not really sure why this requires Windows to be installed on the 4th partition, but I’m pretty sure the reason is as confusing as the previous sentence.
Step 4
When the installation is finished, insert and install the XP Drivers CD you created with the Boot Camp Assistant. Click yes to everything and you’ll soon be asked to reboot. When you do, you’ll have a fully functional dual-booting machine.
Step 5
Insert the Ubuntu Installation Disc in the computer and reboot. As with before, press and hold ‘C’ to boot from the CD. You’ll end up booting into a Linux environment from the CD. Linux won’t actually install until you double-click “Install”, but don’t do that just yet. Remember the rEFIt package you transferred to the USB drive? Transfer it to the desktop in Linux and install it.
When it’s finished, open up a Terminal window (Applications -> Accessories -> Terminal) and type in (but DON’T hit Enter):
sudo gptsync /dev/sda && sudo sfdisk -c /dev/sda 3 83
Just leave this sitting in the Terminal window for now. Go ahead and start installing Linux. When you come to the partitioning part, make sure you install Linux to the 3rd partition (disk0s3). Some flavors of Linux ask you to mount a Swap drive to a different partition, but that’s not necessary. Just install “/” to disk0s3. Pretty soon, the installer will say it “GRUB will be installed to (hd0)”, with (hd0) being a clickable button. This caused me 3 days of headaches! Click on the button and delete the (hd0), then click OK. You’ll notice the (hd0) has been replaced with “/dev/”. Go ahead and click on that again, and add “sda3″ at the end. It should say “GRUB will be installed to /dev/sda3″ with “/dev/sda3″ being a clickable button. This will install grub (GRand Unified Bootloader) onto just the Linux partition instead of the entire hard drive.
When the installation progress bar comes up, pay attention to the percentage. From 0% to 15%, the installer will rewrite the partition tables. If you pushed Enter earlier at the Terminal, that command would’ve been overwritten by this part of the installation. Wait for the installer to reach 22%, where it will copy setup files to the hard drive. Go back to the Terminal and press Enter now. Otherwise, the installation will crash when Linux tries to install grub at the 91% mark. When finished, it will ask you to reboot. Go ahead and reboot.
Conclusion
Grab a cold one and pat yourself on the back because you now have 3 operating systems on one hard drive! I didn’t find any information in Step 5 online, so I had to wrestle with that one for a few days. I hope this tutorial was easy to understand. If you need clarification on any part, let me know.
Operation Triple Boot = Success! OS X and XP and Linux, oh my! (http://www.michaelvkim.net/?p=5)
I’ve successfully installed three different operating systems on my Macbook Pro; Mac OS X, Windows XP SP2, and Ubuntu 6.10 Linux. I’ll show you how to do the same. There are many tutorials online to triple boot on a Macbook, but only a handful of good ones that focus on the Macbook Pro, and none of them do it like me. This was pretty complicated, so hopefully I can simplify it for you.
You’ll need:
Macbook Pro with Mac OS X installed
Windows XP SP2 (Home or Professional will work as long as it has SP2)
Bootable Ubuntu Linux CD [download] (http://www.ubuntu.com/getubuntu/download)
USB drive
rEFIt Bootloader (mac os x and debian package) [OS X download] (http://sourceforge.net/project/downloading.php?groupname=refit&filename=rEFIt-0.9.dmg&use_mirror=easynews) [debian download] (http://packages.debian.org/cgi-bin/download.pl?arch=i386&file=pool%2Fmain%2Fr%2Frefit%2Frefit_0.7-3_i386.deb&md5sum=3c024545a08c11c57290ee49725b8ab2&arch=i386&type=main)
Boot Camp 1.1 or laterStep 1
Download and install Boot Camp. Run the Boot Camp Assistant (Finder -> Applications -> Utilities -> Boot Camp Assistant) and create the Windows XP Driver cd. Do NOT partition the drives! Just make the CD and exit. Go ahead and install the OS X rEFIt as well. Here’s a tutorial on how to install rEFIt (http://refit.sourceforge.net/doc/c1s1_install.html). Download the rEFIt package for Linux (http://packages.debian.org/cgi-bin/download.pl?arch=i386&file=pool%2Fmain%2Fr%2Frefit%2Frefit_0.7-3_i386.deb&md5sum=3c024545a08c11c57290ee49725b8ab2&arch=i386&type=main) and transfer it to a USB drive. In a nutshell, rEFIt is like Boot Camp without the 2-OS limit. Boot Camp only allows you to boot from 2 different partitions in the internal hard drive, Mac OS X and Windows. rEFIt will allow you to boot from several partitions on the internal hard drive, several partitions on any attached external drive, and even from a bootable CD-ROM. In summary, Boot Camp = Dual Boot; rEFIt = Triple Boot.
Step 2
In Mac OS X, open up a Terminal window (Finder -> Applications -> Utilities -> Terminal) and type in:
diskutil list
and you should see something like this:
/dev/disk0
#: type name size identifier
0: GUID_partition_scheme *115.8 GB disk0
1: EFI 200.0 MB disk0s1
2: Apple_HFS Macintosh HD 115.5 GB disk0s2
We’re going to re-partition the hard drive now. Right now, there’s only one partition: Apple_HFS (Mac OS X), which takes all of the space on the hard drive. We need to shrink this partition and add 2 others for Windows and Linux. To do so, type in:
diskutil resizeVolume disk0s2 85.5G "Linux" "Linux" 15G "MS-DOS FAT32" "Windows" 15G
In English, this command resizes the current partition to 85.5 GB (disk0s2 85.5G), creates a 15 GB Linux-type partition labelled “Linux” (”Linux” “Linux” 15G), and creates another 15 GB FAT32-type partition labelled “Windows”(”MS-DOS FAT32″ “Windows” 15G). My 120GB hard drive has 115.8GB, so be sure to change the partition size to match your disk space. After resizing the partitions, it will ask you to reboot. Go ahead and reboot. Verify the partitions to make sure they’re correct. It should look a little something like this:
/dev/disk0
#: type name size identifier
0: GUID_partition_scheme *115.8 GB disk0
1: EFI 200.0 MB disk0s1
2: Apple_HFS Macintosh HD 85.5 GB disk0s2
3: Linux 15.0 GB disk0s3
4: NTFS/FAT32 15.0 GB disk0s4
Step 3
Time to install Windows! Note: the installation disc MUST have SP2 due to the special SATA drivers that come pre-installed. If your copy of Windows doesn’t have SP2, slipstream it in (http://www.nliteos.com/). Insert the Windows XP Installation CD and reboot. When it’s rebooting, press and hold the ‘C’ key. This will force the computer to boot from the CD. Follow the installation instructions. When prompted for the partition to install Windows, select drive C: (disk0s4).
Triple-booting will not work if Windows is on the 2nd or 3rd partition. This is because Mac OS X and Linux use Extensible Firmware Interface, or EFI, and Windows uses the older PC BIOS, which relies on the Master Boot Record, or MBR. I’m not really sure why this requires Windows to be installed on the 4th partition, but I’m pretty sure the reason is as confusing as the previous sentence.
Step 4
When the installation is finished, insert and install the XP Drivers CD you created with the Boot Camp Assistant. Click yes to everything and you’ll soon be asked to reboot. When you do, you’ll have a fully functional dual-booting machine.
Step 5
Insert the Ubuntu Installation Disc in the computer and reboot. As with before, press and hold ‘C’ to boot from the CD. You’ll end up booting into a Linux environment from the CD. Linux won’t actually install until you double-click “Install”, but don’t do that just yet. Remember the rEFIt package you transferred to the USB drive? Transfer it to the desktop in Linux and install it.
When it’s finished, open up a Terminal window (Applications -> Accessories -> Terminal) and type in (but DON’T hit Enter):
sudo gptsync /dev/sda && sudo sfdisk -c /dev/sda 3 83
Just leave this sitting in the Terminal window for now. Go ahead and start installing Linux. When you come to the partitioning part, make sure you install Linux to the 3rd partition (disk0s3). Some flavors of Linux ask you to mount a Swap drive to a different partition, but that’s not necessary. Just install “/” to disk0s3. Pretty soon, the installer will say it “GRUB will be installed to (hd0)”, with (hd0) being a clickable button. This caused me 3 days of headaches! Click on the button and delete the (hd0), then click OK. You’ll notice the (hd0) has been replaced with “/dev/”. Go ahead and click on that again, and add “sda3″ at the end. It should say “GRUB will be installed to /dev/sda3″ with “/dev/sda3″ being a clickable button. This will install grub (GRand Unified Bootloader) onto just the Linux partition instead of the entire hard drive.
When the installation progress bar comes up, pay attention to the percentage. From 0% to 15%, the installer will rewrite the partition tables. If you pushed Enter earlier at the Terminal, that command would’ve been overwritten by this part of the installation. Wait for the installer to reach 22%, where it will copy setup files to the hard drive. Go back to the Terminal and press Enter now. Otherwise, the installation will crash when Linux tries to install grub at the 91% mark. When finished, it will ask you to reboot. Go ahead and reboot.
Conclusion
Grab a cold one and pat yourself on the back because you now have 3 operating systems on one hard drive! I didn’t find any information in Step 5 online, so I had to wrestle with that one for a few days. I hope this tutorial was easy to understand. If you need clarification on any part, let me know.