The pendrive is 16gb, ext2, almost empty, only entware tar inside.
Maybe the problem was that I removed the pendrive after I install the initial Entware, I didn't know that only 32mb of flash memory is actually available on the router and that I was supposed to leave a pendrive mounted in to extended the router's memory via symlinks.
To clear out /opt and /swap I can simply delete all files inside those foldcrs?
And to make the swap file, should I create it earlier with gparted?
Thank you again
edit.
I did it from scratch, same problems.
This time I left the usb drive connected to the router, created the swap file, copy paste these commands:
mkswap swap
chmod 0600 swap
swapon swap
After reboot (copy-paste from console):
root@R7800:~$ /opt/bin/opkg update
Downloading
http://www.voxel-firmware.com/Downloads/Voxel/Entware/Entware-3x-Voxel/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
root@R7800:~$ /opt/bin/opkg upgrade
Upgrading terminfo on root from 6.1-4 to 6.2-1...
Upgrading libc on root from 2.26-8 to 2.26-9...
Upgrading opkg on root from 2019-01-31-d4ba162b-1 to 2019-06-14-dcbc142e-2...
Upgrading wget on root from 1.20.3-1 to 1.20.3-3...
Upgrading libpthread on root from 2.26-8 to 2.26-9...
Upgrading zoneinfo-europe on root from 2019a-1 to 2019c-1...
Upgrading libpcre on root from 8.43-1 to 8.43-2...
Upgrading zoneinfo-asia on root from 2019a-1 to 2019c-1...
Upgrading libstdcpp on root from 7.4.0-8 to 8.4.0-9...
Upgrading libgcc on root from 7.4.0-8 to 8.4.0-9...
Upgrading librt on root from 2.26-8 to 2.26-9...
Upgrading findutils on root from 4.6.0-3 to 4.7.0-1...
Upgrading libssp on root from 7.4.0-8 to 8.4.0-9...
Upgrading libopenssl on root from 1.1.1c-5 to 1.1.1e-1...
Collected errors:
* verify_pkg_installable: Only have 0kb available on filesystem /opt, pkg terminfo needs 7
* verify_pkg_installable: Only have 0kb available on filesystem /opt, pkg libc needs 1217
* verify_pkg_installable: Only have 0kb available on filesystem /opt, pkg opkg needs 68
* verify_pkg_installable: Only have 0kb available on filesystem /opt, pkg wget needs 239
* verify_pkg_installable: Only have 0kb available on filesystem /opt, pkg libpthread needs 42
* verify_pkg_installable: Only have 0kb available on filesystem /opt, pkg zoneinfo-europe needs 21
* verify_pkg_installable: Only have 0kb available on filesystem /opt, pkg libpcre needs 174
* verify_pkg_installable: Only have 0kb available on filesystem /opt, pkg zoneinfo-asia needs 31
* verify_pkg_installable: Only have 0kb available on filesystem /opt, pkg libstdcpp needs 454
* verify_pkg_installable: Only have 0kb available on filesystem /opt, pkg libgcc needs 24
* verify_pkg_installable: Only have 0kb available on filesystem /opt, pkg librt needs 12
* verify_pkg_installable: Only have 0kb available on filesystem /opt, pkg findutils needs 184
* verify_pkg_installable: Only have 0kb available on filesystem /opt, pkg libssp needs 4
* verify_pkg_installable: Only have 0kb available on filesystem /opt, pkg libopenssl needs 1246
I think it's trying to install packages on the internal memory, what I'm missing?
Thank you