either use scp or:
PHP Code:
ipkg install openssh-sftp-server
[admin@ASUS_160GB ipkg]$ ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/op...le/Packages.gz
sh: wget: Permission denied
An error ocurred, return value: 1.
Collected errors:
ipkg_download: ERROR: Command failed with return value 127: `wget -q -P /opt/ipkg-4TwonM http://ipkg.nslu2-linux.org/feeds/op...le/Packages.gz'
[admin@ASUS_160GB ipkg]$ ipkg upgrade
sh: rm: Permission denied
Nothing to be done
Successfully terminated.
When i try to install unrar for example:
[admin@ASUS_160GB ipkg]$ ipkg install unrar
Package unrar (3.7.8-1) installed in /opt/ is up to date.
sh: rm: Permission denied
Nothing to be done
Successfully terminated.
Please why I always see Permission denied? I am logged as admin and df shows:
[admin@ASUS_160GB ipkg]$ df
Filesystem Size Used Avail Use% Mounted on
rootfs 3.0M 3.0M 0 100% /
/dev/root 3.0M 3.0M 0 100% /
/dev/discs/disc0/part2
966M 103M 814M 12% /opt
/dev/discs/disc0/part3
916G 257G 613G 30% /tmp/mnt/disc0_3
Hi,
did this work at any time or is it a permanent error since you installed the router?
wengi
Übersicht aller HowTos --- HowTo Overview (mostly german)
WL-HDD mit diesem Setup. --- WL-HDD with this setup.
Kein Support per PM - Frage im jeweiligen Thread! --- No support via pm - ask in the according thread!
Eine wirklich gute Idee erkennt man daran, dass ihre Verwirklichung von vorne herein ausgeschlossen erscheint. (Albert Einstein)
do an e2fsck on /opt.
i guess the file system needs to be checked.
wengi
Übersicht aller HowTos --- HowTo Overview (mostly german)
WL-HDD mit diesem Setup. --- WL-HDD with this setup.
Kein Support per PM - Frage im jeweiligen Thread! --- No support via pm - ask in the according thread!
Eine wirklich gute Idee erkennt man daran, dass ihre Verwirklichung von vorne herein ausgeschlossen erscheint. (Albert Einstein)
[admin@ASUS_160GB /opt]$ e2fsck /dev/discs/disc0/part2
e2fsck 1.41.2 (02-Oct-2008)
/dev/discs/disc0/part2 is mounted.
WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.
Is it safe to run or better be unmounted? And it is possible to run when /opt is unmounted? (When speaking about unmounting I dont know how to unmount umount /dev/discs/disc0/part2 doesnt working) umount: Couldn't umount /dev/scsi/host0/bus0/target0/lun0/part2: Invalid argument
And which parameters to use with e2fsck ? Is it e2fsck /dev/discs/disc0/part2 ok?
Last edited by Etor; 09-03-2009 at 12:59.
stop all services running on /opt so it is not used any more.
then unmount /opt
wengi
Übersicht aller HowTos --- HowTo Overview (mostly german)
WL-HDD mit diesem Setup. --- WL-HDD with this setup.
Kein Support per PM - Frage im jeweiligen Thread! --- No support via pm - ask in the according thread!
Eine wirklich gute Idee erkennt man daran, dass ihre Verwirklichung von vorne herein ausgeschlossen erscheint. (Albert Einstein)
Can you help me to find what more is running at /opt?
[admin@ASUS_160GB root]$ ps axf
PID TTY STAT TIME COMMAND
1 ? S 0:01 /sbin/init
2 ? S 0:00 [keventd]
3 ? SN 0:00 [ksoftirqd_CPU0]
4 ? S 0:00 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
7 ? S 0:00 [mtdblockd]
61 ? S 0:00 telnetd
66 ? S 0:00 httpd
71 ? S 0:00 klogd
72 ? S 0:00 [khubd]
80 ? Ss 0:00 lpd
82 ? Ss 0:00 p9100d -f /dev/usb/lp0 0
86 ? Ss 0:00 waveservermain
88 ? Ss 0:00 rcamdmain
92 ? S 0:00 [usb-storage-0]
93 ? S 0:00 [scsi_eh_0]
95 ? Ss 0:00 infosvr br0
96 ? Ss 0:00 watchdog
97 ? Ss 0:00 \_ ntp
105 ? S 0:00 dropbear
117 ? Rs 0:00 \_ dropbear
149 pts/0 Ss 0:00 \_ -sh
197 pts/0 R+ 0:00 \_ ps axf
124 ? S 0:00 [kjournald]
125 ? S 0:00 [kjournald]
128 ? Ss 0:00 /usr/sbin/vsftpd
130 ? Ss 0:00 /usr/sbin/nmbd -D
132 ? Ss 0:00 /usr/sbin/smbd -D
[admin@ASUS_160GB root]$ umount /dev/discs/disc0/part2
umount: Couldn't umount /dev/scsi/host0/bus0/target0/lun0/part2: Invalid argument
Last edited by Etor; 09-03-2009 at 14:09.
You should tryif you get a "umount: cannot umount /opt: Device or resource busy" then begin to kill services.Code:umount /opt
i would guess vsftp and smb.
wengi
Übersicht aller HowTos --- HowTo Overview (mostly german)
WL-HDD mit diesem Setup. --- WL-HDD with this setup.
Kein Support per PM - Frage im jeweiligen Thread! --- No support via pm - ask in the according thread!
Eine wirklich gute Idee erkennt man daran, dass ihre Verwirklichung von vorne herein ausgeschlossen erscheint. (Albert Einstein)
the simplest way is just:
flashfs disable && reboot
after that disk will be automounted to something like /tmp/mnt/diskX_Y (check exact name), but none of the services related to disk will be started. Then you
umount /tmp/mnt/diskX_Y
now it should work. Then run e2fsck. When you finished:
flashfs enabled && reboot
flashfs disable && reboot gives me:
[admin@ASUS_160GB root]$ flashfs disable && reboot
/sbin/flashfs: /sbin/flashfs: 20: cat: Permission denied
/sbin/flashfs: /sbin/flashfs: 73: nvram: Permission denied
/sbin/flashfs: /sbin/flashfs: 73: nvram: Permission denied
EDIT: So, i tried this flashfs disable && reboot in few seconds after restart (before router mounted discs) and now i cannot connect with putty to it (gives me connection refused). But I discovered that i can access command line from web interface and finally unomunted it
Then i run e2fsck and it gives me that it needs terminal to interactive. So I tried e2fsck -p and then I flashfs enabled && reboot. But Problem is still the same.
[admin@ASUS_160GB root]$ ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/op...le/Packages.gz
sh: wget: Permission denied
An error ocurred, return value: 1.
Collected errors:
ipkg_download: ERROR: Command failed with return value 127: `wget -q -P /opt/ipkg-6AXChz http://ipkg.nslu2-linux.org/feeds/op...le/Packages.gz'
Maybe e2fsck takes a longer time. How long for 1GB? Or how parameters I must use with e2fsck from web interface?
For info I typed to system command: e2fsck -p /dev/discs/disc0/part2
And it gives: /dev/discs/disc0/part2: clean, 8240/125696 files, 30375/251015 blocks (check in 4 mounts)
EDIT2: So I rebooted 4times to force e2fsck to check disc and to be sure run again e2fsck -p /dev/discs/disc0/part2 but after flashfs enabled && reboot again:
ipkg update
sh: wget: Permission denied
It is possible somehow to do e2fsck with putty?
Last edited by Etor; 10-03-2009 at 10:07.
I have an Asus WL500GPV2 and I decided to try Oleg after dd-wrt (eko's NEWD).
My problem is that I installed OLEG 2.0.1.5 firmware (from forums discussions I found that should be a good choice instead Oleg 3.0.2.6).
I started utelnetd from secret page (utelnetd does not start automatically, I found it in /usr/sbin), and I found no dropbear and no flashfs script on either /bin, /sbin, /usr/bin or usr/sbin.
Can someone give me flashfs script and dropbear to install? And some help to install them?
Thank you very much and I hope to help others too, after I will learn this firmware.
Last edited by adrianio; 10-03-2009 at 08:38.
ssh will be disabled, as dropbear is started from flashfsBut I discovered that i can access command line
you can either start it from web-command-line by typing:
or access router through telnet (it should be enabled in the web interface, but then it starts automatically)PHP Code:
dropbear