HowTo Clone/Restore an SD Card
Clone
- diskutil list
- sudo dd if=/dev/diskX of=./clone.dmg
this takes about 1 hour for a 32 GB card.
Restore
- diskutil list
- diskutil unmountDisk /dev/diskX
- sudo newfs_msdos -F 16 /dev/diskX
- sudo dd if=./clone.dmg of=/dev/diskX
this takes about 8+ hours for a 32 GB card.