Notes on MacBook Pro Unibody

From STMDocs
Revision as of 16:08, 31 January 2009 by Thanh (talk | contribs)
Jump to navigation Jump to search

Multiple boot

It is possible to have on MPB MacOSX, Windows and a few linux distros. Also, it is not true that when we use Linux/Windows on MBP, we are limited to 3 usable partitions, as often stated in many guides about dual or triple boot on Mac. I don't use MacOSX and Windows very often, but I find it useful to have them installed, they can be very handy to run some applications (Google Sketchup or 12VoIP are good examples).

After many trials and errors, and spending quite some time googling, I found this article. I find it important to know these points:

  • Myths and Facts About Intel Macs
  • hybrid partition table MBR/GPT and BIOS is required to boot Windows, and also Linux if we want graphics acceleration. The best tool to deal with hybrid partition table MBR/GPT is rEFIT.
  • don't try to make the partition table perfect from the beginning. Instead, start with minimal number of partitions, and add them as needed when we install new OS.
  • to change the partition table, use GParted Live CD to boot MBP and make desired changes, then use refit to sync the MBR partition table. It's OK that after syncing, the MBR partition table looks different from the GPT table. MBR partition table is needed to boot MBP in BIOS mode and is used by Windows. Linux & MacOSX don't look at MBR partition table (they use the GPT one).
  • the order how the OSes are installed is critical:
    • MacOSX
    • a small ext2/ext3 partition to install grub
    • Windows
    • linux partitions; can be as many as we wish

Partitioning

MBP comes with preinstalled OSX on the whole disk. I made some notes on my partitioning scheme:

Partition Minimal size Recommended size File system Notes
Leopard 9G 30-40G HFS+ I don't use MacOSX very often, so I don't need too much disk space for it. It's good to keep the MacOSX partition not too big so that I can backup the whole partition to an external USB disk (mine is 30G). MacOSX can access NTFS, so non-system data (like audio, movies, etc.) can be put on another NTFS partition.
Grub 200MB ext2 Grub must be installed to this partition (right after the MacOSX partition) so that rEFIT can chainload it. Then we boot linux from grub just like on PC.
WinXP 2G 10G NTFS I use WinXP from time to time to run or test software that don't run on other OSes.
swap 4G 4G swap swap is used for linux, and must be as large as RAM amount for use with suspend
Linux1 4G 8G ext3 primary linux system, at the moment Ubuntu-8.10
Linux2 4G 8G ext3 testing linux system. It's handy to have an extra partition to install another linux system for testing purpose. For example, when I upgrade Ubuntu, I don't touch Linux1 partition but install a new version to Linux2 partition. When I am happy with the new version, I switch to Linux2 as the primary system, keep the previous version for a while (just in case I need something from that system). When I need to install another system, it will go to Linux1 partition again.
/home 30G grow as needed jfs /home partition that is shared between linux systems. jfs cannot shrink so I put it here before the NTFS share partition, so that if needed I can shrink the NTFS share partition and expand the /home partition without problem.
share 10G grow/shrink as needed NTFS NTFS can be accessed from Windows, MacOSX and Linux so it's a good choice for data that are likely to be shared between systems, like photos, audio, video, iso images, downloaded programs, etc. Ironically, we cannot access this partition from WinXP, since Windows uses MBR partition table and hence cannot see this share partition. But it's still the best choice for sharing data between MacOSX and Linux.