I'm guessing you've had some problems with the other CloningEdisons instructions (https://gist.github.com/sxing/f02a4a1703b16803a7d4) if you're here. Sorry about that...
This is the path I take when things don't work out, usually related to a completely messed up data corruption that was my fault.
-
Acquire a microSD card and an Edison breakout that has an microSD card slot, like the Arduino Expansion board. Make sure the microSD card is at least 4GBs in size.
-
Make sure nothing that needs to be copied over is in your /home folder. This won't be copied over in the process.
-
Follow these instructions to set up the Edison you want to clone to boot from USB: https://communities.intel.com/thread/61048
-
Boot to the microSD card.
-
Make a ext4 image that is the same size as your / partition. If you've already made an image, I recommend not recreating a new image and skip this step to save some time. This gets me pretty close in size without being larger:
dd if=/dev/zero of=/edison-image-edison.ext4 count=1525 bs=1M mkfs.ext4 /edison-image-edison.ext4
-
Mount the partition to copy and the generated ext4 image to dump all the files in. After doing so, start the copying:
mkdir /image mkdir /emmc mount /dev/mmcblk0p8 /emmc mount /edison-image-edison.ext4 /image rm -rf * /image/* cp -r /emmc/* /image/ umount image umount emmc
-
Transfer the edison-image-edison.ext4 file to your computer. You should follow Steps 3-5 of the CloningEdisons process I referenced above now. I recommend connecting the microSD card to your computer to copy it over.
NOTE: Don't use resize2fs for images built using this path. For some reason, they always shrink size of the the / partition after I flash the image onto an Edison.
Hope this helps! Let me know if I should add anything or clarify stuff by messaging me on twitter @stevencrossing or emailing me at [email protected]. Comments are cool too, but I don't think I get the notifications for comments on a Gist.