What's new

R7800 Error: No space left on device - Trying to install Entware

Giaki

New Around Here
Hi,
I flashed the latest Voxel firmware on a R7800 (75.2) and I decided to try to install Entware.
I went through the readme but when I arrived at creating the swap file I got an error that said I hadn't enough space on my usb flash. I read that that was an optional step so i skipped this but maybe this is the cause of the problem I econtered later, "Error: No space left on device".
So I couldn't finish this step:
"Reboot router again. After this use “/opt/bin/opkg update” and “/opt/bin/opkg upgrade” Entware repository. Install and use necessary for you packages."

Was an usb flash drive supposed to be left connected to the router to use Entware?
Should I make a swap file before on the flash drive using gparted?

Thank you
 

L&LD

Part of the Furniture
How big is your USB drive? How is it formatted? How much free space does it actually have (on a PC, for example)?
 

Voxel

Very Senior Member
Hi,
I flashed the latest Voxel firmware on a R7800 (75.2) and I decided to try to install Entware.
I went through the readme but when I arrived at creating the swap file I got an error that said I hadn't enough space on my usb flash. I read that that was an optional step so i skipped this but maybe this is the cause of the problem I econtered later, "Error: No space left on device".
So I couldn't finish this step:
"Reboot router again. After this use “/opt/bin/opkg update” and “/opt/bin/opkg upgrade” Entware repository. Install and use necessary for you packages."

Was an usb flash drive supposed to be left connected to the router to use Entware?
Should I make a swap file before on the flash drive using gparted?

Thank you
As far as I understand you try to install Entware into internal flash of your router. Check my README and clear your /opt directory from Entware/swap. "/opt" by default is internal memory flash. "bin", "etc", "home" etc should be symlinks in /opt. But not ordinary directories. You have to install initial Entware from my tarball. Reboot router. etc. README.

Voxel.
 

Giaki

New Around Here
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):
[email protected]:~$ /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
[email protected]:~$ /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
 
Last edited:

Voxel

Very Senior Member
To clear out /opt and /swap I can simply delete all files inside those foldcrs?
(1) /opt
Yes, just remove everything from /opt. I.e. run the commands:
Code:
rm -rf /opt
reboot
(2) /swap
Swap should NOT be created at the root location of your router! Again: please check README. It should be on your USB drive i.e. /mnt/sda1/swap. I.e. to fix it:
Code:
rm -f /swap
reboot
(3) Use ext4 instead of ext2: it is more advanced and more safe for your data. How: see (4) below.

(4) Run the steps (1) and (2) from the post:

https://www.snbforums.com/threads/c...4-2sf-v-1-0-2-74-3sf.61962/page-3#post-557147

after that:
Code:
cd /mnt/sda1
wget https://voxel-firmware.com/Downloads/Voxel/Entware/entware-cortex-a15-3x-initial-generic.tar.gz
tar xf entware-cortex-a15-3x-initial-generic.tar.gz
dd if=/dev/zero of=swap bs=1024 count=1048576
mkswap swap
chmod 0600 swap
reboot
(5)
And only after that

Code:
/opt/bin/opkg update
/opt/bin/opkg upgrade
Voxel
 

Giaki

New Around Here
I followed all you instructions but same error.
Can't understand what's wrong.
I take out the pendrive, turned off the router, format the pendrive to ext4 with my linux NB, plugged pendrive to the router and then did these commands:

Code:
mkfs.ext4 -L optware -O ^64bit /dev/sda1
tune2fs -O ^metadata_csum /dev/sda1
cd /mnt/sda1
wget https://www.voxel-firmware.com/Downloads/Voxel/Entware/entware-cortex-a15-3x-initial-generic.tar.gz
tar xf entware-cortex-a15-3x-initial-generic.tar.gz
sync
reboot
cd /mnt/sda1
dd if=/dev/zero of=swap bs=1024 count=1048576
mkswap swap
chmod 0600 swap
swapon swap
reboot
no errors.

