Triple boot MacOS/Windows/Linux
I managed to install triple boot environment: MacOS 10.7 (Lion) + Windows 7 (Ultimate) + Ubuntu 11.10 (Oneiric Ocelot). If someone wants to know how I managed it I explained i below and my questions will come at the end of this thread.
Installation of MacOS
Firstly on my HDD /dev/sda with Disk Utility I created only one partition (whole HDD as one partiton) with GUID Partition Table (GPT partition sheme) because it is required by Lion and after that I regularly installed Lion on it.
Installation of Windows
Afterwards I splitted my only partition into three partitions (two partitions were added and first one was shrinked) with Apple's Disk Utility again. It is important to create additional partition with Disk Utility because that way it will tailor GPT partition scheme accordingly. After that I started Windows 7 installation and during installation process I deleted and recreated second partition and formated it. Deleting old and recreating second partition with partitioner within Windows installation process I created paralell MBR partition scheme with definition of partition that Windows 7 can understand and use. It is important to note that it is not allowed to create new partition for windows of different size because this will be partition defined in MBR partition scheme and it will be out of sync with GPT partition scheme. (One has to understand that we deal here with two parallel different partition schemas - GPT and MBR - and they have to be in sync meaning that definition of partitions on disk have to be the same in both schemes.) If you created new partition in Windows partitioner, it would be defined only in MBR partitions scheme but not in GPT and it will result in some problems with Linux installation. So I firstly created partitions (defined GPT partition scheme) with Disk Utility, and afterwards created windows partition on the same place of the same size in MBR partition scheme (during Windows installation process). Then I installed Windows 7 on that second partition.
Installation of Linux
Finally I started Ubuntu installation and installed it on third partition and install GRUB boot loadre in /dev/sda (MBR).
MacOS is booted by default. But when I hold alt/option button during boot I was offered with two boot options; first one MacOS (disk icon) starting Lion and second one Windows (disk icon) starting GRUB linux boot loader. After starting GRUB I am offered boot menu to start Windows/Mac/Ubuntu.
My question is how to define that GRUB is default boot loader?
MacBook Pro, Mac OS X (10.7), Triple boot, Lion, Windows, Ubuntu