Triple Boot Macbook Pro
From Rivalug Wiki
Contents |
[edit] Triple booting a Macbook Pro
This guide documents how I got triple booted my Macbook pro between Mac OS X, Windows XP, and Ubuntu 9.10. It draws heavily on the following information:
- https://help.ubuntu.com/community/MacBookPro
- https://help.ubuntu.com/community/MacBookPro5-5/Karmic
- http://ubuntuforums.org/showthread.php?t=594298
[edit] Mac OS X
I left the default installation of OS X in place to begin with.
[edit] Windows XP
- Install Boot Camp from Apple.
- Follow the instructions from Apple on installing Windows XP in Boot Camp.
- I partitioned my drive with 32GB of space for Windows, leaving the rest for Mac OS X, for now.
- Install the extra drivers for Windows. This will make Windows easier to work with, although not strictly necessary.
- Verify that the computer can boot the two operating systems using Boot Camp
[edit] Ubuntu
I used Ubuntu 9.10 x86_64, the latest stable version at this time. 10.04 should be out soon, though.
- BACKUP YOUR STUFF!!!!!
- In OS X, install rEFIt[1], and confirm that you can still boot both Mac and Windows.
- Repartition your drive
- In OS X, open Disk Utility (not Boot Camp).
- Select your hard drive on the left.
- Not one of the partitions, but the drive itself.
- Select the Partitions tab.
- Click the + button at the bottom of the chart to add a partition.
- Click the new partition in the chart and enter the desired size (I chose 32GB again).
- Choose a name for the partition.
- Don't worry that it is formating to HFS+, we'll fix it later
- Save the change and wait for it to finish re-partitioning your drive
- This is done on a live system, but some programs may lock up while it is running. Be patient. It is working, just wait. DO NOT REBOOT OR RESTART UNTIL DONE! You could kill your drive.
- Boot the CD
- Burn the Ubuntu media if you haven't already. USB booting may or may not work. I haven't gotten it to work, so just use a real CD.
- Reboot with the disk in the drive, and hold Option (alt) to get the boot menu to show up.
- Wait for the disk to spin up and select the CD (labeled "windows" for some reason).
- Choose the option to Try Ubuntu for now, so we can run some utilities first
- Repartition the drive again
- Once the drive is booted, go to System > Administration > gparted
- Select the newly created partition ( /dev/sda3 in my case ) and select Format and choose ext4
- you can do whatever one you want, but ext4 is becoming the standard.
- Also, relabel the partition while you are at it, and hit apply.
- Make sure NO OTHER PARTITIONS ARE BEING EDITED!
- Install Ubuntu
- Start the install wizard and walk through it.
- On the partitioning page, select Manual and hit next.
- Select the new partition and hit Edit.
- Select ext4 as the partition type.
- Select / as the mount point.
- Don't bother reformatting, we already did that twice.
- On the final page where it shows the summary of the options, press Advanced.
- Choose the new partition for where to install Grub, not hd0.
- Let the installer run.
- My installer paused in the middle the first time and wouldn't resume, so I kept watch and moving things around so it wouldn't pause.
- Reboot when done
- Setting up Ubuntu
- The first order of business is to setup the wireless so we can get the rest later.
- Insert the CD again and add it to the sources
- In Synaptic, go to Settings > Repositories and check the CDROM at the bottom
- Install the following packages however you choose (I used aptitude).
- dkms
- patch
- bcmwl-kernel-sources
- The order is important here, although aptitude should be able to figure it out, as long as bcmwl-kernel-sources is last. It depends on dkms and patch, although patch is not a listed dependency.
- Reboot and wireless now works.
- Insert the CD again and add it to the sources
- Now would be a good time to do a general system update to get the latest everything.
- Add the repositories with packages for macs
-
deb http://ppa.launchpad.net/mactel-support/ubuntu karmic main -
deb-src http://ppa.launchpad.net/mactel-support/ubuntu karmic main
-
- NVIDIA graphics driver
- Go to System > Administration > Hardware Drivers
- Select the 185 version of the graphics driver and install
- Reboot to take effect
- The reboot might be messy the first time. Drives didn't mount the first time, and X didn't want to load the second time. When X didn't load, it asked to generate a configuration. The menus kept looping until I managed to get it generate a new config. But it came up with the driver loaded eventually.
- Verify the driver is installed and loaded by playing with the settings
- Install some useful utilities
- pommed, gpomme, wmpomme for hotkeys
- nvidia-bl-dkms, mpb-nvidia-bl-dkms for backlight control
- If you have a macbook 5,4 or 5,3, make the following changes to enable pommed:
- check your version with
sudo dmidecode -s system-product-name - https://help.ubuntu.com/community/MacBookPro5-5/Karmic#pommed%20on%20the%20mbp%205,4
- Edit /usr/sbin/pommed with a hex editor. Search for "5,5" and change to "5,4"
- Restart the pommed service. You might consider editing /etc/pommed.conf to change the settings as some are annoying.
- The LCD backlight increments very slowly by default, so I changed the step value to 20 even though the comments say the max is 2.
- check your version with
- Install Cheese to verify that the camera works
- Sound
- Doesn't work in 2.6.31.20. Instructions say to roll back to 2.6.31.19. Might just wait for 2.6.31.21.
- Trackpad
- Mostly works. Scrolling can be enabled in mouse settings under scrolling
- Click and drag is annoying without the following changes:
-
wget http://launchpadlibrarian.net/24871974/bcm5974-dkms_1.1.4_all_test.deb -
sudo dpkg -i bcm5974-dkms_1.1.4_all_test.deb -
sudo modprobe -r bcm5974 -
sudo modprobe bcm5974
-
- More to come.
- The first order of business is to setup the wireless so we can get the rest later.
