resize the JFFS partition

Discussion in 'Tomato Firmware' started by ripat, Jun 20, 2010.

  1. ripat

    ripat LI Guru Member


    I have enabled JFFS2 on the GUI and it uses only 332K on a total of 1024K. My config is pretty stable now and I don't think I will ever use the free space on the JFFS mount. Does it make sense to shrink the JFFS partition to make more memory available to the router? Will that increase the router's throughput?

    My config:
    WRT54GL with a vanilla Tomato 1.27
    #nvram show | grep jffs
    # mount
    /dev/mtdblock/3 on /jffs type jffs2 (rw,noatime,nodiratime)
    /dev/mtdblock/3           1024       332       692  32% /jffs
  2. ripat

    ripat LI Guru Member

    Some update on this. I have tried to reformat jffs to a lower volume by changing the nvarm jffs2_size variable to a lower value (512000) and then reformat the partition from the GUI but that generated a mount error.

    Any idea on how to resize jffs?
  3. ripat

    ripat LI Guru Member

    I hate to bump this post but your answers could help me understand how jffs works and also how the router uses its memory. I couldn't find anything relevant googleling around.
  4. rhester72

    rhester72 Network Guru Member

    jffs is flash-based disk, not at all unlike a USB stick. It is completely separate from memory/RAM, the temporary workspace used by the OS and applications, and has absolutely no impact on performance.

  5. ripat

    ripat LI Guru Member

    Thanks Rodney. I have now a good reason to stop trying to shrink that jffs partition.


  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice