Jffs

Eric Sauvageau edited this page Aug 24, 2015 · 3 revisions
Clone this wiki locally

JFFS is a writeable section of the flash memory (the size will vary between router models, with the newer models having a bit over 60 MB of space available), which will allow you to store small files (such as scripts) inside the router without needing to have a USB disk plugged in. This space will survive reboot (but it might NOT survive firmware flashing, so back it up first before flashing!). It will also be available fairly early at boot (before USB disks).

Starting with 378.50, this option is enabled by default. If for some reason you need to erase its content, you can do so from the Administration page, under the System tab. Formatting the JFFS partition requires a reboot to take effect. Note that formatting it might possibly require a second reboot afterwards, if it fails to properly mount after that first reboot.

I do not recommend doing frequent writes to this area, as it will prematurely wear out the flash chip. This is a good place to put files that are written once like scripts or kernel modules, or that rarely get written to. Do not put files that get constantly written to (such as high activity logfiles) - store these on a USB disk instead. Replacing a worn out USB flash disk is much cheaper than replacing the whole router if flash sectors get worn out - they have a limited number of write cycles.