The last two instructions (update and upgrade) are writing on the internal memory, I suppose.

Code:
[email protected]:~$ /opt/bin/opkg update
Downloading http://www.voxel-firmware.com/Downloads/Voxel/Entware/Entware-3x-Vox                      el/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
[email protected]:~$ /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 termi                      nfo 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 libpt                      hread needs 42
 * verify_pkg_installable: Only have 0kb available on filesystem /opt, pkg zonei                      nfo-europe needs 21
 * verify_pkg_installable: Only have 0kb available on filesystem /opt, pkg libpc                      re needs 174
 * verify_pkg_installable: Only have 0kb available on filesystem /opt, pkg zonei                      nfo-asia needs 31
 * verify_pkg_installable: Only have 0kb available on filesystem /opt, pkg libst                      dcpp needs 454
 * verify_pkg_installable: Only have 0kb available on filesystem /opt, pkg libgc                      c 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 findu                      tils needs 184
 * verify_pkg_installable: Only have 0kb available on filesystem /opt, pkg libss                      p needs 4
 * verify_pkg_installable: Only have 0kb available on filesystem /opt, pkg libop                      enssl needs 1246
[email protected]:~$ ls -al /mnt/sda1
drwxr-xr-x    6 root     root         4096 Mar 30 18:14 .
drwxr-xr-x    3 root     root           80 Jan  1  1970 ..
drwxr-xr-t    2 root     root         4096 Mar 30 18:14 .ReadyDLNA
drwxr-xr-x    3 root     root         4096 Jan 16  2019 autorun
drwxr-xr-x   12 root     root         4096 May 25  2019 entware
-rw-r--r--    1 root     root      5536132 Jun  7  2019 entware-cortex-a15-3x-in                      itial-generic.tar.gz
drwx------    2 root     root        16384 Mar 30 18:03 lost+found
-rw-------    1 root     root    1073741824 Mar 30 18:12 swap
[email protected]:~$ ls -al /mnt/sda1/autorun
drwxr-xr-x    3 root     root         4096 Jan 16  2019 .
drwxr-xr-x    6 root     root         4096 Mar 30 18:14 ..
drwxr-xr-x    2 root     root         4096 Jan 16  2019 scripts
[email protected]:~$ ls -al /mnt/sda1/autorun/scripts
drwxr-xr-x    2 root     root         4096 Jan 16  2019 .
drwxr-xr-x    3 root     root         4096 Jan 16  2019 ..
-rwxr-xr-x    1 root     root         2048 Jan 16  2019 post-mount.sh
 
Last edited:

Giaki

