Ubuntu – How to install on a MacBook Air 3,2 without an external CD drive

macbook-airsystem-installation

I've got a new MacBook Air which I'd like to install Ubuntu on. It has no internal optical drive, I have no external one.

I do have the ability to partition the disk and also have a USB flash drive and USB external hard drive. None of these I've been able to successfully boot the Ubuntu installer with though.

So… how can I install Ubuntu on a MacBook Air 3,2? Thanks in advance.

Best Answer

I had a similar problem on an old Macbook 1.1 with a broken cd-drive. I remember that all the approaches shown in the forums did not work. Try to do the following (it worked for me), the main difference is to format the flash drive as EXT:

  • install refit

  • format your flash drive as EXT4. In the following commands note that you'll need to sudo.

  • install grub on the flash drive as follows: say the device is /dev/sdb and you mount it as /media/usbdrive, then run

    sudo grub-install --root-directory=/media/usbdrive /dev/sdb
    
  • copy the ubuntu iso to /media/usbdrive:

    sudo cp ubuntu-10.10-desktop-i386.iso /media/usbdrive/
    
  • now you want to create the config file for grub inside /media/usbdrive/boot/grub/. Create a file called grub.cfg with your favorite editor (you'll need to sudo): gksudo gedit /media/usbdrive/boot/grub/grub.cfg and paste the following 5 lines inside.

    search --set -f /ubuntu-10.10-desktop-i386.iso
    loopback loop /ubuntu-10.10-desktop-i386.iso
    linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/ubuntu-10.10-desktop-i386.iso persistent debug=
    initrd (loop)/casper/initrd.lz
    boot
    
  • Do a sudo sync to commit all changes to the usb drive.

  • That's it! Reboot, with your usb plugged-in and when refit comes up select the usb drive (in my case, it takes a while to boot (you will not see grub or anything just wait a ), probably it is uncompressing the iso, not sure.

  • Hope it works!

Related Question