|
I'm not exactly able to understand what you're trying to do. If all you want to do is clone a microSD card, then asumming that they're of the same size or, the SD card onto which the clone is being written is bigger, All you need to do is mount both. Let's just say that the source SD card is "/dev/sdc" and the destination SD card is "/dev/sdd", simply type the following commands into the terminal and you'll be gold:
- sudo dd if=/dev/sdc of=/dev/sdd
Copy code
Or on the other hand you could do the following if the SD card to which you're writing is smaller-:
- sudo dd if=/dev/sdc of=~/clone.img # of, btw can be anything. It's the path to the img file that you're gonna rip off the SD card
Copy code
Then you can simply use fdisk on that img file to resize it, then dd it onto the SD card
This guide should be a better way to go about it - http://softwarebakery.com/shrinking-images-on-linux |
|