New Around Here
Code:
[email protected]:~$ ls -al /opt
drwxr-xr-x    6 root     root         1256 Mar 30 18:09 .
drwxr-xr-x    1 root     root          776 Mar 30 18:02 ..
lrwxrwxrwx    1 root     root           25 Mar 30 18:09 bin -> /tmp/mnt/sda1/ent                                                                                         ware/bin
-rw-r--r--    1 root     root          175 Mar 30 18:02 dirlist
lrwxrwxrwx    1 root     root           25 Mar 30 18:09 etc -> /tmp/mnt/sda1/ent                                                                                         ware/etc
-rw-r--r--    1 root     root          855 Mar 30 18:02 filelist
lrwxrwxrwx    1 root     root           26 Mar 30 18:09 home -> /tmp/mnt/sda1/en                                                                                         tware/home
drwxr-xr-x    2 root     root          224 Oct 14 16:36 leafp2p
lrwxrwxrwx    1 root     root           25 Mar 30 18:09 lib -> /tmp/mnt/sda1/ent                                                                                         ware/lib
drwxr-xr-x    4 root     root          648 Oct 14 16:39 rcagent
drwxr-xr-x    2 root     root          296 Oct 14 16:39 remote
lrwxrwxrwx    1 root     root           26 Mar 30 18:09 root -> /tmp/mnt/sda1/en                                                                                         tware/root
lrwxrwxrwx    1 root     root           26 Mar 30 18:09 sbin -> /tmp/mnt/sda1/en                                                                                         tware/sbin
lrwxrwxrwx    1 root     root           27 Mar 30 18:09 share -> /tmp/mnt/sda1/e                                                                                         ntware/share
lrwxrwxrwx    1 root     root           25 Mar 30 18:09 tmp -> /tmp/mnt/sda1/ent                                                                                         ware/tmp
lrwxrwxrwx    1 root     root           25 Mar 30 18:09 usr -> /tmp/mnt/sda1/ent                                                                                         ware/usr
lrwxrwxrwx    1 root     root           25 Mar 30 18:09 var -> /tmp/mnt/sda1/ent                                                                                         ware/var
-rw-r--r--    1 root     root            9 Mar 30 18:02 version
drwxr-xr-x    3 root     root          504 Oct 14 16:35 xagent
[email protected]:~$ df -h
Filesystem                Size      Used Available Use% Mounted on
tmpfs                   512.0k         0    512.0k   0% /dev
ubi0:overlay_volume      49.8M     49.8M         0 100% /overlay
overlayfs:/overlay       49.8M     49.8M         0 100% /
/dev/sda1                 7.4G      1.1G      5.9G  16% /tmp/mnt/sda1
tmpfs                   512.0k         0    512.0k   0% /hipplay/dev
/dev/sda1                 7.4G      1.1G      5.9G  16% /hipplay/home/0external/                                                                                         dc8fdc8e-e2f8-4f79-b27c-54032fc00a7b
tmpfs                   236.1M         0    236.1M   0% /hipplay/dev/shm
 

Voxel

Very Senior Member
At least one serious problem. After your experiments. Your internal flash is over.

. . .
ubi0:eek:verlay_volume 49.8M 49.8M 0 100% /overlay
overlayfs:/overlay 49.8M 49.8M 0 100% /
. . .
No space left. Well. Your USB seems OK. But internal flash... Is not a secret why do you want to use Entware? Seems you are not so experienced in Linux administration, sorry...

Simplest way for you is to reset to factory settings. And to install your configuration manually. To free your internal flash.

Or if you think that you can do: all your changes are visible in /overlay. It is necessary to clear your wrong steps e.g. swap file or whatever else. I do not know what else there. Maybe entware. If you think that you can do it. Rest (already prepared Entware) is already OK: on your USB. Please do all this with no USB attached.

Voxel.
 

Giaki

New Around Here
Thnk you for all your support, yes, I just starded learning Linux stuff, I'm sorry if I'm doing silly mistakes or asking obvious things.
I'd like to use Entware to try adguard and wireguard (next thing to learn).

I unplugged the usb drive, did a reset via the hole behind the router. ssh key is still there so I can connect either telnet and ssh.
But overlay_volume is still full, I tried to delete /opt from inside ovelay folder but overlay is still full (strange).

Tried mnt erase volume_overlay but I got an error, either from ssh and telnet:
Could not open mtd device: overlay_volume
Could not open mtd device: overlay_volume

Any suggestion how can I format overlay?
Thank you
 

Voxel

Very Senior Member
I'm sorry if I'm doing silly mistakes or asking obvious things.
Do not worry. No problems with this.

I'd like to use Entware to try adguard and wireguard (next thing to learn).
Well. Adguard? No such package in Entware as far as I know. There is kamoj add-on allowing to block ads. Wireguard. First, you are using R7800 and it could support only wireguard-go. Second: will be not so fast vs e.g. OpenVPN client. Plus wireguard-go additional package (+wireguard-tools) does not require installation of Entware.

Any suggestion how can I format overlay?
Better do not try to do that. You could brick your router.

Try to flash, say, any stock firmware. Reset to factory settings. And after that back to 75.2SF.

