1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

resize the JFFS partition

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

  1. ripat

    ripat LI Guru Member

    Hi,

    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?

    Code:
    My config:
    WRT54GL with a vanilla Tomato 1.27
    
    #nvram show | grep jffs
    jffs2_exec=
    jffs2_format=0
    jffs2_on=1
    jffs2_size=1048576
    
    # mount
    /dev/mtdblock/3 on /jffs type jffs2 (rw,noatime,nodiratime)
    
    #df
    /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.

    Rodney
     
  5. ripat

    ripat LI Guru Member

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

    Cheers.

    Jean-Luc.
     

Share This Page