Problem with ssh

Hi,

I've already seen that with an usb key on my router but I dont have any usb drive on it and I have that notice when I'm connecting to ssh..
idea about it?

thanks

root@192.168.1.1
  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt
 -----------------------------------------------------
Your JFFS2-partition seems full and overlayfs is mounted read-only.
Please try to remove files from /overlay/upper/... and reboot!


1 Like

It's telling you exactly what to do.

Either something didn't load properly upon a reboot causing JFFS to be in RO when it needs to be in RW

OR

remove files to add space to /overlay/upper/....

I have space, how to switch to RW, I reboot and it is still the same

Well in Linux if there's an error on boot it goes RO

Check /etc/fstab to make sure they're not set to RO

cat /etc/fstab
#nvme0n1p2
UUID=9a07a2d4-3553-4bf3-854a-f7b423fae90c / ext4 errors=remount-ro 0 1

#nvme1n1p2
UUID=003e88ed-db7d-4fd6-9a22-f8809d97940e /backup ext4 errors=remount-ro 0 1

 <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/nvme0n1p2 during installation
UUID=eb810a54-202c-4b64-82f7-24f49196f2d6 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=7E42-9EC0  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw        

If you would like remount it to read-write, use mount -o remount,rw /

If you dig through syslog / dmesg there might be a reason why it's mounted in RO.

at the end i see that;

    5.394419] input: HD-Audio Generic Rear Mic as /devices/pci0000:00/0000:00:08.1/0000:29:00.3/sound/card1/input27
[    5.394459] input: HD-Audio Generic Line as /devices/pci0000:00/0000:00:08.1/0000:29:00.3/sound/card1/input28
[    5.394515] input: HD-Audio Generic Line Out Front as /devices/pci0000:00/0000:00:08.1/0000:29:00.3/sound/card1/input29
[    5.394564] input: HD-Audio Generic Line Out Surround as /devices/pci0000:00/0000:00:08.1/0000:29:00.3/sound/card1/input30
[    5.394604] input: HD-Audio Generic Line Out CLFE as /devices/pci0000:00/0000:00:08.1/0000:29:00.3/sound/card1/input31
[    5.394638] input: HD-Audio Generic Front Headphone as /devices/pci0000:00/0000:00:08.1/0000:29:00.3/sound/card1/input32
[    5.438182] kvm: support for 'kvm_amd' disabled by bios
[    5.439995] intel_rapl_common: Found RAPL domain package
[    5.439998] intel_rapl_common: Found RAPL domain core
[    5.456620] audit: type=1400 audit(1644024707.524:30): apparmor="DENIED" operation="capable" profile="/usr/sbin/cups-browsed" pid=937 comm="cups-browsed" capability=23  capname="sys_nice"
[    5.498106] loop0: detected capacity change from 0 to 8
[    5.498972] EEPROM ID = 0x8129
[    5.499406] usbcore: registered new interface driver r8188eu
[    5.507939] kvm: support for 'kvm_amd' disabled by bios
[    5.510411] r8188eu 1-14:1.0 wlxd46e0e034da4: renamed from wlan0
[    5.577734] kvm: support for 'kvm_amd' disabled by bios
[    5.581939] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    5.582159] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    5.609656] Generic FE-GE Realtek PHY r8169-0-2200:00: attached PHY driver (mii_bus:phy_addr=r8169-0-2200:00, irq=MAC)
[    5.643686] kvm: support for 'kvm_amd' disabled by bios
[    5.691580] kvm: support for 'kvm_amd' disabled by bios
[    5.745671] kvm: support for 'kvm_amd' disabled by bios
[    5.786179] r8169 0000:22:00.0 enp34s0: Link is Down
[    5.796013] kvm: support for 'kvm_amd' disabled by bios
[    5.827784] R8188EU: Firmware Version 11, SubVersion 1, Signature 0x88e1
[    5.849951] kvm: support for 'kvm_amd' disabled by bios
[    8.559339] MAC Address = d4:6e:0e:03:4d:a4
[    9.155263] rfkill: input handler disabled
[   10.927060] R8188EU: INFO indicate disassoc
[   13.122948] logitech-hidpp-device 0003:046D:400A.0008: HID++ 2.0 device connected.
[   13.363715] R8188EU: INFO assoc success
[   13.380792] IPv6: ADDRCONF(NETDEV_CHANGE): wlxd46e0e034da4: link becomes ready
[   19.693776] rfkill: input handler enabled
[   21.441103] rfkill: input handler disabled
[   28.106658] loop0: detected capacity change from 0 to 8
[   34.012132] loop0: detected capacity change from 0 to 8
[   46.818556] R8188EU: INFO indicate disassoc
[   49.159659] R8188EU: INFO indicate disassoc
[   49.409082] R8188EU: INFO assoc success
[   49.413822] IPv6: ADDRCONF(NETDEV_CHANGE): wlxd46e0e034da4: link becomes ready
[  228.826600] EXT4-fs (nvme0n1p2): re-mounted. Opts: errors=remount-ro. Quota mode: none.


