Skip to content

Instantly share code, notes, and snippets.

@tomaszwostal
Last active November 18, 2018 10:36
Show Gist options
  • Save tomaszwostal/a5ba66a022d2fff7dcdb746324b3489c to your computer and use it in GitHub Desktop.
Save tomaszwostal/a5ba66a022d2fff7dcdb746324b3489c to your computer and use it in GitHub Desktop.
Clone RaspberryPi SD card on macOS

Clone RaspberrPi SD card on macOS

Locate SD Card

diskutil list

Clone SD Card

sudo dd if=/dev/disk2 of=/Users/tomek/Desktop/rpi.dmg

Insert a new one card and once again locate it

diskutil list

Unmount SD Card

diskutil unmountDisk /dev/disk2

Format SD Card

sudo newfs_msdos -F 16 /dev/disk2

Restore SD Card from imge

sudo dd if=/Users/tomek/Desktop/rpi.dmg of=/dev/disk2 bs=5m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment