/overlay too small after opkg upgrade

Hello,
I had some problems with my openvpn client today, so updated this package and a few others. At some point, my router became unresponsive, so I manually restarted it. It works again now. However, /overlay is full and only 3.9M in size. I'm not sure, but I think it was larger before..? Also in LuCI, some options are missing. The System tab for example contains only Software. How can I go back? Is it an option to upgrade to newer OpenWRT using ssh?

Model: TP-Link TL-WDR3600 v1
Firmware Version: OpenWrt 19.07.2 r10947-65030d81f3 / LuCI openwrt-19.07 branch git-20.057.55219-13dd17f

df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 2.5M      2.5M         0 100% /rom
tmpfs                    60.8M      1.3M     59.5M   2% /tmp
/dev/mtdblock4            3.9M      3.8M    104.0K  97% /overlay
overlayfs:/overlay        3.9M      3.8M    104.0K  97% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/sda1                 3.7G     37.0M      3.5G   1% /mnt/sda1

Thanks in advance!

you should, in general, never upgrade packages

you can reset it to gain back the space (using physical button, or run firstboot in ssh)

you can use the sysupgrade command in ssh to do an upgrade/reflash.

2 Likes

Thanks, I know that now...

How reset? push the reset button with a needle?

Edit: Okay, got your edit. Will reset delete all my configs and packages?

yes it will, backup your config before reset

1 Like

Thanks, I backed up the configs and reset. Seems to work fine now.
Regarding the firmware update... Can I upgrade from LuCI, or do I have to do it from the console?

you can do it from luci.