Skip to content

How to Flash SD cards on Mac

This guide shows you how to flash SD cards to mount files, specifically .img files for Raspberry Pi, Android TV Shield, and any other device. Make sure your SD card is empty. If not, you can use Mac’s disk utility application to erase the contents of your SD card.

1. Plug in your SD card and verify that your SD card is attached by typing in:

diskutil list

Keep track of which path is your SD card because if you enter the wrong path, you can do irreparable damage to your computer.

In my case, “/dev/disk2” is the path to my SD card.


2. Now type the following command to unmount the SD card:

diskutil unmountdisk


3. Navigate to the directory of the file you want to flash and type in:

sudo dd if= of= bs=8m

note: bs is the block size of bytes to write or read. You can put (almost) any number here. I just did 8.

Also, your terminal will look like it’s not doing anything. This is normal, and you may have to wait a while before you get any output on your screen.