P.S.
Before doing this please publish here the output of

Code:
ls -al /overlay
ls -al /
Voxel.
 

Giaki

New Around Here
Well... I meant ad-block of course :D
Still experimenting about adblocking, don't know if it's better doing this with a raspberry pi 4 (I tried adguard and pihole) or doing directly with the router.

Good to know Wireguard-go vs OpenVPN, I thought that Wireguard was way better than OpenVPN. I could give a try to OpenVPN thus (150-30 FTTC).

I wanted to try also kamoj add-on but I messed up the overlay so can't do any tinkering at the moment.

Here is the output:
Code:
[email protected]:~$ ls -al /overlay
drwxr-xr-x    8 root     root          616 Mar 31 17:42 .
drwxr-xr-x    1 root     root          616 Mar 31 17:42 ..
-rw-r--r--    1 root     root           29 Jan  1  1970 .firmware_time
drwxr-xr-x    6 root     root          584 Mar 30 16:03 etc
drwxr-xr-x   16 root     root         1376 Mar 28 16:17 hipplay
drwxr-xr-x    3 root     root          232 Mar 26 18:30 lib
drwxr-xr-x    3 root     root          288 Mar 29 00:05 root
drwxr-xr-x    3 root     root          224 Oct 14 14:39 usr
drwxr-xr-x    3 root     root          224 Oct 14 14:35 www
[email protected]:~$ ls -al /
drwxr-xr-x    1 root     root          616 Mar 31 17:42 .
drwxr-xr-x    1 root     root          616 Mar 31 17:42 ..
-rw-r--r--    1 root     root           29 Jan  1  1970 .firmware_time
drwxr-xr-x    2 root     root          916 Mar 26 18:30 bin
-rw-r--r--    1 root     root            9 Mar 26 18:33 cloud_version
-rw-r--r--    1 root     root           11 Mar 26 18:33 default_language_version
drwxr-xr-x    8 root     root         4620 Mar 26 18:44 dev
drwxr-xr-x    1 root     root          584 Mar 30 16:03 etc
-rw-r--r--    1 root     root            1 Mar 26 18:33 firmware_region
-rw-r--r--    1 root     root           29 Mar 26 18:33 firmware_time
-rw-r--r--    1 root     root           14 Mar 26 18:33 firmware_version
-rw-r--r--    1 root     root            6 Mar 26 18:33 hardware_version
drwxr-xr-x   16 root     root         1376 Mar 28 16:17 hipplay
lrwxrwxrwx    1 root     root            4 Mar 26 18:30 home -> /tmp
-rw-r--r--    1 root     root           35 Mar 26 18:33 hw_id
drwxr-xr-x    1 root     root          232 Mar 26 18:30 lib
lrwxrwxrwx    1 root     root            8 Mar 26 18:30 mnt -> /tmp/mnt
-rw-r--r--    1 root     root            6 Mar 26 18:33 module_name
drwxr-xr-x    8 root     root          616 Mar 31 17:42 overlay
dr-xr-xr-x  146 root     root            0 Jan  1  1970 proc
drwxr-xr-x   15 root     root          436 Mar 26 18:33 rom
drwxr-xr-x    1 root     root          288 Mar 29 00:05 root
drwxr-xr-x    3 root     root         2374 Mar 26 18:30 sbin
dr-xr-xr-x   15 root     root            0 Jan  1  1970 sys
drwxrwxrwt   25 root     root         2360 Mar 31 23:11 tmp
drwxr-xr-x    1 root     root          224 Oct 14 14:39 usr
lrwxrwxrwx    1 root     root            4 Mar 26 18:30 var -> /tmp
drwxr-xr-x    1 root     root          224 Oct 14 14:35 www
 

e38BimmerFN

Very Senior Member
Voxel, is Entware supported on Orbi? I see that DNSCrypt and a couple of other items are in your release notes. I didn't see Entware listed...
 

