HOW-TO: Installing OSX Leopard, Windows Vista, Windows XP and Linux Ubuntu on a Macbook
Updated: Now also triple boot without Vista
1) You will need a format and repartition of the whole disk, so time machine your previous data.
2) Insert OSX Leopard (also Tiger works) Install DVD. Reboot the macbook pressing the C key (so it will boot from DVD). From the "Utilities Menu" window menu select "Disk Utility". From "Volume Scheme" tab, select 5 partitions and use this schema:
0 EFI protected (which is invisible under Disk Utility)
1 Name: VISTA Format: MS-DOS File System <--create this partition *even* if you don't plan to install Vista, XP partition *must* be the 4th one to avoid missing hal.dll trouble!
2 Name: STORAGE Format: MS-DOS File System
3 Name: XP Format: MS-DOS File System
4 Name: OSX Format: Mac OS Extended (Journaled)
5 - Format: Free Space (Linux partitions will be created here later)
Every partition will host its OS. The (optional, but very advidsed) STORAGE partition will be formatted in FAT32 to share files between the four OSes. If you are installing a brand new hard disk, check boot loader type as "GUID Partition Table (GPT)" (remove MBR default or you will not be able to install OS X). Then click the "Partition" button, and all your data on disk will be destroyed.
Now you can close "Disk Utility", and start install OS X to volume "OSX". After reboot into OS X, hou have to install rEFIt boot loader (download it from refit.sourceforge.net) into volume "OSX".
Update: If you have installed "MacBook EFI Firmware Update 1.1" (available via Apple Software Updater) installing rEFIt is no more compulsory if you plan to install linux after on your macbook. This update will fix built-in keyboard issue with "legacy" bootloaders, so you can use grub bootloader included in Ubuntu to boot Vista, Xp and Ubuntu. But I personally installed rEFIt because I really prefer his graphical boot than grub textual one
Update: If you want to obtain a triple boot macbook, without installing Vista don't create the VISTA partition on step 2), proceed to step 3a) and ignore 3b). Instead if you want to install Vista, jump directly to step 3b)
3a) You can use directly from OS X terminal the "fdisk" command, that handles an MBR-partitioned disk, to setup the XP partition suitable for installing that windows version. Open a terminal under OS X:
type "sudo fdisk -e /dev/rdisk0"
enter password and ignore the message "fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directory"
type "p" to print MBR partition table
type "f " "4" to flag partition 4 active
type "q" to save and quit
3b) Insert Windows Vista install DVD. Reboot t