Skip to content

Instantly share code, notes, and snippets.

@zackn9ne
Last active July 2, 2018 15:43
Show Gist options
  • Save zackn9ne/ad2cb0edd9d52b1bccdc558e5cc5984c to your computer and use it in GitHub Desktop.
Save zackn9ne/ad2cb0edd9d52b1bccdc558e5cc5984c to your computer and use it in GitHub Desktop.
unetbootin for High Sierra
#!/bin/sh
diskutil list
echo "Hello what disk to erase? eg disk2"
read killthisdisk
sudo diskutil eraseDisk FAT32 EXTERNAL MBRFormat /dev/$killthisdisk
read -n 1 -s -r -p "When you are in UNetBootin, select the disk you choose, but the s1 prefix or it wont do anything when you press OK. Press any key to continue"
sudo /Applications/unetbootin.app/Contents/MacOS/unetbootin targetdrive=/dev/$killthisdisk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment