I am running OpenWrt 21.02 rc3 (ext4 image) on x86 Machine and suddenly my free space on /dev/root is zero and I can't install any new packages. I have the same amount of packages used when I was on 19.07 if not even less with the same configuration and everything. this is the output when I run the df command. does anyone know what is the problem?
also, I have some very small files on the system, and when I try to remove them the following error shows up which is not usual. can't remove 'install.sh': Read-only file system
This usually results from writing log files to a persistent location on the / filesystem instead of /tmp. Use du to explore the total usage of each directory. After finding and stopping the process that is overfilling the system, remount read-write and delete the extra files.
I think I found the problem, for some reason sda2 (the root partition) is mounted as read-only and I don't know why or how to fix it. i tried to reboot but that did not help
Check the log it is probably filesystem error which you must fix manually with fsck. OpenWrt by default doesn't automatically try to repair filesystems.