What's new

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

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Ok, I tried the 'xzf' option as well.
I then did this:
root@RBR50:/tmp/mnt/sda1# cd /mnt/sda1/autorun/scripts/
root@RBR50:/tmp/mnt/sda1/autorun/scripts# ls
post-mount.sh
Is there...

Rebooted the RBR

root@RBR50:/# ls -l /opt/*
lrwxrwxrwx 1 root root 16 Apr 5 11:14 /opt/bitdefender -> /mnt/bitdefender
Not seeing entware directories or symlinks (bin, usr, share, var etc.)

root@RBR50:/tmp/mnt/sda1# cd /mnt/sda1/autorun/scripts/
root@RBR50:/tmp/mnt/sda1/autorun/scripts# ls
post-mount.sh
Is there still...

This finds the following:
root@RBR50:/# cd /mnt/sda1
root@RBR50:/tmp/mnt/sda1# ls
autorun
entware
entware-cortex-a15-3x-initial-alternative.tar.gz
entware-cortex-a15-3x-initial-generic.tar.gz
entware-cortex-a15-3x-initial-generic.tar.gz.1
entware-cortex-a15-3x-initial-generic.tar.gz.2
entware-cortex-a15-3x-initial-generic.tar.gz.3
entware-cortex-a15-3x-initial-generic.tar.gz.4
lost+found
swap

I tried dd if=/dev/zero of=swap bs=1024 count=1048576 again
1048576+0 records in
1048576+0 records out
1073741824 bytes (1.0GB) copied, 30.801175 seconds, 33.2MB/s

root@RBR50:/tmp/mnt/sda1# mkswap swap
-ash: mkswap: not found

chmod 0600 swap seems to work. No errors here.

root@RBR50:/tmp/mnt/sda1# swapon swap
-ash: swapon: not found

root@RBR50:/tmp/mnt/sda1# nano /mnt/sda1/autorun/scripts/post-mount.sh
Error opening terminal: unknown.

If I do this...
root@RBR50:/tmp/mnt/sda1# cd entware
root@RBR50:/tmp/mnt/sda1/entware# ls
bin etc home lib root sbin share tmp usr var
are seen...

If I do this...
root@RBR50:/tmp/mnt/sda1/entware# cd /bin
root@RBR50:/bin# ls
ash echo ls rev
base64 egrep lzop rm
bash false mkdir rmdir
board_detect fatattr mknod sed
busybox fgrep mktemp setserial
cat fsync mount sh
chgrp getopt mpstat sleep
chmod grep mv speedtest.sh
chown gunzip netstat stat
config gzip nice su
config_generate hostname nvram sync
conspy ionice ookla tar
cp iostat openvpn_cert_check touch
cttyhack ipcalc.sh openvpn_update true
datalib kbd_mode pidof ubus
date kill ping umount
dd ln ping6 uname
df lock ps usleep
dmesg login pwd vi
dnsdomainname login.sh readycloud_nvram zcat
The various apps are seen...I don't see mkswap or swapon apps. (Sorry about the messy paste.)
 
root@RBR50:/# ls -l /opt/*
lrwxrwxrwx 1 root root 16 Apr 5 11:14 /opt/bitdefender -> /mnt/bitdefender
Not seeing entware directories or symlinks (bin, usr, share, var etc.)

root@RBR50:/tmp/mnt/sda1# cd /mnt/sda1/autorun/scripts/
root@RBR50:/tmp/mnt/sda1/autorun/scripts# ls
post-mount.sh

Try to run this script manually from ssh/telnet console:
Code:
/tmp/mnt/sda1# cd /mnt/sda1/autorun/scripts/post-mount.sh

What it displays.

mkswap and nano
root@RBR50:/tmp/mnt/sda1# nano /mnt/sda1/autorun/scripts/post-mount.sh
Error opening terminal: unknown.

What sss/telnet are you using? If you are entering from Windows it is better to use putty...

Voxel.
 
