MacBook – How to boot and install Linux or BSD on a 2007 MacBook White via USB

bootefimacbook prounixusb

I have an old MacBook white (Model 2,1 mid-late 2007) which won't upgrade beyond Snow Leopard (OS X 10.6). I have previously installed Debian with a dual boot by using rEFIt and booting from a DVD disk, but the DVD drive doesn't seem to reliably read disks anymore

I would like to install Debian or BSD on this MacBook, either as a dual boot, or as the single OS — alternatively, any current linux distro or even Windows 10 would do.

I have tried a few things, all without success. For the record:

  • Burn .iso (or .cdr) image to DVD (Mac won't read disk)
  • Create a live Debian USB (with MBR partition) with rEFIt
  • Create live Debian USB with Mac Linux USB Loader (will boot on newer Macs, but not on MacBook2,1)

I've seen something about manually putting a GPT table on the USB drive, or creating a separate EFI partition, but since it's more technical and time consuming I didn't get around to it.

Main question: is there a reliable way to boot and install Linux, BSD, Windows (anything not OS X)?

Bonus points for running the OS live from the USB — since after 10 years HD may fail some time soon.

Thanks for helping with recycling an old friend and protecting the environment.

EDIT: both replies, as well as all HOWTOs I could find operate under the assumption that I should be able to hold 'opt' on boot and choose the USB stick. That's not what happens when I have BSD or Linux there, but I am able to choose a USB stick with Mac OS X and install from it.
So the question becomes, what is the difference that prevents that from being done with Linux/BSD?

Best Answer

A bit late but I hope this can help someone. I have a 2,1 (mid-2007) macbook that refuses to boot from anything that isn't an Mac OS X installer. The DVD drive is dead which is a problem that I suspect its common on old laptops. It also refused to boot a 32 bit linux installer from external DVD drive. With and without refind.

Anyway I've managed to install Ubuntu 16 LTS using a weird method that can vary from distro to distro. It might also work on *BSD as long as refind has a driver to read its partition. In any case you will need some advanced knowledge about whatever you are trying to install.

  • Have Mac OS X Lion on a bare minimum partition. I think 20GB is enough. You'll have to live with that on your drive and stuff like firmware updates can make a difference so I recommend installing all the Lion upates.

  • Install refind. Be sure to include the correct driver (or all the drivers with the --alldrivers option).

  • Create a partition using the remaining space. I don't think you can create empty partitions with diskutil. Other tools like fdisk and gpart might work but in the end you just need a partition. In my case that partition was /dev/disk0s4.

  • Make sure to unmount that partition. You can dd some zeroes into it to prevent Mac OS X from mounting it again.

  • Install virtualbox. The latest version that can work on Lion is 4.3.40.

  • Chown the partition to current user. This is required for the next step.

  • Create a VMDK from our partition's block device. In my case the command was "VBoxManage internalcommands createrawvmdk -filename /Users/ulzeraj/VirtualBox\ VMs/rootfs.vmdk -rawdisk /dev/disk0s4"

  • Create a virtual machine using the raw vmdk as its virtual disk and install your desired 32 bit Linux distribution as if you were installing a simple VM. The only catch is to install it on /dev/sda (no partitions - remember that you are already inside a partition). I can guess that some installers might not be happy with this. The installer may also complain about not using swap but you can fix this later.

I've used Ubuntu 16.04 LTS. I had to use the livecd mode to format /dev/sda as EXT4. When prompted about where to install a boot loader I've selected to continue without a bootloader.

If everything went fine refind will detect your new OS and boot it by running the kernel. Legacy mode doesn't work because we don't have a boot loader.