Journalling Flash File System
From DD-WRT Wiki
Revision as of 07:12, 15 January 2006 (edit) 69.118.10.41 (Talk) (→If everything else fails) ← Previous diff |
Revision as of 04:57, 30 January 2006 (edit) (undo) 216.197.224.145 (Talk) Next diff → |
||
Line 43: | Line 43: | ||
*NOTE: Even though you are not using the jffs partition on the router, you must still have jffs enabled in order to use ipkg. Disabling jffs also disables ipkg! | *NOTE: Even though you are not using the jffs partition on the router, you must still have jffs enabled in order to use ipkg. Disabling jffs also disables ipkg! | ||
+ | |||
+ | *OTHER NOTE: To save you the steep learning curve experienced by many users, if you're getting full errors and you're using a WRT54G, reflash with the mini distro. The normal version is too big! |
Revision as of 04:57, 30 January 2006
Contents |
Introduction
journaled flash file system (jffs) is used to store user programs and data into otherwise inaccessible flash memory. Inspite of general purpose read/write one must take care not to store frequently changed files on it as this can cause flash wear out. Journal file is used to minimize frequent overwrites.
Instructions
To enable jffs (please read note about "flash wear out" above!) enter the following commands (when you're connected via ssh or telnet on a shell):
nvram set sys_enable_jffs2=1
nvram set sys_clean_jffs2=1
nvram set jffs_mounted=1
nvram commit
reboot
might reboot/hang after cleaning which might take long, so be patient
Maybe the options in the webinterface below work for you (they didn't for me):
Administration:
JFFS2 enabled: X Enable Disable
Clean JFFS2: X Enable Disable
Testing
Log in and run:
ipkg update
ipkg list
Tested on pre5
If everything else fails
If you can't write to /jffs but need it for example for "ipkg" then you can umount it and then, if have a NAS or a share on a pc, mount a networkt share to /jffs.
I personally use a startup script to unmount/mount /jffs everytime the router starts up.. Works perfectly.
My boot script to mount the jffs partition is:
umount /jffs smbmount //<server's IP>/jffs /jffs -o username=<your username, guest if hosted on windows>,password=<your password>
- NOTE: Even though you are not using the jffs partition on the router, you must still have jffs enabled in order to use ipkg. Disabling jffs also disables ipkg!
- OTHER NOTE: To save you the steep learning curve experienced by many users, if you're getting full errors and you're using a WRT54G, reflash with the mini distro. The normal version is too big!