Last active
August 29, 2015 14:03
-
-
Save richard-to/9a1a71395edcb5af276b to your computer and use it in GitHub Desktop.
Burning image to SD Card on OSX using Terminal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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