Friday, January 18, 2008

Triple Boot on my MacBook Pro

I finally managed to set up a triple boot system on my macbook pro. It would actually have been much easier if I knew that you must format your windows partition during the windows setup. If you don't, windows xp is not going to work (and don't use quick format nor convert to ntfs, they're not going to work). It is actually quite simple: you just create 2 partitions using disk utility, and yo format the windows one to fat32. You should ensure that neither your primary partition nor the partition you want to use with linux are htfs+ journaled. Linux cannot write to journaled file systems. After you made the partitions (you may need to use disk utility boot from your mac os x dvd, depending on your previous system configuration) you should install rEFIt: an open source boot loader for the EFI platform. rEFIt will detect any bootable device in your system at each startup. With rEFIt installed you can boot from the Ubuntu Live CD (or DVD) and install it. You need an external mouse to right click. During setup be careful about the keyboard layout: it tends to get it wrong on macs (you can change it at a later time, though). Install linux on the third partition (the first being EFI and the second being Mac). Windows needs to be on the last partition. You can try to install Grub directly on the correct partition (hd0,2) by changing the install location in the advanced pop-up window. However I didn't manage to boot ubuntu if I installed grub on the partition. If you let ubuntu install grub on the whole disk, windows will overwrite it during its own setup, requiring you to re-install grub on the correct partition. Once you completed the ubuntu setup check that it's bootable and install windows (remember about formatting the partition if installing xp). As you need to access both a windows and a linux (ext3) filesystem from your mac you can use ntfs for your windows drive, as you need to install MacFUSE on your Mac anyway in order to get access to ext3. Once Windows is setup you will find that rEFIt doesn't show linux as bootable anymore. To restore it you need to boot from Ubuntu Live CD, go to http://supergrub.forjamari.linex.org/, download Super Disk Grub and install it on your third partition foolowing Herman's instructions (available on the linked web site). Note that while the instructions show ho to set up grub on a usb stick, you need to install it to your linux disk (it is the only ext3 one). I did try to boot from the memory stick, but an error pops-up and it doesn't boot.
After re-installing grbu everything should work fine (after, of course, you install all the drivers).
While ubuntu automatically reads and writes to other disks, you need MacFUSE for enabling other disks on Mac, and MacDrive and Ext2fs for enabling them on windows.

3 comments:

Anonymous said...

Ok one question. I recently purchased a macBook off of a friend and it turned out to be stolen. How do i erase everything on the computer and set it up to where its like brand new?

Unknown said...

How about returning it back to the owner. Call AppleCare, give them serial number, and your contact number and information and have them, (the AppleCare folks), have the owner contact you.

Honesty. Try it on, see if it fits.

Anonymous said...

Interesting post you got here. I'd like to read a bit more concerning that theme.
By the way check the design I've made myself Russian escort