What's new

Help with creating file in JFFS

  • 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!

bmb

Regular Contributor
I'm trying to create a file in JFFS and using the following command

Code:
admins@RT-N66U:/tmp/home/root# cat << EOF > /jffs/test.txt
> #!/bin/sh
> EOF
-sh: can't create /jffs/test.txt: Read-only file system

I always get this 'Read-only file system' error when trying to create any file. 'Enable JFFS partition' and 'Enable JFFS custom scripts and config' are ticked in the GUI.

What am I doing wrong?
 
I'm trying to create a file in JFFS and using the following command

Code:
admins@RT-N66U:/tmp/home/root# cat << EOF > /jffs/test.txt
> #!/bin/sh
> EOF
-sh: can't create /jffs/test.txt: Read-only file system

I always get this 'Read-only file system' error when trying to create any file. 'Enable JFFS partition' and 'Enable JFFS custom scripts and config' are ticked in the GUI.

What am I doing wrong?

It means you don't have the JFFS partition enabled, most likely because you run an older firmware. Either upgrade, or enable it under Administration -> System.
 

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