I would do a "dmesg | grep -i nvme" and see why it's being remounted. Something is triggering it to be dismounted for some reason as the typical boot period is less than 15-20 seconds and 3-4 minutes into running shouldn't be producing an error to force a FS remount.

sudo dmesg | grep -i nvme
[    0.754747] nvme 0000:01:00.0: platform quirk: setting simple suspend
[    0.754777] nvme nvme0: pci function 0000:01:00.0
[    0.754800] nvme 0000:02:00.0: platform quirk: setting simple suspend
[    0.754834] nvme nvme1: pci function 0000:02:00.0
[    0.784513] nvme nvme0: 20/0/0 default/read/poll queues
[    0.785011] nvme nvme1: 20/0/0 default/read/poll queues
[    0.787997]  nvme0n1: p1 p2
[    0.788542]  nvme1n1: p1 p2
[    3.263013] EXT4-fs (nvme0n1p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[    3.513653] EXT4-fs (nvme0n1p2): re-mounted. Opts: errors=remount-ro. Quota mode: none.
[    3.968689] EXT4-fs (nvme1n1p2): mounted filesystem with ordered data mode. Opts: errors=remount-ro. Quota mode: none.

 20:03:34 **up  5:55**, 17 users,  load average: 0.38, 0.55, 0.61

Looking at the re-mount line though might not be what we're looking for since I'm seeing it in my output as well but, not restricted to RO on my OS partition at all.

Might be time to do a fsck on the drive just to see if anything comes back as an error causing RO to be invoked.

It's a bit odd though I'm seeing the remount message on my primary drive and not my secondary that I rsync to. However looking at the timestamps it's only ~30ms before it's issuing the re-mount message.

[    0.709583] nvme nvme0: pci function 0000:25:00.0
[    0.715103] nvme nvme0: missing or invalid SUBNQN field.
[    0.715133] nvme nvme0: Shutdown timeout set to 8 seconds
[    0.742141] nvme nvme0: 32/0/0 default/read/poll queues
[    0.746415]  nvme0n1: p1 p2
[    4.617687] EXT4-fs (nvme0n1p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[    4.896517] EXT4-fs (nvme0n1p2): re-mounted. Opts: errors=remount-ro. Quota mode: none.
[  228.826600] EXT4-fs (nvme0n1p2): re-mounted. Opts: errors=remount-ro. Quota mode: none.

mount | grep -i nvme
/dev/nvme0n1p2 on / type ext4 (rw,relatime,errors=remount-ro)
/dev/nvme1n1p2 on /backup type ext4 (rw,relatime,errors=remount-ro)
df -h |grep -i nvme
/dev/nvme0n1p2  916G  100G  770G  12% /
/dev/nvme1n1p2  916G   93G  777G  11% /backup

Should show the current status of the FS being RW as seen after EXT4

What kind of system is this?
What kind of drive?

$ mount | grep -i nvme
/dev/nvme0n1p2 on / type ext4 (rw,relatime,errors=remount-ro)
/dev/nvme0n1p1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)

$ sudo df -h |grep -i nvme
/dev/nvme0n1p2  228G   15G  202G   7% /
/dev/nvme0n1p1  511M  5.3M  506M   2% /boot/efi

I have zorin os with 5.16 kernel. an it is on my new samsung 970 evo plus nvme ssd

Interesting indeed.

Drives are showing in RW but OWRT says RO.

Container?

BTW that EFI partition can be knocked to 50MB if you need the space or don't want to waste it on emptiness. I had to convert to EFI and gave it as small of a spot as possible without the OS getting angry about it. 50MB is still too much but, that's what it is.

1 Like