What's new

read only /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!

BlackMage

Occasional Visitor
Why my /jffs partition is read only?

how i can mount it rw?

and why my jffs partition is empty?

Code:
# cd /
# nvram show | grep jffs
jffs2_on=1
size: 57051 bytes (8485 left)
jffs2_exec=
jffs2_enable=1
jffs2_size=33554432
jffs2_format=0
jffs2_scripts=1
log_path=/jffs
# ls -l /jffs
# ls -l / | grep jffs
drwxr-xr-x    2 admin    root             3 Apr 26 03:59 jffs

is jffs no longer used?

"Format JFFS partition at next boot" is to "No" checked and "Enable JFFS custom scripts and configs" to "Yes" in the Advanced Settings -> Administration in System Tab
 
Last edited:
Try unsetting jffs2_size before trying to reformat. An empty unwritable /jffs means the partition did not get mounted due to some error.
 
How I unset jffs2_size? And how I reformat the jffs partition?
 
How I unset jffs2_size? And how I reformat the jffs partition?

Code:
nvram unset jffs2_size
nvram commit

The format option is on the Administration -> System page. Set it to "Yes", apply, then reboot.
 
/jffs is ever readonly and it listed not at the output of the mount command
 
Something is wrong with your jffs partition then, and I have no idea what, sorry.
 
How can I fix that? Does anyone have any ideas? Is a hardware memory defect possible?
 
Post your system log.
 
nothing irregalur i think:

latest messages:

Code:
Aug  1 00:00:30 dropbear[19048]: Exit (admin): Error reading: Connection reset by peer
Aug  1 00:08:16 dropbear[28378]: Child connection from 192.168.179.109:59057
Aug  1 00:08:17 dropbear[28378]: Password auth succeeded for 'admin' from 192.168.179.109:59057
Aug  1 04:41:32 dnsmasq-dhcp[254]: DHCPREQUEST(br0) 192.168.179.197 2c:33:61:b2:cb:52
Aug  1 04:41:32 dnsmasq-dhcp[254]: DHCPACK(br0) 192.168.179.197 2c:33:61:b2:cb:52 iPhonevSvenEric
Aug  1 05:46:59 dnsmasq-dhcp[254]: DHCPREQUEST(br0) 192.168.179.109 cc:61:e5:d0:a2:45
Aug  1 05:46:59 dnsmasq-dhcp[254]: DHCPACK(br0) 192.168.179.109 cc:61:e5:d0:a2:45 android-e711eebc657aab65
Aug  1 10:06:46 syslog: WLCEVENTD wlceventd_proc_event(420): eth2: Auth 48:51:B7:9A:40:52, status: 0, reason: d11 RC reserved (0)
Aug  1 10:12:08 syslog: WLCEVENTD wlceventd_proc_event(420): eth2: Auth 48:51:B7:9A:40:52, status: 0, reason: d11 RC reserved (0)
Aug  1 10:12:08 syslog: WLCEVENTD wlceventd_proc_event(449): eth2: Assoc 48:51:B7:9A:40:52, status: 0, reason: d11 RC reserved (0)
Aug  1 10:12:12 dnsmasq-dhcp[254]: DHCPDISCOVER(br0) 192.168.179.108 48:51:b7:9a:40:52
Aug  1 10:12:12 dnsmasq-dhcp[254]: DHCPOFFER(br0) 192.168.179.108 48:51:b7:9a:40:52
Aug  1 10:12:12 dnsmasq-dhcp[254]: DHCPREQUEST(br0) 192.168.179.108 48:51:b7:9a:40:52
Aug  1 10:12:12 dnsmasq-dhcp[254]: DHCPACK(br0) 192.168.179.108 48:51:b7:9a:40:52 DESKTOP-EGM9EHG
Aug  1 10:14:51 sd-idle-2.6[366]: spinning up /dev/sda after 14 hours 13 mins 31 secs
Aug  1 10:19:51 sd-idle-2.6[366]: spinning down /dev/sda after 5 mins
Aug  1 11:16:12 syslog: WLCEVENTD wlceventd_proc_event(386): eth2: Deauth_ind 48:51:B7:9A:40:52, status: 0, reason: Disassociated due to inactivity (4)
Aug  1 13:40:35 syslog: WLCEVENTD wlceventd_proc_event(420): eth2: Auth 48:51:B7:9A:40:52, status: 0, reason: d11 RC reserved (0)
Aug  1 13:40:35 syslog: WLCEVENTD wlceventd_proc_event(449): eth2: Assoc 48:51:B7:9A:40:52, status: 0, reason: d11 RC reserved (0)
Aug  1 13:40:35 dnsmasq-dhcp[254]: DHCPREQUEST(br0) 192.168.179.108 48:51:b7:9a:40:52
Aug  1 13:40:35 dnsmasq-dhcp[254]: DHCPACK(br0) 192.168.179.108 48:51:b7:9a:40:52 DESKTOP-EGM9EHG
Aug  1 13:42:50 syslogd exiting
Aug  1 13:42:51 syslogd started: BusyBox v1.25.1
Aug  1 13:42:51 kernel: klogd started: BusyBox v1.25.1 (2020-04-25 22:25:08 EDT)
 
