Site Tools


admin-jffs2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
admin-jffs2 [2022/01/05 13:11] – created rs232admin-jffs2 [2023/05/24 21:55] (current) – [JFFS Notes and Troubleshooting] -condense hogwild
Line 5: Line 5:
 Common routers contain two types of permanent storage: Common routers contain two types of permanent storage:
  
-**Flash** - is the storage area where the FreshTomato firmware image is uploaded, stored and executed. At boot time, the image is loaded into a squash filesystem which means it's executed read-only. Flash size is measured in Megabytes (MB). You might find Flash storage occasionally referred to as Flash RAM. However, the FreshTomato team intentionally avoided this term, to reduce the chance of confusion with traditional (dynamic) RAM.+**Flash** - is the storage area where the FreshTomato firmware image is uploaded, stored and executed. At boot time, the image is loaded into a squash filesystem which is a read-only filesystem. Flash size is measured in Megabytes (MB). You might find Flash storage occasionally referred to as Flash RAM. However, the FreshTomato team intentionally avoided this term, to reduce the chance of confusion with traditional (dynamic) RAM.
  
-**NVRAM** - (Non-volatile RAM) is used for storing the hardware's configuration. While loading the firmware from the squash filesystem, parameters in the form of variables are fetched from the NVRAM. NVRAM size is relatively small and is measured in Kilobytes (KB).+**NVRAM** - (Non-volatile RAM) is used for storing the hardware's configuration. While loading the firmware from the squash filesystem, parameters (in variable formare fetched from the NVRAM. NVRAM size is relatively small and is measured in Kilobytes (KB).
  
 Since modern routers have a relatively large amount of Flash memory available, FreshTomato can mount the unused storage space and make it available to FreshTomato for normal file storage. This function is called JFFS, short for the //Journalling Flash File System// type used for the storage. Currently, JFFS2 (version 2) is used. Since modern routers have a relatively large amount of Flash memory available, FreshTomato can mount the unused storage space and make it available to FreshTomato for normal file storage. This function is called JFFS, short for the //Journalling Flash File System// type used for the storage. Currently, JFFS2 (version 2) is used.
Line 15: Line 15:
 \\  [[https://wiki.freshtomato.org/lib/exe/detail.php?id=jffs&media=pasted:20200524-095635.png|{{:pasted:20200524-095635.png}}]] \\  [[https://wiki.freshtomato.org/lib/exe/detail.php?id=jffs&media=pasted:20200524-095635.png|{{:pasted:20200524-095635.png}}]]
  
-**Enable:** Checking this box enables JFFS, as shown in the image below. (Default: Disabled).+ \\
  
-**Execute when mounted:** In this fieldyou can enter the name of a script or similar to run immediately after the partition becomes available to FreshTomato. (Default: blank).+**Enable:**  Checking this enables JFFSas shown in the image below. (Default: Disabled).
  
-**Total Free Size**This displays the storage size available to be usedThis cannot be changed.+\\  [[https://wiki.freshtomato.org/lib/exe/detail.php?id=jffs&media=pasted:20200524-101530.png|{{:pasted:20200524-101530.png}}]] \\
  
-**Format / Erase:** The very first time you enable JFFS, you must format the partition with the JFFS2 filesystem. Once formatting is complete, the "(not mounted)" status should change to "(mounted)" to reflect that FreshTomato has access to the partition. Once the JFFS partition is mounted, it can be accessed in the filesystem under the root directory as /jffs .+ \\
  
-\\  [[https://wiki.freshtomato.org/lib/exe/detail.php?id=jffs&media=pasted:20200524-101530.png|{{:pasted:20200524-101530.png}}]] \\+**Execute when mounted:**  In this field, enter the name of a script or command to run immediately after the JFFS partition becomes available to FreshTomato. (Defaultblank). 
 + 
 +**Total Free Size:**  This displays the storage size available to be usedThis is fixed. 
 + 
 +**Format Erase:**  The first time you enable JFFS, you must format the partition with the JFFS2 filesystemOnce formatting is complete, the "(not mounted)" status should change to "(mounted)" to reflect that FreshTomato has access to the partition. Once the JFFS partition is mounted, it can be accessed in the filesystem under the root directory as /jffs .
  
-===== Notes/Troubleshooting =====+===== JFFS Notes and Troubleshooting =====
  
-**WARNING**: As a safety precaution, FreshTomato will prevent you from performing firmware upgrades if a JFFS partition is mounted/in use. The reason for this is that if you were to disable JFFS and upgrade the FreshTomato firmware, you might lose the contents of the /jffs partition. For this reason, you should do a backup and restore operation to preserve the data there. To learn more about backup and restore of JFFS partition data, see the XXXX page.+UPGRADE Warning As a safety precaution, FreshTomato prevents you from upgrading firmware if a JFFS partition is mounted/in use. This is because if you were to disable JFFS and upgrade firmware, you might lose the data on the /jffs partition. Therefore, you should do a backup and restore to preserve the data there before upgrading. To learn more about backup and restore of JFFS partition data, see the XXXX page.
  
-**WARNING: **Flash storage is not designed for frequent write operations. Because of this, you should avoid performing frequent write operations to it. For example, avoid storing the logs in JFFS, as this will shorten the life of your router. However, flash memory's limitation is in the number or write operations, but not the number of read operations. Therefore, an Entware installation would be fine. Be aware that your JFFS should be used only if no other storage like USB or a CIFS share is available.+FREQENT Writes Warning:** **Flash storage is not designed for frequent write operations. Because of this, you should avoid performing frequent write operations to it. For example, avoid storing the logs in JFFS, as this will shorten the life of your router. However, flash memory's limitation is in the number of //write// operations, not the number of //read// operations. Therefore, an Entware installation would be fine. Nevertheless, JFFS should be used only if no other permanent storagelike USB or a CIFS share is available.
  
  
admin-jffs2.1641388315.txt.gz · Last modified: 2022/01/05 13:11 by rs232