HowTo Clone/Restore an SD Card

Clone

  1. diskutil list
  2. sudo dd if=/dev/diskX of=./clone.dmg
    this takes about 1 hour for a 32 GB card.

Restore

  1. diskutil list
  2. diskutil unmountDisk /dev/diskX
  3. sudo newfs_msdos -F 16 /dev/diskX
  4. sudo dd if=./clone.dmg of=/dev/diskX
    this takes about 8+ hours for a 32 GB card.