![]() |
Two Boot from MMC Maintenance Strategy questions
So last night I decided to take the plunge and both update my N800 internal flash to the current rev, and set it up for booting from mmc at the same time. I believe I've got it working fine, but I have two questions in regards to maintaining a solid system...
1. I have read (notably here) that one caveat of booting off mmc is the propensity for the card to be get corrupted, and that a "fsck -fy /dev/mmcblk0p2" needs to be run every now and again. If that is the case, is it a bad idea to simply run this command on every boot, especially since I hardly ever turn off/reboot the device? Will it be painfully slow? If it's not a bad idea, is there a boot script that would be an ideal place to run the command? 2. One of my intentions for booting off mmc is to maintain a baseline system on my powerbook so I can simply replace the necessary file structure if things go bad. Is there an ideal system to for doing this? Can I simply make a .dmg of the FAT partition, drag and drop the entire directory tree, and keep it safe? Or should I use a tar command to preserve it? Am I even correct in assuming that saving the contents of the FAT partition will enable me to get back to a default state quickly? I believe I read that as one of the benefits somewhere. I'm not a Linux n00b, but I'm also not an everyday user, so please be gentle. :o |
Re: Two Boot from MMC Maintenance Strategy questions
Quote:
As for fsck, well there is no fsck in initfs (which mounts the ext2 rootfs) and when the system already boots into rootfs where fsck.ext2 may be available, it is too late. You could remount rootfs read only and then run it and them probably reboot if it did some modifications (not sure how to check for this, probably some fsck exit code). fsck.ext2 could be added to initfs but using ext3 is better idea. Quote:
|
Re: Two Boot from MMC Maintenance Strategy questions
Yeah after I posted that I noticed that the FAT partition was empty. Incidentally, I created a disk image in OSX Disk Utility of the entire mmc. It recognized all the partitions and their formats...even though it couldn't mount the ext2 ones. My original intention was just to be able to burn the image back on the mmc in case of a catastrophic error, but I have a feeling that this simply won't work. Right? (I told you I was new at this!)
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. :rolleyes: I'll look for mkfs.jffs2 and sumtool asap! I just needed a push in the right direction. Thanks... |
Re: Two Boot from MMC Maintenance Strategy questions
Quote:
Quote:
Code:
cd /opt Code:
cd /opt |
All times are GMT. The time now is 03:32. |
vBulletin® Version 3.8.8