Need the whole system log covering the entire boot process. This only shows a couple of DHCP leases getting allocated as a wireless client got connected.
 
where is it located? have full ssh access

And I can't upload my syslog.txt, it is crossed out immediately after the addition.
I'm sorry, I did not manage to upload the syslog.txt in the forum here, so I uploaded the syslog.txt in a pastebin: https://pastebin.com/7FLgD8aN

( "Default message log level" is "debug" and "Log only messages more urgent than" is "all" )

At the end is "kernel: nvram: consolidating space!".
 
Last edited:
That boot log is missing a lot of information. For instance, it should report the flash partitions, something like this:

Code:
May  5 01:05:03 kernel: Creating 4 MTD partitions on "nflash":
May  5 01:05:03 kernel: 0x000000000000-0x000000080000 : "boot"
May  5 01:05:03 kernel: 0x000000080000-0x000000200000 : "nvram"
May  5 01:05:03 kernel: 0x000000200000-0x000004000000 : "linux"
May  5 01:05:03 kernel: 0x00000039fb48-0x000004000000 : "rootfs"

Code:
May  5 01:05:03 kernel: Northstar brcmnand NAND Flash Controller driver, Version 0.1 (c) Broadcom Inc. 2012
May  5 01:05:03 kernel: NAND device: Manufacturer ID: 0xc8, Chip ID: 0xd1 (Unknown NAND 128MiB 3,3V 8-bit)
May  5 01:05:03 kernel: Spare area=64 eccbytes 56, ecc bytes located at:
May  5 01:05:03 kernel:  2 3 4 5 6 7 8 9 10 11 12 13 14 15 18 19 20 21 22 23 24 25 26 27 28 29 30 31 34 35 36 37 38 39 40 41 42 43 44 45 46 47 50 51 52 53 54 55 56 57 58 59 60 61 62 63
May  5 01:05:03 kernel: Available 7 bytes at (off,len):
May  5 01:05:03 kernel: (1,1) (16,2) (32,2) (48,2) (0,0) (0,0) (0,0) (0,0) 
May  5 01:05:03 kernel: Scanning device for bad blocks
May  5 01:05:03 kernel: Options: NO_AUTOINCR,NO_READRDY,
May  5 01:05:03 kernel: Creating 2 MTD partitions on "brcmnand":
May  5 01:05:03 kernel: 0x000004000000-0x000007ec0000 : "brcmnand"
May  5 01:05:03 kernel: 0x000007ec0000-0x000008000000 : "asus"

That brcmnand partition is the jffs partition. So, something is interfering with your whole boot process, and there's no traces in the log.

Try a complete power cycle of your router instead of just rebooting it, just in case it might help, also remove that USB disk.
 
ok, can asusware.arm or entware interfere at my HDD there? where can I see what is used? and on the second partition is also a asusware.arm directory. is any of it used at all?
 
Last edited:
ok, can asusware.arm or entware interfere at my HDD there? where can I see what is used? and on the second partition is also a asusware.arm directory. is any of it used at all? and where can I see that?

Entware/Download Master only gets setup much later in the boot process. Your process is misbehaving before even mounting USB partitions.
 
ok so my jffs problem can have nothing to do with the files on the hard drive?

is it safe to leave the syslog at jffs? (because there are many write accesses, or?) or can you also move them to the HDD?

EDIT: k i have the router restarted and it was fixed the way it looks.

the hdd is also mounted with the 2 partitions

Thank you so much!
 
Last edited:
is it safe to leave the syslog at jffs? (because there are many write accesses, or?) or can you also move them to the HDD?

The router doesn't log directly to JFFS. It logs to RAM, and occasionally syncs it up with the JFFS partition. Asus's high end routers use NAND that is rated for 10K PE cycles if I recall, which means there is nothing to worry about.
 
good and I thought it is constantly written on the jffs partition. so I can be reassured
 

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