View Single Post
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#18
Originally Posted by Benson View Post
If you have two SDs of identical capacity
Where identical really means down to last byte so it should better be exactly same manufacturer/brand, not just two random 8 gig cards. Output of cat /proc/partitions tells exact size.

Originally Posted by Benson View Post
Code:
dd if=/dev/mmcblk0 of=/dev/mmcblk1
if your second card is larger then you can copy to file (so you can have other files there too)
Code:
dd if=/dev/mmcblk0 of=/media/mmc1/mmcblk0backup.bin
or you can pipe it through gzip to make it smaller (may take longer)

Code:
dd if=/dev/mmcblk0 | gzip > /media/mmc1/mmcblk0backup.bin.gz
This is all easy but also very wasteful since you are backing up unused space too. More sophisticated way is to backup partition table (via dd or sfdisk) and then backup just files from each partition (via tar) and later restore partition table, re-create filesystems and then restore all files.

Best would be to port partimage or similar tool to maemo.
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.
 

The Following User Says Thank You to fanoush For This Useful Post: