Cloning an SD card to an image file on Mac OS X

Do you want to clone the image of SD card to your Mac without waiting all day?

  1. Find the location of the card with diskutil list
  2. Type sudo dd if=/dev/rdisk{number found above} bs=5m of=~/your_directory/your_image_name.dmg

Do you want to restore the saved image to an SD card without waiting all day?

  1. Find the location of the card with diskutil list
  2. Unmount the disk with diskutil mountDisk /dev/disk{number found above}
  3. Format the disk with sudo newfs_msdos -F 16 /dev/disk{number found above}
  4. Copy the image with sudo dd if=~/your_directory/your_image_name.dmg of=/dev/rdisk{number found above} bs=5m

If you leave out bs=5m it will take all day!