What if you copied files in Data partition, wrote image, then pasted the original data back into the Data partition on newly flashed SD card?
toggle quoted message
Show quoted text
That would work too - I hadn't thought of it.
?
What I did instead was to add a few lines to S01create_data script and use 'blkid' to see if there is a preexisting 'DATA' partition; if there's one I just mount it ().
This way I can just run something like:
?
dd if=sdcard.img of=/dev/sdX bs=8M
and even if it overrides the MBR, S01create_data is still able to find the data partition.
?
This is why I hope this approach would also work for those using other applications writing to the SD card, as long as they don't overwrite the content of the data partition.
?
Franco