Ubuntu 11.10 and OSX Lion dual boot on MacBook Pro 8,2 even with FileVault2!

Standard

Hi there guys – so I heard that the latest OSX / MacBook Pro was causing issues for people wanting to dual boot with the latest Ubuntu release so I decided to have a go. OK so I’m not going to pretend it was easy but you should be able to get it running if you just follow this simple set of steps. I have included notes about what you will have to do differently if you are using FileVault2 also – the encryption of the main partition makes booting a tad trickier!

  1. Download the latest Ubuntu, 64bit ISO from ubuntu.com I recommend the 64bit build as I do for all software running on the MacBook Pros. Once you have downloaded the file you need to burn a CDR using Disky Utility’s “Burn” feature.
  2. Prepare a partition to install UbuntuUsing Boot Camp Assistant or Disk Utility you should create 1 new partition at the end of the disk at least 50GB in size. We will be using only 1 partition to get round complexities with the partition syncing required with complex partition schemes. This means a swap file should be used but that is performing well enough for me.
  3. Download and install rEFIt Using the automatic installer should be enough for most people but if you are using FileVault2’s full disk encryption you will need to perform the following steps in a terminal once installation has completed:
    sudo -s
    cd /tmp
    mkdir efi
    mount -t msdos /dev/disk0s1 efi
    cp -r /efi/refit efi/EFI/
    bless --mount /tmp/efi --setBoot --file /tmp/efi/EFI/refit/refit.efi --labelfile /tmp/efi/EFI/refit/refit.vollabel

    That code will copy the rEFIt booter to the hidden system boot partition so it can be read at boot time.

  4. Boot the Ubuntu CD and run a standard installation into the partition you createdThe installation should proceed as normal but be sure to allow the “closed” software to be installed (this helps with media playback etc) and choose a “custom” installation type when prompted. This will take you to the partition management section. Here you must:
  5. Choose the new partition to use the mount point “/” and format it in ext4
  6. Tell the bootloader to install to /dev/sda (yes, I know the MBR is not what is recommended in older OSX dual boots but due to some new restrictions with the booting it is the only way to go)
  7. Other than that pick your preferences etc – the install should take less than an hour unless you chose to download lots of updates and you have a slow internet connection!
  8. Reboot into OSX and re-enable rEFItIf rEFIt disappeared during the installation (which is more likely if you are using FileVault2) you need to execute the following in a terminal for a normal installtion:
    cd /efi/refit
    sudo ./enable.sh

    or for a FileVault2 setup use the following terminal commands:

    sudo -s
    cd /tmp
    mkdir efi
    mount -t msdos /dev/disk0s1 efi
    bless --mount /tmp/efi --setBoot --file /tmp/efi/EFI/refit/refit.efi --labelfile /tmp/efi/EFI/refit/refit.vollabel

    That should get the boot process back in order.

  9. Restart and choose “Linux” from the boot options – hooray!At this point you should see tux sitting on a grey screen for around 5 seconds before linux starts booting. if you see anything else then you probably messed up the partition options in the ubuntu installer – read my doc above and try again…
  10. Set up a swap file to make up for the missing swap partitionAs we have no swap partition we will need to set up a swap file instead. Remember that the file should be about twice the size of your installed RAM and enter the following commands into a root terminal:
    sudo dd if=/dev/zero of=/mnt/8GB.swap bs=1024 count=524288
    sudo chmod 600 /mnt/8GB.swap
    sudo mkswap /mnt/8GB.swap
    sudo swapon /mnt/8GB.swap

    Then you need to edit the file /etc/fstab and add the following line at the end:

    /mnt/8GB.swap  none  swap  sw  0 0

    There is no need to reboot at this point – there is more to do

  11. Whilst connected to an ethernet cable install the wireless and video driversI will document this more at a later date but you will, after a short while, see a notification icon about “proprietory drivers” here you want to install the graphics and wireless drivers to acheive full compatibility.

I think that covers everything. Please get in touch if you have any problems following this HowTo.

Portal 2 amazes!

Standard

OK this might be a spoiler so put your fingers in your ears if you have not completed Portal 1 yet!

Following from the fantastic first game which, whilst short, was perfectly formed and one of the best thought out games of it’s year we are taken on a new journey with GlaDoS.

You remember her right? The manic AI which hated you, tricked you and tried to kill you on an hourly basis? Well, it seems that killing her was not quite enough… Yes I know, having the game update with an altered ending did not exactly hide this part but what they did keep well hidden was how much time and thought had gone into the sequel!

Portal 2 contains all of the puzzles, humour and creativity of the original but on a grand new scale. You will be encouraged and taunted by a selection of celebrity voices whilst you undergo testing on a whole new level. No longer clear who is the good guy, who is the bad guy or what to beleive you tumble through an ever expanding world of test chambers, back alleys and condemned caverns that keep getting grander and trickier.

Unlike the first game the second rapidly becomes about figuring out where the exit might be nevermind how to get there! One of my person favourite sections is when you are dropped down a seemingly unending pit to end up in the old foundations of Aperture science which seems to have been formed over 25 years ago. Attention to details and textures show how the company has clearly come a long way since the initial days of simple tests for the advancement of science.

With unending wit, beautify levels that defy logic physics or even the capacity of your graphics card Portal 2 is sure to keep you hooked and have you straining your brain right to the final chapter!