Skip to content

Instantly share code, notes, and snippets.

@heldr
Last active January 1, 2016 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heldr/8214917 to your computer and use it in GitHub Desktop.
Save heldr/8214917 to your computer and use it in GitHub Desktop.

####How to create a bootable usb linux setup on mac (based on Trisquel tutorial )

$ hdiutil convert -format UDRW -o ~/path/to/linux.dmg ~/path/to/linux.iso

Insert your USB stick.

$ diskutil list

again to figure out the device file assigned to your USB stick (e.g. /dev/disk2).

$ diskutil unmountDisk /dev/diskN

where N is the number from the last command. (If your USB stick is /dev/disk2, N would be 2).

$ sudo dd if=/path/to/linux.dmg of=/dev/rdiskN bs=1m

If you see the error dd: Invalid number '1m', replace 1m with 1M in the previous command.

$ diskutil eject /dev/diskN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment