Cloning your SD Card on Mac

In this article we’ll clone the sdcard

Using a mac load up the file

using diskutil

sudo diskutil list

Write the file out to an image file.

sudo dd if=/dev/disk2 of=~/Desktop/stretchlite.dmg

diskutil eject /dev/disk2

Once complete and you’ve ejected the sdcard, insert the new sdcard and swap the command to beigin cloning.

sudo dd if=~/Desktop/stretchlite.dmg of=/dev/rdisk2 bs=16m

You now have a base image. Confirm the validity Test your image to make sure it works by cloning a new sdcard. bs=16 is used for the blocksize. It speeds up the cloning process. The base image is 1.4GB


$sudo dd if=~/Desktop/stretchlite.dmg of=/dev/rdisk2 bs=16m
1902+1 records in
1902+1 records out
31914983424 bytes transferred in 2491.935825 secs (12807306 bytes/sec)

diskutil eject /dev/disk2


I use the site below as a reference.–mac-59911

Leave a Reply

Your email address will not be published. Required fields are marked *