View Single Post
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#106
Originally Posted by ipse View Post
can I copy the content of SD into flash (reverse cloning)?
I want to use my N800 booted from SD at all times (just as a safety measure), but inevitably the 2 versions will be out-of-sync (due to updates and new sw installed).
Yes, for small differences use rsync. For bigger ones it is best to recreate whole jffs2 image from current SD and flash it to internal flash while booted from mmc. The naive way -
mount /dev/mtdblock4 /opt
rm -rf /opt/*
tar clone from mmc2 to mtdblock4
would work too but will be far from optimal, mount and access time will be poor, jffs2 is journaled and there is nothing but journal so with this way the filesystem will consist of huge number of tiny records/logs of separate changes for removing/creating each file. Making new jffs2 image gives best performance. Search this forum for mkfs.jffs2 and flash_eraseall.
__________________
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.