View Single Post
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#4
Originally Posted by crackhead View Post
User schmots wrote in his blog (http://schmots.blogspot.com/) that running "fsck -fy" on mmcblk0p2 after booting from internal flash would clear up corruption issues. The post itself was informative to me. Is his advice atually incorrect? If so, someone should tell him.
You can run it but you need to boot from different rootfs (i.e. flash or other partition then mmcblk0p2 ) so the partition is not used at the time you do it


Originally Posted by crackhead View Post
I'll look for mkfs.jffs2 and sumtool asap! I just needed a push in the right direction. Thanks...
These are needed only if you want to backup internal flash, not system on mmc (unless you want it to restore it to internal flash later). For backing up ext2, creating gzipped tar archive to FAT partition (when booted from internal flash) may be the best option. Later you can boot from internal flash again and restore it. The procedure is similar to cloning i.e. you mount mmc partition somewhere (like /opt) and then run something like
Code:
cd /opt
/path/to/GNU/tar -zcvf /media/mmcX/mybackup.tgz .
to back it up or
Code:
cd /opt
/path/to/GNU/tar -zxvf /media/mmcX/mybackup.tgz
to restore it (on reformatted partition)