Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save terriblememory/652f7757bfe03bf543d111b08daa7934 to your computer and use it in GitHub Desktop.

Select an option

Save terriblememory/652f7757bfe03bf543d111b08daa7934 to your computer and use it in GitHub Desktop.
Creating an SD card from an image on macos
Disk Utility croaks when you try to do it from the UI but this command line works...
Replace G3X1.dmg with whatever it should be and get the device from DU.
asr imagescan --source ~/Documents/G3X1.dmg
sudo asr restore --source ~/Documents/G3X1.dmg --target /dev/disk-GET-THIS-FROM-DISK-UTILITY --erase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment