Mac OS – Clone SD Card

Open terminal and run the following command:
diskutil list
/dev/disk4 is the SD Card we want to clone
sudo dd if=/dev/disk4 of=~/Desktop/clone.dmg

System will ask for User password. Enter it at prompt then Return

Transfer Process will take some time depending on the size of the card to clone. After completion, the file clone.dmg will be available on the Desktop.

To create the clone, insert a blank SD Card into the SD Card Reader of the Mac. Then locate the card:

diskutil list

Unmount the card

diskutil unmountDisk /dev/disk4

Format the SD Card

sudo newfs_msdos -F 16 /dev/disk4

System will ask for the User Password. Enter it at prompt then Return.

Restore the cloned image to the SD Card

sudo dd if=~/Desktop/clone.dmg of=/dev/disk4

Once again, this might take some time. Once completed, the SD Card can be re-used in a Raspberry Pi, identically to the cloned image.