javitu / rt-n56u

Automatically exported from code.google.com/p/rt-n56u
0 stars 2 forks source link

Error "mtd_storage.sh save" #1310

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
/opt/home/admin # cp /home/admin/.ssh/authorized_keys /etc/storage
/opt/home/admin # mtd_storage.sh save
Save files to mtd partition "/dev/mtdblock5"
Error! Invalid storage data size: 5559

What version of the product are you using? On what operating system?
3.4.3.8-083

Original issue reported on code.google.com by leandro.ong@gmail.com on 12 Aug 2014 at 6:25

GoogleCodeExporter commented 9 years ago
This is a problem of Entware/Optware shell you use as default.
Remove /opt/bin:/opt/sbin from PATH or execute it from AdminPage in web 
interface.

The output commands execute just now:
admin@router:~# echo $PATH
/usr/sbin:/sbin:/usr/bin:/bin:/opt/sbin:/opt/bin
admin@router:~# mtd_storage.sh save
Save files to mtd partition "/dev/mtdblock5"
Unlocking Storage ...
Writing from /tmp/.storage_tar.bz2 to Storage ...  [w]
Done.
admin@router:~# nvram get firmver_sub
3.0.3.8-083

Original comment by d...@soulblader.com on 12 Aug 2014 at 11:19

GoogleCodeExporter commented 9 years ago
you are right. I use administration->console to save it.

Original comment by leandro.ong@gmail.com on 12 Aug 2014 at 11:27