I am trying to clone SD card which may contain number of partitions, some of them Ubuntu cannot recognize. Generally, I want to clone the whole volume, not only some partition. So, I mount SD card and see in the Log viewer something like this:
kernel: [ 262.025221] sdc: sdc1 sdc2
alex@u120432:~$ ls /dev/sdc* /dev/sdc /dev/sdc1 /dev/sdc2
Since I want to copy the whole disk, I execute:
dd if=/dev/sdc of=sdimage.img bs=4M
File sdimage.img, 7.9 GB (7,944,011,776 bytes) is created (SD card is 8 GB). Now I mount another SD card and execute:
dd if=sdimage.img of=/dev/sdc bs=4M
The problem is that the second dd command hangs on some stage, and never succeeds. After this, I cannot reboot or shut down computer, and need just to switch power off.
Is this correct approach? Maybe there is another way to clone SD card?
OS Ubuntu 12.04, 32 bit.