bookmark_borderTriple Boot in MacBook (Debian AMD64) using rEFIt


I have got success to create triple boot in mac book using rEFIt

salahuddin-pashas-computer:~ salahuddin$ diskutil list
/dev/disk0
#: type name size identifier
0: GUID_ partition_scheme *111.8 GB disk0
1: EFI 200.0 MB disk0s1
2: Apple_HFS Macintosh HD 111.2 GB disk0s2

Resize the volume

diskutil resizeVolume /dev/disk$OSX OSXpartsize 2ndPartType 2ndPartLabel 2ndPartSize 3rdPartType 3rdPartLabel 3rdPartSize

Here I am giving

diskutil resizeVolume /dev/disk0s2 71.1G Linux Linux 25G “MS-DOS FAT32” Windows 15G
(If you face problem while resizing the partitions, install/reinstall a fresh copy of Mac OS)

Install rEFIt in Mac OS (Mac disk image)

reboot your mac book and ensure that rEFIt is loading at boot time.

Boot Windows XP SP2 32bit, you will find the CD appear in the boot menu of rEFIt or use ‘C’ to boot. Now install it sda4
(warning: just format the sda4 in (fat32 or ntfs) while installing windows, but do not repartition/change anything!!!)

reboot and you will find 2 option for booting the Mac OS and Windows.
(warning: do not update the partition record in the rEFIt now, the Linux partition may update as fat32)

Installing Debian:

Get the AMD64 version of Debian (you can also use generic 32 bit)

Install Debian normally without the grub or lilo

(when it will try to install grub or lilo use go back, and from main menu select finish installation from Debian installation CD.)

From rEFIt menu update the partition record. Important!!!

Now boot with Debian installation CD up to the partitioning.
(otherwise you will face problem while installing lilo)
(*** you can see the easy way below after update the partition table)

go to console mode
ctrl+alt+F2
mkdir /tmp/debian
mount /dev/sda3 /tmp/debian
chroot /tmp/debian
mount /proc
apt-get install lilo
nano /etc/lilo.conf

sample lilo config

boot=/dev/sda3
default=Debian

map=/boot/map
delay=20
image=/vmlinuz initrd=/initrd.img
root=/dev/sda3
label=Debian
read-only

Install lilo in sda3
lilo -b /dev/sda3

done…

(***another easy way is install debian from begining again, now install lilo in /dev/sda3)(do not install grub) done…

After reboot you will find 3 OS boot option in rEFIt menu.

Important configuration!!!

Install CPU frequency, otherwise you mac book can be too hot in a short time.
http://wiki.debian.org/MacBook#head-7271d26c7c6e311218ca20422f7eb86e76a6d5e3

Configure the Color Profile (install xcalib using apt) http://gentoo-wiki.com/HARDWARE_Apple_MacBook#Colour_Profilept

F1, F2, F3… Key configuration
apt-get install pommed

Reference
http://wiki.debian.org/MacBook

Resources
http://wiki.debian.org/MacBook
http://wiki.onmac.net/index.php/Triple_Boot_via_BootCamp_Ubuntu
http://gentoo-wiki.com/HARDWARE_Apple_MacBook