En bra gratis blogg
Lista bloggar Om Bloggis
Skapa konto Logga in
atte

attes tankar, till vardags och på fest

Ubuntu 9.04 on Macbook Air 2,1

Taggar: Ubuntu Macbook Air Laptop Install 2,1

Update 2009-11-11: This post is about old version 9.04, please consider the better-working 9.10 I am writing about here instead.

My brand new little Macbook Air arrived the other day and I spent quite some time getting Ubuntu 9.04 (Jaunty) to run on it. Since I could not find alot of info on the web I thought I would switch to English for today and scribble down some notes that might help others out there!

First of all, I don't know if it is possible to set up netboot for the installation, I could not be bothered and my colleague was kind enough to lend me a USB CD drive so I went for the 32-bit CD install.

The Bootcamp app in Macos can be used to resize and make space for the Ubuntu partition. Holding the alt key during the DOOOOOOH sound at boot time gives a boot menu where the USB CD drive is recognised. However, just booting the plain vanilla Ubuntu disc reboots the computer and the USB port dies.

It can be healed by doing an SMB reset (google it). I did not know what that was so I ended up calling support and the guy told me to unplug the USB drive and hold left shift + ctrl + alt + power button for 12 seconds. Sometimes that works but sometimes I also have to do and additional 5 sec powerbutton... whatever that does?

To get the installation (or just live session) going, add noapic and remove quiet and splash from the kernel command line (F6 to add noapic and then arrow keys and backspace to edit the commandline).

I started a live session and installed cryptsetup before I started the installation. This makes is possible to create an encrypted partition that can be used as root during installation. (_cryptsetup luksFormat /dev/sda3_ and cryptsetup luksOpen /dev/sda3 cryptoroot and mkfs.xfs /dev/mapper/cryptoroot, note that you need to save about 200 meg for a separate /boot partition if you opt for the encrypted root).

During the installation it is a good idea to click Advanced and make sure Grub is only installed to the beginning of the Ubuntu partition, or it will fail. To get a nice start menu for MBR check out rEFIt.

There are some Macbook specific packages to enable most of the hardware available from the Mactel Support Team.

The only problem I have now is that Ubuntu only boots about half of the times I try. The other half of times the laptop just reboots again. The trick I have found so far is to have noapic and acpi=force on the command line.

Will update this post when I know a better way of booting :-)

And a final word about the Macbook Air -- it is a really nice piece of hardware that I can really recommend. Using it together with Ubuntu gives me the best of both worlds: world class hardware and OS at the same time!

Skrivet av atte, 2009-06-25 22:56

I too use the ALT option to boot up but it does only work about 1/2 the time.. :/

Skrivet av ril3y, 2009-06-27 03:18

Thanks for this article. I was able to get Ubuntu installed on my Macbookair2,1 using your experience. I too am unable to boot Ubuntu consistently on the MacBook Air. Furthermore, I could not get it to work at all with Bootcamp-method (pressing 'Alt' during boot) and had to install rEFIt to get things to work.

Cheers,
--
CrayzeeWulf

Skrivet av CrayzeeWulf, 2009-08-09 06:56

Something I have noticed is that Ubuntu booting is more often succesful after first booting MacOS (and just selecting reboot at the login screen).

Skrivet av atte, 2009-08-09 23:13

Skrivet, a couple of questions:

1. Are you running Mac OS X 10.5.8 on the MacBook Air?
2. Are you running 64-bit Ubuntu on the MacBook Air?

Thanks,
--
CrayzeeWulf

Skrivet av CrayzeeWulf, 2009-08-10 19:02

CrayzeeWulf: 1. Will have a look next time I boot MacOS. 2. No, 32-bit, makes it easier to get sound and flash (etc) to work...

Skrivet av atte, 2009-08-15 00:55

Thanks for the response, Skrivet. I have also installed 32-bit Ubuntu 9.04 on my MacBook Air. However, I have not been able to get the sound to work. Are you passing any specific option to the snd-hda-intel module?

Also, I have created a page for MacBook Air 2,1 on Ubuntu community documentation:

https://help.ubuntu.com/community/MacBookAir2-1/Jaunty?highlight=%28\bCategoryMac\b%29

Your help in keeping this page updated will be greatly appreciated.

Thanks,
--
CrayzeeWulf

Skrivet av CrayzeeWulf, 2009-08-17 03:06

CrayzeeWulf: options snd_hda_intel model=mbp3 is what I currently have. Line out works but I have not gotten the speaker to work yet.

Skrivet av atte, 2009-08-17 11:31

If the laptop stalls during boot, tap the powerbutton twice... usually it will resume booting ubuntu. This is on a Macbook Air 1,1 so your mileage may vary

Skrivet av Ryan, 2009-10-09 01:14

Kommentera:

Signatur:
Skriv här:
Vad heter Pippis författare i förnamn (stor första bokstav)?