| The Following User Says Thank You to dacb For This Useful Post: | ||
|
|
2006-11-27
, 21:37
|
|
|
Posts: 1,245 |
Thanked: 421 times |
Joined on Dec 2005
|
#2
|
1. Has anyone investigated using a/the compression optional mode of jffs2 for their root filesystem on the second partition of the mmc?
2. Has anyone managed to get their ext2 on the second mmc partition to be fsck'ed on boot (when required)?
|
|
2006-11-27
, 22:32
|
|
Posts: 286 |
Thanked: 259 times |
Joined on Jan 2006
@ Cambridge, England
|
#3
|
A couple of thoughts/questions regarding the root filesystem:
1. Has anyone investigated using a/the compression optional mode of jffs2 for their root filesystem on the second partition of the mmc?
Just to head off any tangential threads: Please do not suggest using ext3 - ext3's journal(s) is written to the same sectors of the flash device (everytime it is updated) which is a big no-no for those of us who want to keep our MMC viable for the long haul. Think: flash on swap.
|
|
2006-11-27
, 22:42
|
|
|
Posts: 12 |
Thanked: 1 time |
Joined on Nov 2006
@ Earth, Sol, Milky Way, Universe
|
#4
|
I once tried extracting/decompressing the root partition data from Nokia's image file, then re-compiling the data (uncompressed where possible, which means only the root partition) into a new image. It wasn't straightforward - for one thing, the flasher has a limit on the size of the partition (about 100 MB? maybe 80... I don't remember), and the uncompressed version was more than 100 MB. I had to remove the video and MP3 files in order to get it under 100 MB.
I didn't notice any significant speedup, so I haven't continued that effort.
Is it set up to be checked in the /etc/fstab file? The last (sixth) field in each line determines when (if ever) a fsck is performed. "0" means never check. "1" is generally used only for the boot partition, and all other checked partitions are "2".
...
Even if that file is set up correctly, there still needs to be a boot script (in /etc/rc*) to actually perform the call to "fsck -A". Make sure that this is the case. If not, you'll have to write one (or steal one from another linux distro).
|
|
2006-11-28
, 08:02
|
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#5
|
A couple of thoughts/questions regarding the root filesystem:
1. Has anyone investigated using a/the compression optional mode of jffs2 for their root filesystem on the second partition of the mmc? I know of this patch: http://sourceware.org/ml/ecos-patche.../msg00039.html and IIRC there is a mount option based upon this idea to disable compression of jffs2 filesystems. The advantage of this would be a journaled, flash-safe filesystem without the uber performance hit that the compression has, particularly on our Nokia's.
2. Has anyone managed to get their ext2 on the second mmc partition to be fsck'ed on boot (when required)? I do not use bootmenu, opting rather to use flasher's --set-root-device option. I notice from dmesg that my ext2 filesystem is not checked at boot. Mounting an un-journaled filesystem without fscking it gives me the willies (http://www.urbandictionary.com/define.php?term=willies).
ext3's journal(s) is written to the same sectors of the flash device (everytime it is updated) which is a big no-no for those of us who want to keep our MMC viable for the long haul.
|
|
2006-11-28
, 08:14
|
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#6
|
Interestingly enough, the /etc/fstab on partition 2 of my MMC is clobbered at each boot. I haven't yet had a chance to determine where in the initfs's boot scripts this is occuring (partially because of the aforementioned problem with Fedora loopback mounting the FIASCO initfs jffs2). Once identified, that would probably be the place to initiate the fsck. The problem is further complicated by the fact that the initfs, as far as I am aware (though I would love to be wrong), does not have e2fsck.
|
|
2006-11-29
, 20:39
|
|
|
Posts: 12 |
Thanked: 1 time |
Joined on Nov 2006
@ Earth, Sol, Milky Way, Universe
|
#7
|
|
|
2007-10-22
, 18:33
|
|
|
Posts: 3,096 |
Thanked: 1,525 times |
Joined on Jan 2006
@ Michigan, USA
|
#8
|
|
|
2007-10-22
, 20:18
|
|
|
Posts: 70 |
Thanked: 1 time |
Joined on Sep 2007
|
#9
|
|
|
2007-10-22
, 20:33
|
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#10
|
1. Has anyone investigated using a/the compression optional mode of jffs2 for their root filesystem on the second partition of the mmc? I know of this patch: http://sourceware.org/ml/ecos-patche.../msg00039.html and IIRC there is a mount option based upon this idea to disable compression of jffs2 filesystems. The advantage of this would be a journaled, flash-safe filesystem without the uber performance hit that the compression has, particularly on our Nokia's.
2. Has anyone managed to get their ext2 on the second mmc partition to be fsck'ed on boot (when required)? I do not use bootmenu, opting rather to use flasher's --set-root-device option. I notice from dmesg that my ext2 filesystem is not checked at boot. Mounting an un-journaled filesystem without fscking it gives me the willies (http://www.urbandictionary.com/define.php?term=willies).
Just to head off any tangential threads: Please do not suggest using ext3 - ext3's journal(s) is written to the same sectors of the flash device (everytime it is updated) which is a big no-no for those of us who want to keep our MMC viable for the long haul. Think: flash on swap.
Last edited by dacb; 2006-11-27 at 22:05.