Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to clone micro SD card, using Windows or Linux OS. SD card should be cloned as a whole volume, and not as partition. It may contains several partitions, some of them cannot be recognized by Windows/Linux. Basically, I want to make SD card image file, and then to insert another SD card media and copy this file to it, overriding everything that this media contains. How can I do this?

share|improve this question
up vote 3 down vote accepted

On Linux you can use dd to do that.

dd if=/dev/sdcard1 of=/dev/sdcard2 where if is the origin and of the destination SDs.

or if you want to take the image first and copy it to 2nd SD after:

dd if=/dev/sdcard1 of=~/sdimage 
dd if=~/sdimage of=/dev/sdcard2
share|improve this answer
Thanks. This is exactly what I am trying to do, but from some reason the second stage (image file to SD card) hangs after some time. – 0123456789 Dec 11 '12 at 15:11
Are the SDs the same size? if not, the 2nd needs to be larger than 1st one. If not and SD1 not 100% used, you can try resizing the filesystems and partitions there but that is another topic :) – laurent Dec 11 '12 at 15:46
Finally I managed to do this with dd, but it is necessary to unmount all SD card partitions before running dd. – 0123456789 Dec 13 '12 at 6:04

You could use Clonezilla, which is a small Linux live distro which allows you to create drive images or to exactly copy one drive to another.

share|improve this answer
Thanks, I will try this. – 0123456789 Dec 11 '12 at 15:13

I have used WinImage to do this in the past in Windows.

share|improve this answer
Thanks. Can this program clone the whole media, and not only partition? Is this program free? – 0123456789 Dec 11 '12 at 15:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .