Skip to content

Instantly share code, notes, and snippets.

@assafshomer
Forked from gildas/create-mint-sh
Last active May 29, 2018 07:33
Show Gist options
  • Save assafshomer/ad3a36bd95ea9fbaa2e7f373eea6630e to your computer and use it in GitHub Desktop.
Save assafshomer/ad3a36bd95ea9fbaa2e7f373eea6630e to your computer and use it in GitHub Desktop.
Create Linux Mint USB on Mac OS/X
#! /usr/bin/env bash
# Insert a USB key.
# if needed initialize it with MS/DOS FAT and MBR
# Download the Mint ISO image
# Convert the ISO -> IMG
hdiutil convert -format UDRW -o linuxmint-18.3-mate-64bit linuxmint-18.3-mate-64bit.iso
# Run a diskutil list to know the device for the USB key, e.g.: /dev/disk3
# then unmount the USB key *** note the "r" ***
diskutil unmountDisk /dev/rdisk3
# And copy the img on it:
sudo dd if=linuxmint-18.3-mate-64bit.dmg of=/dev/rdisk3 bs=1m
# Eject the USB key and voilà!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment