What's new

Want to add a folder in /jffs/ but it's in read only (Need JFFS expert)

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

A bit of a long shot, but have you tried mounting it manually?

mount -t jffs2 /dev/mtdblock4 /jffs
 
A bit of a long shot, but have you tried mounting it manually?

mount -t jffs2 /dev/mtdblock4 /jffs


Here is the output:

ASUSWRT-Merlin RT-AC3200 384.10-2 Wed Apr 3 22:29:42 UTC 2019
xxx@RT-AC3200-45F0:/tmp/home/root# mount -t jffs2 /dev/mtdblock4 /jffs
mount: mounting /dev/mtdblock4 on /jffs failed: Input/output error
xxx@RT-AC3200-45F0:/tmp/home/root#

:(
 
Someone posted earlier today (or I read something old today) about mounting a usb stick as /jffs to avoid wear and tear or corrupt blocks. May be an alternative.
 
Another long shot, but if you follow the amtm Step-by-Step method here, do you have any success?

https://www.snbforums.com/threads/amtm-step-by-step-install-guide-l-ld.56237/#post-483421

If not, where is it failing for you, specifically?

I had to stop here:

xxx@RT-AC3200-45F0:/tmp/home/root# curl -Os https://raw.githubusercontent.com/decoderman/amtm/master/amtm && sh amtm
_
____ ____ | |_ ____
/ _ | \| _)| \
( ( | | | | | |__| | | |
\_||_|_|_|_|\___)_|_|_|

Do you want to install amtm
the SNBForum Asuswrt-Merlin Terminal Menu?

_____________________________________________

Continue? [1=Yes e=Exit] 1
mkdir: can't create directory '/jffs/scripts': Read-only file system
cp: can't create '/jffs/scripts/amtm': No such file or directory
chmod: /jffs/scripts/amtm: No such file or directory
amtm: exec: line 1806: /jffs/scripts/amtm: not found
xxx@RT-AC3200-45F0:/tmp/home/root#
 
I had to stop here:

xxx@RT-AC3200-45F0:/tmp/home/root# curl -Os https://raw.githubusercontent.com/decoderman/amtm/master/amtm && sh amtm
_
____ ____ | |_ ____
/ _ | \| _)| \
( ( | | | | | |__| | | |
\_||_|_|_|_|\___)_|_|_|

Do you want to install amtm
the SNBForum Asuswrt-Merlin Terminal Menu?

_____________________________________________

Continue? [1=Yes e=Exit] 1
mkdir: can't create directory '/jffs/scripts': Read-only file system
cp: can't create '/jffs/scripts/amtm': No such file or directory
chmod: /jffs/scripts/amtm: No such file or directory
amtm: exec: line 1806: /jffs/scripts/amtm: not found
xxx@RT-AC3200-45F0:/tmp/home/root#

And to be doubly sure, you enabled step 2. Click 'Yes' to the 'Enable JFFS custom scripts and configs' option?

Then hit 'Apply' and then reboot the router?

If yes to all the above, then the router has a hardware fault. :(

Hopefully, just a simple step was missed and we're narrowing it down for you to have a working router. :)
 
Amtm can't install itself since his JFFS partition is not mountable.
 
Actually, looks like the flash_erase applet is there, so you could give this a try:

Code:
flash_erase -u -j /dev/mtd4 0 0
 
And to be doubly sure, you enabled step 2. Click 'Yes' to the 'Enable JFFS custom scripts and configs' option?

Then hit 'Apply' and then reboot the router?

If yes to all the above, then the router has a hardware fault. :(

Hopefully, just a simple step was missed and we're narrowing it down for you to have a working router. :)

Yes both where selected.
 
Actually, looks like the flash_erase applet is there, so you could give this a try:

Code:
flash_erase -u -j /dev/mtd4 0 0

It says command not found, i did a search and was not able to fid it.

kronyx@RT-AC3200-45F0:/tmp/home/root# flash_erase -u -j /dev/mtd4 0 0
-sh: flash_erase: not found
kronyx@RT-AC3200-45F0:/tmp/home/root# cd ..
kronyx@RT-AC3200-45F0:/# cd ..
kronyx@RT-AC3200-45F0:/# find -name flash
kronyx@RT-AC3200-45F0:/#
 
Have you tried flashing the firmware through Recovery Mode instead of through the router's web interface? (although I can't think why that would be any different)
 
It says command not found, i did a search and was not able to fid it.

kronyx@RT-AC3200-45F0:/tmp/home/root# flash_erase -u -j /dev/mtd4 0 0
-sh: flash_erase: not found
kronyx@RT-AC3200-45F0:/tmp/home/root# cd ..
kronyx@RT-AC3200-45F0:/# cd ..
kronyx@RT-AC3200-45F0:/# find -name flash
kronyx@RT-AC3200-45F0:/#

Could be model-specific then (I see the command is actually there on my RT-AX88U, not just a busybox applet).
 
I tried your's and still not found, i was already at the root / ;-)

Did you ever get this resolved? My AC3100 is having the same issue. Tried manually mounting the partition but got the same IO error as you.

I noticed my logging was complaining about a bad block, so, I'm thinking the NAND might be toast in my router. Everything else seems to work, however.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top