Ok, will try this.
I use TeraTerm for my telnet app in Windows. What is use to configure my R7800.
 
root@RBR50:/tmp/mnt/sda1# /mnt/sda1/autorun/scripts/post-mount.sh sda1
/mnt/sda1/autorun/scripts/post-mount.sh: line 83: /sbin/swapon: not found

Yes, sure, sorry for misprint. And even more bug in my instructions. Should be:

/mnt/sda1/autorun/scripts/post-mount.sh sda1

Voxel.
 
root@RBR50:/tmp/mnt/sda1# /mnt/sda1/autorun/scripts/post-mount.sh sda1
/mnt/sda1/autorun/scripts/post-mount.sh: line 83: /sbin/swapon: not found

And what is in /opt?
Code:
ls -al /opt/

And BTW did you set nocloud=1 in nvram?
Code:
nvram set nocloud=1
nvram commit

Voxel.
 
root@RBR50:/# ls -al /opt/
drwxr-xr-x 2 root root 60 Mar 28 02:52 .
drwxrwxrwt 33 root root 3820 Apr 6 09:31 ..
lrwxrwxrwx 1 root root 16 Mar 28 02:52 bitdefender -> /mnt/bitdefender

root@RBR50:/# cd mnt/sda1
root@RBR50:/tmp/mnt/sda1# ls -al /opt/
drwxr-xr-x 2 root root 60 Mar 28 02:52 .
drwxrwxrwt 33 root root 3820 Apr 6 09:31 ..
lrwxrwxrwx 1 root root 16 Mar 28 02:52 bitdefender -> /mnt/bitdefender

No I had not set nocloud. I have now done so.

So I started over with:
wget https://voxel-firmware.com/Downloads/Voxel/Entware/entware-cortex-a15-3x-initial-generic.tar.gz

tar xzf entware-cortex-a15-3x-initial-generic.tar.gz

Reboot

root@RBR50:/# ls -al /opt/
drwxr-xr-x 12 root root 4096 Apr 6 09:38 .
drwxr-xr-x 5 root root 4096 Apr 6 09:35 ..
drwxr-xr-x 2 root root 4096 Apr 1 01:32 bin
lrwxrwxrwx 1 root root 16 Apr 6 09:38 bitdefender -> /mnt/bitdefender
drwxr-xr-x 5 root root 4096 Apr 1 01:32 etc
drwxr-xr-x 2 root root 4096 Jan 21 04:12 home
drwxr-xr-x 4 root root 4096 Apr 1 01:32 lib
lrwxrwxrwx 1 root root 8 Apr 6 09:38 opt -> /tmp/opt
drwxr-xr-x 2 root root 4096 Apr 1 01:30 root
drwxr-xr-x 2 root root 4096 Jan 21 04:12 sbin
drwxr-xr-x 4 root root 4096 Jan 21 04:12 share
drwxrwxrwx 3 root root 4096 Apr 1 01:32 tmp
drwxr-xr-x 4 root root 4096 Jan 21 04:12 usr
drwxr-xr-x 6 root root 4096 Apr 1 01:30 var
Now I see more folders...

root@RBR50:/# cd /mnt/sda1
root@RBR50:/tmp/mnt/sda1# dd if=/dev/zero of=swap bs=1024 count=1048576
dd: writing 'swap': Read-only file system
891738+0 records in
891737+0 records out
913138688 bytes (870.8MB) copied, 51.016316 seconds, 17.1MB/s

root@RBR50:/tmp/mnt/sda1# mkswap swap
-ash: mkswap: not found

root@RBR50:/tmp/mnt/sda1# /mnt/sda1/autorun/scripts/post-mount.sh sda1
-ash: /mnt/sda1/autorun/scripts/post-mount.sh: not found

root@RBR50:/tmp/mnt/sda1# nano /mnt/sda1/autorun/scripts/post-mount.sh
Error opening terminal: unknown.

