Unable to remove or install package

I am unable to install a package e.g. "ddns-script"

It prompted an error message that it's "read-only file"

Any thoughs on this issue?

I also check mount and here's how it looks like:

what is the output of the following:

df -h

image

There you go sir. Thank you.

My openwrt is running in a virtualized environment, specifically "proxmox"

On my VMs, /dev/root mounts as rw, not ro like yours. I'd guess that's the root (ha) cause of your issue. Not sure where it gets mounted.

$ mount
/dev/root on / type ext4 (rw,noatime)
...

Aha, try this and see if the first line is ro or rw:

$ cat /etc/mtab
/dev/root / ext4 rw,noatime 0 0
...

If ro, try changing it and reboot. Since there's no overlayfs, it should have set root to read/write at install, so something is goofy.

Check the boot log for filesystem errors which could have caused it to mount read-only.

1 Like
[    4.566506] EXT4-fs (sda2): warning: mounting unchecked fs, running e2fsck is recommended
[    4.581331] EXT4-fs (sda2): re-mounted. Opts: (null). Quota mode: disabled.
[    4.612518] EXT4-fs (sda1): warning: mounting unchecked fs, running e2fsck is recommended

How do I run the e2fsck? It's not letting me run the e2fsck.ext4 where it says /dev/sda1 is mounted.

It's fixed now. Booted on SystemRescueCD and ran fsck.ext4 /dev/sda2.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.