I am trying to clone an SD card which may contain a number of partitions, some of which Ubuntu cannot recognize. Generally, I want to clone the whole volume, not only some partition. So, I mount the SD card and see something like this in the Log viewer: kernel: 262.025221 sdc: sdc1 sdc2alex@u120432:$ ls /dev/sdc./dev/sdc /dev/sdc1 /dev/sdc2Since I want to copy the whole disk, I execute: dd if=/dev/sdc of=sdimage.img bs=4MFile 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=4MThe problem is that the second dd command hangs on some stage, and never succeeds. After this, I cannot reboot or shut down computer, and I need just to switch power off.Is this the correct approach? Maybe there is another way to clone an SD card?OS: (Precise Pangolin), 32 bit.
Find up to 8GB memory and 2TB SSD storage for your HP Pavilion dv6 series notebook. Certified, guaranteed compatible RAM upgrades for your Pavilion notebook. Lifetime warranty. All SSDs supplied are from Crucial; the leader in SSD reliability and compatibility.
Insert the original SD card and check the name of the device (usually mmcblkX or sdcX): sudo fdisk -lYou might see: Device Boot Start End Sectors Size Id Type/dev/mmcblk0p1. 20 2097152 1G c W95 FAT32 (LBA)/dev/mmcblk0p2 20628 13.9G 83 LinuxIn my case the SD card is /dev/mmcblk0 (the.p1 and.p2 are the partitions).Now you have to unmount the device: sudo umount /dev/mmcblk0Now to create an image of the device: sudo dd if=/dev/mmcblk0 of=/sd-card-copy.imgThis will take a while.Once it's finished, insert the empty SD card. If the device is different (USB or other type of SD card reader) verify its name and be sure to unmount it: sudo fdisk -lsudo umount /dev/mmcblk0Write the image to the device: sudo dd if=/sd-card-copy.img of=/dev/mmcblk0The write operation is much slower than before.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |