Skip to content

Instantly share code, notes, and snippets.

@richard-to
Last active August 29, 2015 14:03
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 richard-to/9a1a71395edcb5af276b to your computer and use it in GitHub Desktop.
Save richard-to/9a1a71395edcb5af276b to your computer and use it in GitHub Desktop.
Burning image to SD Card on OSX using Terminal
#!/bin/bash
# First unzip the disc image with Keka: Right click on the xz file and then do "Open With" and pick Keka
# Next make sure you have an empty microSD card. 4GB minimum will be required.
# List disks on system and find location of microSD card. Look for the 4GB one
diskutil list
# WARNING: Make sure you selected the correct disk. You do not want to overwrite your hard drive,
# which is typically /dev/disk0.
diskutil unmountDisk /dev/disk1
# Write disk image to microSD Card. Assumes file is in Downloads folder.
# Make sure you are using the disk located from `diskutil list`.
sudo dd bs=1M if=~/Downloads/artf-receiver.img of=/dev/rdisk1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment