10456 questions

12461 answers

19387 comments

21897 members

0 votes
47 views 3 comments
by

Hi All:

RUT950:

root@CORS209:~# cat /etc/version

RUT9XX_R_00.06.08.6

When I try and installed ip which 'should' upgrade from 3.11.0-1 to 4.0.0-1....but it fails:
root@CORS209:~# opkg install ip
Upgrading ip on root from 3.11.0-1 to 4.0.0-1...
Collected errors:
 * copy_file: unable to open `/etc/iproute2/rt_tables-opkg.backup': Read-only file system.
 * file_copy: Failed to copy file /etc/iproute2/rt_tables to /etc/iproute2/rt_tables-opkg.backup.
 * backup_make_backup: Failed to copy /etc/iproute2/rt_tables to /etc/iproute2/rt_tables-opkg.backup
 * opkg_install_cmd: Cannot install package ip.
 * pkg_write_filelist: Failed to open //usr/lib/opkg/info/ip.list: Read-only file system.
Also, my sftp up to the unit to transfer a relatively small script, 2KB, fails.
root@CORS209:~# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    2.9M      2.8M     80.0K  97% /
/dev/root                11.3M     11.3M         0 100% /rom
tmpfs                    61.5M    688.0K     60.8M   1% /tmp
/dev/mtdblock5            2.9M      2.8M     80.0K  97% /overlay
overlayfs:/overlay        2.9M      2.8M     80.0K  97% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock7          576.0K    400.0K    176.0K  69% /mnt/mtdblock7
So I successfully copied my script to /tmp and tried to copy it to /root and got this:
 root@CORS209:/tmp# ls -l isalive*
-rw-r--r--    1 root     root          1869 Apr 10 09:35 isalive0.17.sh
root@CORS209:/tmp# mv isalive0.17.sh /root/isalive0.17.sh
mv: can't create '/root/isalive0.17.sh': Read-only file system
Can anyone tell me how to fix this? Note this router is deployed and reset to factory defaults is NOT an option.
Cheers,
John
by
So this particular RUT950, after 2 days, can now get its update.

I just upgraded another one from 7.5 to 8.6 and now it cannot get opkg.

This is very interesting.

Cheers,

John

1 Answer

0 votes
by
Just checking. You try coming from /tmp which uses 1% space.. to /dev/mtdblock5  ("/") which has 97% use.

How large is thie isalive0.17.sh ?

Check filesize; "du isalive0.17.sh"

***

Also just test to copy a simple file from - does it work ?

#cp /etc/resolv.conf /root/resolv.conf.test
by

root@CORS264:~# ls -l

-rw-r--r--    1 root     root           957 Oct 12 09:44 isalive0.10.sh

-rw-r--r--    1 root     root          1780 Mar  7 19:14 isalive0.12.sh

-rw-r--r--    1 root     root          1876 Apr 10 14:12 isalive0.17.sh

root@CORS264:~# du isalive0.17.sh

2       isalive0.17.sh

Cheers,
John

1,876 bytes.

If I try to sftp the file into the /root directory it throws errors, access denied. Read only.

So I tried to copy to /tmp and then to /root, it failed.

by
Ok, solved by reinstalled the FW.

Fixed.

John