root@RBR50:/tmp/mnt/sda1# ls -al /opt/
ls: /opt/: No such file or directory

root@RBR50:/tmp/mnt/sda1# cd /
root@RBR50:/# ls -al /opt/
ls: /opt/: No such file or directory
Folders seen before are now missing?
 
Last edited:
No I had not set nocloud. I have now done so.
It was written in my QuickStart.txt.

root@RBR50:/tmp/mnt/sda1# /mnt/sda1/autorun/scripts/post-mount.sh sda1
No necessity to run it manually every time. Just for debugging your situation. If you got /opt/bin, /opt/etc /opt/home etc - means everything is OK.

root@RBR50:/tmp/mnt/sda1# nano /mnt/sda1/autorun/scripts/post-mount.sh
Error opening terminal: unknown.
putty.
https://www.chiark.greenend.org.uk/~sgtatham/putty/

root@RBR50:/tmp/mnt/sda1# ls -al /opt/
ls: /opt/: No such file or directory

root@RBR50:/tmp/mnt/sda1# cd /
root@RBR50:/# ls -al /opt/
ls: /opt/: No such file or directory
Folders seen before are now missing?

root@RBR50:/tmp/mnt/sda1# /mnt/sda1/autorun/scripts/post-mount.sh sda1
-ash: /mnt/sda1/autorun/scripts/post-mount.sh: not found

Try to reboot. Is you USB OK? /mnt/sda1/autorun/scripts/post-mount.sh: not found was there...

Voxel.
 
Been using your readme.doc file for Entware. I don't see a quickstart.txt on your site.

I'll download Putty and try again from the start.

USB is fine. Same size and kind of drive I use on the R7800.

Using Putty:
root@RBR50:/tmp/mnt/sda1# tar xzf entware-cortex-a15-3x-initial-generic.tar.gz

root@RBR50:/tmp/mnt/sda1# ls -l /opt/*
lrwxrwxrwx 1 root root 25 Apr 6 10:36 /opt/bin -> /tmp/mnt/sda1/entware/bin
lrwxrwxrwx 1 root root 16 Apr 6 10:32 /opt/bitdefender -> /mnt/bitdefender
lrwxrwxrwx 1 root root 25 Apr 6 10:36 /opt/etc -> /tmp/mnt/sda1/entware/etc
lrwxrwxrwx 1 root root 26 Apr 6 10:36 /opt/home -> /tmp/mnt/sda1/entware/home
lrwxrwxrwx 1 root root 25 Apr 6 10:36 /opt/lib -> /tmp/mnt/sda1/entware/lib
lrwxrwxrwx 1 root root 26 Apr 6 10:36 /opt/root -> /tmp/mnt/sda1/entware/root
lrwxrwxrwx 1 root root 26 Apr 6 10:36 /opt/sbin -> /tmp/mnt/sda1/entware/sbin
lrwxrwxrwx 1 root root 27 Apr 6 10:36 /opt/share -> /tmp/mnt/sda1/entware/share
lrwxrwxrwx 1 root root 25 Apr 6 10:36 /opt/tmp -> /tmp/mnt/sda1/entware/tmp
lrwxrwxrwx 1 root root 25 Apr 6 10:36 /opt/usr -> /tmp/mnt/sda1/entware/usr
lrwxrwxrwx 1 root root 25 Apr 6 10:36 /opt/var -> /tmp/mnt/sda1/entware/var
root@RBR50:/tmp/mnt/sda1#
root@RBR50:/tmp/mnt/sda1# ls -al /opt/
drwxr-xr-x 2 root root 260 Apr 6 10:36 .
drwxrwxrwt 33 root root 3780 Apr 6 10:36 ..
lrwxrwxrwx 1 root root 25 Apr 6 10:36 bin -> /tmp/mnt/sda1/entware/bin
lrwxrwxrwx 1 root root 16 Apr 6 10:32 bitdefender -> /mnt/bitdefender
lrwxrwxrwx 1 root root 25 Apr 6 10:36 etc -> /tmp/mnt/sda1/entware/etc
lrwxrwxrwx 1 root root 26 Apr 6 10:36 home -> /tmp/mnt/sda1/entware/home
lrwxrwxrwx 1 root root 25 Apr 6 10:36 lib -> /tmp/mnt/sda1/entware/lib
lrwxrwxrwx 1 root root 26 Apr 6 10:36 root -> /tmp/mnt/sda1/entware/root
lrwxrwxrwx 1 root root 26 Apr 6 10:36 sbin -> /tmp/mnt/sda1/entware/sbin
lrwxrwxrwx 1 root root 27 Apr 6 10:36 share -> /tmp/mnt/sda1/entware/share
lrwxrwxrwx 1 root root 25 Apr 6 10:36 tmp -> /tmp/mnt/sda1/entware/tmp
lrwxrwxrwx 1 root root 25 Apr 6 10:36 usr -> /tmp/mnt/sda1/entware/usr
lrwxrwxrwx 1 root root 25 Apr 6 10:36 var -> /tmp/mnt/sda1/entware/var

