However I quickly noticed my configuration changes where not saved after a reboot of my router. Upon closer inspection, it showed the
overlay was mounted on the
/tmp and was thus not persisted.
root@OpenWrt:~# df -h Filesystem Size Used Available Use% Mounted on /dev/root 2.5M 2.5M 0 100% /rom tmpfs 29.1M 236.0K 28.8M 1% /tmp tmpfs 29.1M 64.0K 29.0M 0% /tmp/root overlayfs:/tmp/root 29.1M 64.0K 29.0M 0% / tmpfs 512.0K 0 512.0K 0% /dev /dev/mtdblock4 3.9M 3.9M 0 100% /rom/overlay
Weirdly enough the
/overlay is empty so I can't make space.
root@OpenWrt:~# ls -la /rom/overlay drwxr-xr-x 3 root root 0 Jan 1 1970 . drwxr-xr-x 16 root root 211 Feb 15 15:22 .. root@OpenWrt:~# ls -la /overlay drwxr-xr-x 2 root root 3 Feb 15 15:22 . drwxr-xr-x 1 root root 80 Jan 1 1970 ..
This overlay being full seems to result in the following error during boot:
Mon Feb 15 15:23:52 2021 daemon.notice procd: /etc/rc.d/S95done: cp: can't create directory '/rom/overlay/upper': No space left on device Mon Feb 15 15:23:52 2021 daemon.notice procd: /etc/rc.d/S95done: cp: can't create directory '/rom/overlay/work': No space left on device Mon Feb 15 15:23:52 2021 daemon.err mount_root: failed - cp -a /tmp/root/* /rom/overlay: Not a tty
The device in question, a TP-Link TL-WR2543ND seems to have 8Mb of flash so I think that should be enough.
[ 0.418692] m25p80 spi0.0: s25sl064p (8192 Kbytes) [ 0.423651] 3 fixed-partitions partitions found on MTD device spi0.0
I have tried flashing back the stock TP-Link firmware & re-flashing OpenWRT but this did not change the situation.
Is there someone here who can help me to solve this?