Suddenly my LEDE turned into a read-only filesystem.
I googled and looked into OpenWrt forums cause there wasn't enough information about this situation, so I tried to mount -o remount,rw /
or mtd unlock rootfs_data
but nothing changed.
Is there anyone who has gone through the same or similar problem?
What device do you have ? I dont know if you have ext4 rootfs or have squashfs rom with OverlayFS, if is rootfs may be you had your ext4 corrupt, if you have overlayfs you may have failure of space or something on the overlay
sample of OverlayFS:
root@LEDE:~# df -Th
Filesystem Type Size Used Available Use% Mounted on
rootfs rootfs 12.3M 3.4M 8.9M 28% /
/dev/root squashfs 2.5M 2.5M 0 100% /rom
overlayfs:/overlay overlay 12.3M 3.4M 8.9M 28%
Sample of ext4 rootfs:
root@LEDE:~# df -Th
Filesystem Type Size Used Available Use% Mounted on
/dev/root ext4 252.0M 15.2M 231.7M 6% /
/dev/sda1 ext4 8.0M 2.5M 5.1M 32% /boot
Give me a minute, Im investigating if there is some steps to solve this problem.
What device is ? Please if you can try to open it and see if you see something damaged on the board or if you see a lot of dust/dirt or inflated capacitors...
Check your kernel version too, there is two known issues with ubi/ubifs with some specific kernel versions. uname -a
find /etc/ -type f -print0 | xargs -0 head \; > /dev/null
This commands finds all files in /etc and tries to read first portions of each files, then redirect all unwanted output to null device, then do a sync a couple of times, reboot and check again your logs.
try it and see if its worked, if not you should probably will have to make a list of installed packages, do a system backup and then reflash, re install packages an restore configuration backup. There is some user somewhere that was asking for a script to backup/restore only files actually different from ROM to not fill with unnecessary files the /overlay/upper on overlayfs and save some space. Another alternative if that you restore the needed configuration manually.