1

I've been trying to find a good way to install PureOS on a Macbook Pro. So far I've only seen one very convoluted solution that involves installing a trial version of Windows 10. I'm looking for a more direct solution to get the Macbook's EFI to recognize and boot from a PureOS live USB.

Preferably, I'd like to find a generalized solution to make a Mac-bootable USB from any .iso file, but something that works specifically for Debian-based distros would be fine too.

1 Answer 1

1

If the .iso contains all the right software, correctly configured, to boot a Mac from a flash drive (see note at bottom of this Answer), then you can do this:

  1. Convert the .iso to a .dmg:

    hdiutil convert -format UDRW -o filename.dmg filename.iso

  2. Connect your USB drive to your Mac.

  3. Make sure you've got all the data you care about off of all partitions/volumes of the entire drive.

  4. Use the output of this command to figure out which disk # your USB drive shows up as:

    diskutil list

    You're looking for an identifier like /dev/diskN.

    NOTE THE NUMBER AND USE IT IN PLACE OF N BELOW.

  5. Unmount all volumes from this disk to prepare it to be overwritten

    diskutil unmountDisk /dev/diskN

  6. Use dd to write the .dmg to the flash drive (note that we need the "rdisk" version of the disk device for this command; don't forget the 'r'!)

    sudo dd if=filename.dmg of=/dev/rdiskN bs=1m

  7. Eject the disk so we can use it somewhere else:

    diskutil eject /dev/diskN

Note that if your .iso is set to boot like an ISO9660 CD-ROM instead of a hard drive, there's a Perl script called "isohybrid.pl" that you can run against your .iso to make it capable of hybrid booting (like either a CD-ROM or a hard drive). So you may need to run that against your .iso before you do any of the steps above.

I have successfully performed these steps on a "System Rescue CD" bootable Linux .iso and booted MacBooks from it.

2
  • Excellent. Can you convert a .iso to a .dmg on GNU/Linux or do you have to do that part on an OSX/MacOS command line?
    – user951150
    Commented Feb 7, 2019 at 21:55
  • Linux's support for .dmg seems to be rudimentary or lacking. There might be ways to go the other way (from .dmg to .iso) on Linux, but it's unclear to me if there's a good way to go from .iso to .dmg on Linux.
    – Spiff
    Commented Feb 8, 2019 at 1:03

You must log in to answer this question.