Voxel

Very Senior Member
Voxel, is Entware supported on Orbi? I see that DNSCrypt and a couple of other items are in your release notes. I didn't see Entware listed...
You probably missed this info. Check my QuickStart.txt in ZIP with Orbi firmware:

. . .
4. Entware.
You can use Entware prepared by me for R7500/R7800/R9000. It works fine with Orbi.
(1) Prepare new USB stick or disk with ext2 or ext3 or ext4 filesystem from telnet/ssh
. . .


Voxel.
 

Voxel

Very Senior Member
And BTW Entware is updated a bit. Including netdata.

Code:
/opt/bin/opkg update
/opt/bin/opkg upgrade
and do not download the package for its installation. Just:

Code:
/opt/bin/opkg install <package_name>
it is normal way to install the package. Downloading and installation manually from *.ipk for Entware is not needed as a rule.

Voxel.
 

e38BimmerFN

Very Senior Member
Ok I wanted to confirm.

I had started the installation. Using a HDD USB drive connected to the back of the RBR. Same kind of drive I used yesterday on my R7800 which I got working well with Netdata.
I'm getting to this area during the setup:
mkswap swap< Not working on Orbi
I get a not found message: mkswap
I used the:
dd if=/dev/zero of=swap bs=1024 count=1048576 that proceeded the mkswap command.

Did I miss something? All was good up to the mkswap command.

You probably missed this info. Check my QuickStart.txt in ZIP with Orbi firmware:

. . .
4. Entware.
You can use Entware prepared by me for R7500/R7800/R9000. It works fine with Orbi.
(1) Prepare new USB stick or disk with ext2 or ext3 or ext4 filesystem from telnet/ssh
. . .


Voxel.
 

Voxel

Very Senior Member
I'm getting to this area during the setup:
mkswap swap< Not working on Orbi
Yes, you are right. I did not enable it for Orbi firmware. "I'll do in the next release. Use of swap is optional...

Meanwhile there is a workaround:

(1) Install swap-utils from Entware:
Code:
/opt/bin/opkg update
/opt/bin/opkg upgrade
/opt/bin/opkg install swap-utils
mkswap swap
(2) Change a bit /mnt/sda1/autorun/scripts/post-mount.sh by e.g. nano editor:
Code:
nano /mnt/sda1/autorun/scripts/post-mount.sh
Change
/sbin/swapon $SWAP

to
/opt/sbin/swapon $SWAP

Save file, exit nano, reboot.

Voxel.
 

e38BimmerFN

Very Senior Member
Ok will give this a try...
 

e38BimmerFN

Very Senior Member
Voxel, I'm try to do this again. I think that the tar file isn't being unpacked after it's downloaded:
cd /mnt/sda1
wget https://voxel-firmware.com/Downloads/Voxel/Entware/entware-cortex-a15-3x-initial-generic.tar.gz
tar xf entware-cortex-a15-3x-initial-generic.tar.gz
Reboot RBR

[email protected]:/# ls -l /opt/*
lrwxrwxrwx 1 root root 16 Apr 4 16:56 /opt/bitdefender -> /mnt/bitdefender

[email protected]:/tmp/mnt/sda1# ls -l /opt/*
lrwxrwxrwx 1 root root 16 Apr 4 16:46 /opt/bitdefender -> /mnt/bitdefender
Is all I see...

I can't do
/opt/bin/opkg update
/opt/bin/opkg upgrade as this causes the following message: /opt/bin/opkg: not found
Let me know what I'm missing...
 

R. Gerrits

Senior Member
tar xf entware-cortex-a15-3x-initial-generic.tar.gz
shouldn't that be "tar xzf entware-cortex-a15-3x-initial-generic.tar.gz" ???
Because it is a .tar.gz?

otherwise, check if /mnt/sda1/autorun/scripts/post-mount.sh exists an can be executed. That script is responsible for enabling entware after reboot.
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top