Last active
August 29, 2015 14:01
-
-
Save KingScooty/b8dbc8751012d46307c2 to your computer and use it in GitHub Desktop.
Flash an SD with a Linux image on a Mac
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
#Download distro to desktop and unzip. | |
cd ~/Desktop | |
#Ensure SD card is inserted and run | |
df -h | |
#Make a note of the SD card. | |
#It should looks something like: | |
#/dev/disk1s1 15Gi 2.3Mi 15Gi 1% 0 0 100% /Volumes/UNTITLED | |
#Unmount the SD card | |
diskutil unmount /dev/disk1s1 | |
#Flash the SD card | |
sudo dd bs=1m if=2014-01-07-wheezy-raspbian.img of=/dev/disk1s1 | |
#Wait a while (it can take a long time, so don't panic) | |
#Once complete, eject disk | |
diskutil eject /dev/disk1s1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment