Crunchbang Linux on Macbook Pro

It was not easy to figure out how to install crunchbang on an apple macbook pro (5.1) so I decide to write down the steps. maybe someone else also want to try out this distro. What you need:

- cruncbang iso

- rEFIt (google is your friend) to enable dual boot

First lets make two partition for the new os. open disk utility and resize your current partition, and on the free space make two new partition (one 1 or 2gb for swap and the other one will be for "/" partition ).. format them whatever you want (we will format them again later, during the crunchbang install). Next burn to cd the crunchbang iso you've downloaded.

If you are ready install rEFIt to your OS X, after that you need to restart your computer, check out if it working well. If yes insert the crunchbang cd and restart your computer, during the boot press, and hold down C, on your keyboard. This will tell your macbook pro to boot from CD. When you see the grub welcome page choose the Live Failsafe mode and press 'e'  to edit it.  Write this to the end of the line:  nouveau.noaccel=1 blacklist=vga16fb   then press enter. 

After the live linux full loaded, right click on the desktop and start the crunchbang installer. Answer the questions and edit the partition-s with gparted. format the 2 partition wich you made with diskutility under OS X. Format the small one to swap, I choosed ext4 for the other one. It important to put a boot flag to the ext4 ( "/") partition! after that complete the install. when its finished it will restart your computer. When you see the rEFIt menu at the boot, choose the partition tool! and update your disk information. You are almost done, but before u can boot in your new os, you will need to boot again from live cd! Because somewhy Crunchbang installer didn't install the grub properly. So we need to install grub manually. so Boot from Live cd again. When it loaded open a terminal and type these:

sudo mkdir /media/root

sudo mount /dev/sdaX /media/root  (X is your / partiton number)

sudo grub-install --root-directory=/media/root /dev/sdaX

sudo grub-setup -d/media/root/boot/grub /dev/sdaX

And thats it! restart your computer at rEFI choose to boot from your linux partition, but dont forget to edit grub option and add  nouveau.noaccel=1 blacklist=vga16fb to the end of the line again. cheers.