Hello,
solving one problem and a next one appears. Today, I wanted to update the openwrt files and there were lots of updates (21) When clicking one to start, it returned an error "Only have 0kb available on filesystem /overlay"
When I SSH'd into the router and did an root@netgear:/df -h it returned:
Filesystem Size Used Available Use% Mounted on
/dev/root 3.0M 3.0M 0 100% /rom
tmpfs 233.6M 1.3M 232.3M 1% /tmp
/dev/ubi0_1 79.1M 79.1M 0 100% /overlay
overlayfs:/overlay 79.1M 79.1M 0 100% /
tmpfs 512.0K 0 512.0K 0% /dev
Upgrading packages (via the CLI opkg upgrade command or the LuCI Upgrade... button) can result in major problems. It is generally highly discouraged, unless you know what you are doing or if there is specific instruction to do so.
One of the problems is that opkg upgrade doesn't delete the old version of a package which belongs to the rom. So you occupy double space.
Apart from that it seems that you have installed too many packages and filled up the overlay, or you have other files which occupy space. You can delete some that you don't need. du -h / | sort -n can help with that.
In the vast majority of cases, any security patches of significant importance/risk will be rapidly released in an official stable maintenance release to be upgraded using the sysupgrade system. This is the recommended method for keeping up-to-date.
Nobody is telling you that you shouldn't keep your OpenWrt installation updated. You should just not upgrade packages blindly, especially not via script.
"Upgrading" packages via flashing a new image with the respective packages already included is the way to go. This will not waste your precious flash with unused old packages.
You have filled the overlay, and pretty much the only reliable eway to recover from that is to reset the router with "firstboot" so that your installed packages & settings get cleared.
You may try deleting some large files from /overlay/upper (where all overlay files are), and reboot, but that is risky if you delete wrong files.
As a Linux user I thought I could empty /tmp. So I did. Well, I had to flash the router again.
Now I begin from scratch again. It doesn't matter, I'm learning from it.
As I understand, it is NOT advisable to update seperate packages but only complete builds?
It is not advisable too mass-update separate packages.
Compatibility is not guaranteed, and the flash space issues may hit you.
There is limited flash space. The ROM+overlay fs structure enables the reset functionality, but on the other hand nothing in the original firmware actually gets deleted (as it just gets a delete mark).
You can selectively upgrade individual (user-space) packages, if you have a real reason to upgrade and you know that there is enough free flash space.
This is not a usual PC with unlimited disk space, but router with a few MB of flash.
I resetted the router, factory defaults and installed again AdGuardHome, DDNS. Just following a manual on this forum. No destination is asked.
Now I have :