|
Since I was just doing this as an experiment, with no intention of keeping it, I swapped out my Whitebook's internal disk (immediately before Leopard came out I replaced the original 80 GB by a 120 GB, and kept the former around as a spare). So, I put the 80 GB back in, briefly got nostalgic about how Tiger looked, and then started:
Installed Leopard from DVD, and brought it up to date.
Installed rEFIt 0.13, and did a test boot to check. Also wrote rEFIt to bootable CD for good measure.
Used Boot Camp Assistant to create a partition for Windows, hitting 'quit and install later' when it asked for install media.
Booted from Leopard DVD, and ran Disk Utility from the utilities menu.
Created a new partition for Ubuntu between the Mac OS and Windows partitions (shrank the former for this). Formatted it as 'Mac OS extended (journaled)', though it won't stay this way for long.
Quit and rebooted, choosing the partitioning tool from the rEFIt menu. Let it update the MBR partition table, which was out of sync with GPT.
Rebooted from XP install media.
In Windows setup, selected the final partition (created by Boot Camp Assistant), which Windows calls drive C:
When Windows was installed and booted, inserted Leopard DVD and let it do its stuff installing drivers etc. If I intended to keep Windows, I'd have done software updates at this point.
When finished with Windows, booted from Ubuntu 9.04 CD and selected 'install'.
In the partitioner, selected /dev/sda3 (the partition between Leopard and Windows), and formatted it as ext3 for root. Ignored warning about lack of swap.
At the 'ready to install' screen, clicked on 'advanced' and selected /dev/sda3 for the boot loader location.
After Ubuntu install, created a swap file to make up for the lack of a swap partition (dd, mkswap, add to fstab, swapon -a).
Again, I'd have done software updates now if keeping this.
All done!
The four-partition limit is annoying. It's a consequence of the hybrid GPT/MBR partition tables needed to support legacy shit like Windows. GPT itself supports plenty of partitions, but when you run a hybrid GPT/MBR setup for the benefit of an OS like XP which needs an MBR partition table, this doesn't support extended partitions; and, since the Mac uses one for the EFI system partition, you're left with only one partition for all of Linux.
Since a swap file is less efficient than a swap partition, and needs to be avoided in backups, I suspect what I should have done (before installing Ubuntu) is to use parted from the live CD to shrink the Windows partition, and use the space reclaimed for a swap partition in the GPT table, leaving the GPT and MBR tables out of sync. Linux is GPT-aware, and Windows shouldn't even notice.
The Ubuntu Jaunty installer is quite pretty, but I was surprised to see no sign of LVM or RAID in the partitioner.
|