I installed openwrt on an archer c6 v2 router and I have a problem with the storage. The disk space is 832kB in size, while the temp space is 59MB, so I can’t do updates or install new packages. How can I fix this?
You might have a version with 8 MB flash
See
You can use the firmware selector and only add the packages you really need
Temp space is RAM.
Get a new router, or if there's an USB port, use extroot to extend it.
Dropping luci is another option... But I don't know if that's still supported.
AFAIK you can still remove it from the package list in FS.
You can absolutely do updates using luci-app-attendedsysupgrade XOR owut (no place for both, create a new sysupgrade image using firmware-selector.openwrt.org and include one of those.
(note you will need luci-ssl instead of default luci to have it like now)
Last time I tried it was about 5 years ago but certainly an option to explore because the router has no other choice. OpenWrt was perfectly functional back then... you just have to become fluent with CLI.
Example 8/64 used as switch with all wifi function removed - yes, you have to give up major function sets if you want an extra package. May I ask which package you need?
root@OpenWrt:~# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 4096 4096 0 100% /rom
tmpfs 28612 288 28324 1% /tmp
/dev/mtdblock4 1728 244 1484 14% /overlay
overlayfs:/overlay 1728 244 1484 14% /
tmpfs 512 0 512 0% /dev
If extroot is an option you can always install Luci afterwards.
https://openwrt.org/toh/tp-link/archer_c6_v2 - this device has no USB, so CLI is the only way to keep it functional and updated.
Sorry for the late response, I had to unbrick the device after flashing the wrong version. But I took it apart and noticed that indeed it has an 8MB SPI flash. Since it's a 25 series and it's easy to source, could it be upgraded to a larger size? Would anything prevent the firmware from booting or using the entire space?
you won't gain any space, if you don't reallocate the MTDs, to maximize overlay size.
keep in mind you always have to build your own images after doing this, since the default ones won't know anything about your modified flash layout.
