Difference between revisions of "Installing Linux on a mid-2010 MacBook Pro"

From WTFwiki
Jump to navigation Jump to search
(Created page with "Notes on installing Arch linux on a mid 2010 macbook pro, because I don't like OSX. ==Partition the disk== * Applications->Utilities->Disk Utility * Select your *drive*, not ...")
(No difference)

Revision as of 14:58, 4 June 2012

Notes on installing Arch linux on a mid 2010 macbook pro, because I don't like OSX.

Partition the disk

  • Applications->Utilities->Disk Utility
  • Select your *drive*, not the 'Macintosh HD' partition
  • Click on the 'Partition' tab along the top
  • Drag and drop or type the size in the box to resize your OSX partition
  • Click apply

Install rEFIt

Change default boot order, optional

If you don't want refit to boot to OSX by default, edit /efi/refit/refit.conf and uncomment the 'legactfirst' option.

Installing Linux

I'm using Arch Linux. If you don't want to use that then things may become increasingly out of sync for you from now on.

Also note that you will want to use wired networking for setup, the wireless card probably won't work (yet).

After installing refit and burning a linux CD, *shutdown* the computer, a reboot is not good enough.

When you boot it back up, the refit bootsplash should show up. Use the partition inspector to sync the EFI partition table with the MBR.

Reboot from the refit menu and hold C down to boot from the linux CD.

Arch linux will display a GRUB prompt, just pick whatever the default is.

When you get a shell, run parted, you have to partition things manually.

 parted /dev/sda

Use 'print' to view the current partition table, and 'mkpart' to create partitions. You'll probably want to make a swap and a main partition, more if you feel ambitious, although I think having more than 4 partitions can cause headaches.

After doing this, you need to reboot and use refit's partition utility again to sync EFI and the MBR.

Reboot back into the Arch installer and do /arch/setup. Walk through the setup until it gets to 'Prepare Hard Drive'. Chose the 'Manually configure block devices' option and setup your swap and / partitions (they should be sda3 and sda4). Chose the right filesystems and mount points.

Continue on with the installation, chose GRUB as the bootloader when prompted. If you want to view detailed progress you can use fn-alt-f7 to switch to that virtual terminal, and fn-alt-f1 to switch back. I didn't bother installing anything other than the 'base' metapackage.

Do *NOT* setup the bootloader. Exit the installer and go back into refit and sync the partitions again (last time, I promise). Then boot back into the arch shell:

 mount /dev/sda4 /mnt
 mount -o bind /dev /mnt/dev
 chroot /mnt
 grub

At the grub shell, do the following (I assume your linux / partition is sda4):

 root (hd0,3)
 setup (hd0,3)
 quit

Reboot again, and the linux option should boot you into grub, from whence you can boot into linux.

Configuring all the hardware

TODO