Skip to content

Instantly share code, notes, and snippets.

@KingScooty
Last active August 29, 2015 14:01
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 KingScooty/b8dbc8751012d46307c2 to your computer and use it in GitHub Desktop.
Save KingScooty/b8dbc8751012d46307c2 to your computer and use it in GitHub Desktop.
Flash an SD with a Linux image on a Mac
#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