root@RBR50:/tmp/mnt/sda1# dd if=/dev/zero of=swap bs=1024 count=1048576
1048576+0 records in
1048576+0 records out
1073741824 bytes (1.0GB) copied, 30.495086 seconds, 33.6MB/s

root@RBR50:/tmp/mnt/sda1# /mnt/sda1/autorun/scripts/post-mount.sh sda1
/mnt/sda1/autorun/scripts/post-mount.sh: line 83: /sbin/swapon: not found

root@RBR50:/tmp/mnt/sda1# mkswap swap
-ash: mkswap: not found

Reboot

root@RBR50:/# ls -l /opt/*
lrwxrwxrwx 1 root root 16 Apr 6 09:38 /opt/bitdefender -> /mnt/bitdefender
lrwxrwxrwx 1 root root 8 Apr 6 09:38 /opt/opt -> /tmp/opt
Also showed a ton more folder and file information that I have seen yet. So I didn't paste here.

So I skipped the Create Swap File and went into doing “/opt/bin/opkg update” and “/opt/bin/opkg upgrade”

root@RBR50:/# /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

/opt/bin/opkg upgrade
Upgrading libc on root from 2.26-9 to 2.27-9...
Downloading http://www.voxel-firmware.com/Downloads/Voxel/Entware/Entware-3x-Voxel/libc_2.27-9_cortex-a15-3x.ipk
This Removed and Upgraded several files.

root@RBR50:/# cd /mnt/sda1
root@RBR50:/tmp/mnt/sda1# dd if=/dev/zero of=swap bs=1024 count=1048576
1048576+0 records in
1048576+0 records out
1073741824 bytes (1.0GB) copied, 29.925945 seconds, 34.2MB/s

root@RBR50:/tmp/mnt/sda1# mkswap swap
-ash: mkswap: not found
 
Last edited:
putty is for running nano editor to change post-mount.sh

Rest is ok. Again. You should not execute post-mount.sh every time. It is executed automatically already.

and install swap-utils from Entware after editing post-mount.

Voxel.
 
QuickStart is in my zip with Entware.
I am out of kbd now (smartphone)
Voxel.
 
root@RBR50:/tmp/mnt/sda1# nano /mnt/sda1/autorun/scripts/post-mount.sh
Error opening terminal: unknown.

putty is for running nano editor to change post-mount.sh

Rest is ok. Again. You should not execute post-mount.sh every time. It is executed automatically already.

and install swap-utils from Entware after editing post-mount.

Voxel.
 
root@RBR50:/tmp/mnt/sda1# /opt/bin/opkg install netata
Unknown package 'netata'.
Collected errors:
* opkg_install_cmd: Cannot install package netata.
root@RBR50:/tmp/mnt/sda1#

Ok, thank you for your time.

/opt/bin/opkg install netata
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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

Staff online

Top