Do a forum search for hdd spindown.
with wget. 'wget http://www......'
wengi
Printable View
Do a forum search for hdd spindown.
with wget. 'wget http://www......'
wengi
Hi, I believe this is option is standard available. But, if you use the hdd for swap and/or have cron installed (which accesses the hdd every minute) the hdd doesn't have any 'inactive' time so it won't spin down. Also, from what I read from the forum is that the WiFi WLAN function causes hdd-access so it won't spin down when WLAN is enabled.
anyway, the following link should provide information: http://wlhdd.co.uk/wiki/HDD_Standby
code: (for spindown after 10 minutes)
(info taken from thread: http://www.wl500g.info/showthread.ph...highlight=spin)Code:hdparm -S 120 /dev/discs/disc0/disc
HTH
Hi,
I already installed Oleg, before I was using OpenWRT on my Asus wl500gp.
All works fine for me,but I have problem with permissions to /opt dir.
the same or similar when I trying:Quote:
[root@WL-001BFC918B60 root]$ mkdir -p /opt/tmp
mkdir: Cannot create directory `/opt/tmp': Read-only file system
- mkdir -p /opt/tmp
- ipkg.sh install ipkg-opt
- mkdir /opt/tmp
I searched the web with google and I can't find any solution when I'm not using an external usb-hdd. I want to install ipkg, mc, nano, iptraf and maybe 4 apps more - I don't need usb-hdd.... I think ;)
Quote:
[root@WL-001BFC918B60 root]$ mount
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
thanks for your time :)Quote:
[root@WL-001BFC918B60 root]$ df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 2.9M 2.9M 0 100% /
ps
sorry for my gramma (if there are some mistakes;) ), english isn't my native language, but I'm trying :D
when I'm looking for same solution :D
Hi,
no need to browse the web.
Simply rtfm:
;)Quote:
Originally Posted by the fucking manual
Check your /etc/fstab and /usr/local/.files.
wengi
yes yes I know, RTFM :D
I wrote, without usb-hdd, internal flash only ;)
there's no fstab :/
in /usr/local: etc, root, sbin adn no files
In etc dir it's only dropbear dir, root is empty,
[root@WL-001BFC918B60 root]$ ls /usr/local/sbin/
post-boot post-firewall post-mount pre-mount pre-shutdown
all of this files are empty, only in post-boot is dropbear ;)
thanks a lot wengi ;)
I installed ver 1.9.2.7-9 (BCM47XX)
no usb-hdd no /opt, so I can't use ipkg and many other features...:(
It's the way to buy a usb-hdd :D
ok, thx
r3ap3rpl
Cant get cron to auto start at boot been following the guide but too much of a newb with linux please help. Will start it manualy so I can continue for now.
My PS axf results
My unslungCode:[admin@(none) 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]
47 ? S 0:00 telnetd
48 ? S 0:00 httpd eth1
54 ? S 0:00 syslogd -m 0 -O /tmp/syslog.log -S -l 7
55 ? S 0:00 klogd
56 ? S 0:00 [dnsmasq]
58 ? Ss 0:01 nas /tmp/nas.lan.conf /tmp/nas.lan.pid lan
61 ? S 0:00 [khubd]
70 ? Ss 0:00 lpd
72 ? Ss 0:00 p9100d -f /dev/usb/lp0 0
75 ? Ss 0:00 waveservermain
77 ? Ss 0:00 rcamdmain
81 ? S 0:00 [usb-storage-0]
82 ? S 0:00 [scsi_eh_0]
86 ? Ss 0:00 infosvr br0
87 ? Ss 0:02 watchdog
91 ? Ss 0:00 \_ ntp
100 ? S 0:00 dropbear
107 ? Ss 0:01 \_ dropbear
113 pts/0 Rs 0:00 \_ -sh
129 pts/0 R+ 0:00 \_ ps axf
106 ? S 0:00 udhcpc -i eth1 -p /var/run/udhcpc0.pid -s /tmp/udhcpc
116 ? S 0:00 [kjournald]
117 ? S 0:00 [kjournald]
120 ? S 0:00 stupid-ftpd
127 ? S 0:00 upnp -D -L br0 -W eth1
My Post-boot only had the top 2 lines so I copied the rest from a post on the forum.Code:[admin@(none) root]$ vi /opt/etc/init.d/rc.unslung
# starting them in numerical order and
# stopping them in reverse numerical order
#
if [ $# -ne 1 ]; then
printf "Usage: $0 {start|stop}\n" >&2
exit 1
fi
daemons=`echo $(/usr/bin/dirname $0)/S??*`
[ $1 = "stop" ] && daemons=`echo $daemons | /usr/bin/tr " " "\n" | /usr/bin/sort
for i in $daemons; do
# Ignore dangling symlinks (if any).
[ ! -f "$i" ] && continue
# Write to syslog
logger -t rc.unslung "$1 service $i"
case "$i" in
*.sh)
# Source shell script for speed.
(
- /opt/etc/init.d/rc.unslung 1/34 2%
tarting them in numerical order and
# stopping them in reverse numerical order
#
if [ $# -ne 1 ]; then
printf "Usage: $0 {start|stop}\n" >&2
exit 1
fi
daemons=`echo $(/usr/bin/dirname $0)/S??*`
[ $1 = "stop" ] && daemons=`echo $daemons | /usr/bin/tr " " "\n" | /usr/bin/sort -r`
for i in $daemons; do
# Ignore dangling symlinks (if any).
[ ! -f "$i" ] && continue
# Write to syslog
logger -t rc.unslung "$1 service $i"
case "$i" in
*.sh)
# Source shell script for speed.
(
trap - INT QUIT TSTP
set $1
. $i
)
;;
*)
# No sh extension, so fork subprocess.
$i $1
;;
esac
done
Code:[admin@(none) root]$ vi /usr/local/sbin/post-boot
#!/bin/sh
dropbear
# test if USB disc has been attached
# if not - then insert needed modules
#
# uncoment the following 4 lines if using an USB HDD.
if [ ! -d /dev/discs ]
then
insmod scsi_mod && insmod sd_mod && insmod usb-storage && sleep 5s
fi
#Wait for /opt to mount
mount /dev/discs/disc0/part2 /opt
i=0
while [ $i -le 30 ]
do
if [ -d /opt/etc ]
then
break
fi
sleep 1
i=`expr $i + 1`
- /usr/local/sbin/post-boot 1/27 3%
#!/bin/sh
dropbear
# test if USB disc has been attached
# if not - then insert needed modules
#
# uncoment the following 4 lines if using an USB HDD.
if [ ! -d /dev/discs ]
then
insmod scsi_mod && insmod sd_mod && insmod usb-storage && sleep 5s
fi
#Wait for /opt to mount
mount /dev/discs/disc0/part2 /opt
i=0
while [ $i -le 30 ]
do
if [ -d /opt/etc ]
then
break
fi
sleep 1
i=`expr $i + 1`
done
Your original post-boot with the two lines is ok. Delete the rest again.
This was changed with firmewares -9 and newer.
Can you start cron manually?
Compare the content of /opt/etc/init.d/S10cron with the Howto.
wengi
Im on a wl-500w if that makes a difference. Thanks for your quick reply wengi, cron can be started manually. PS axf confirms itQuote:
Update solved cron problem dont know how but ps axf shows
129 ? Ss 0:00 /opt/sbin/cron
Pre-manual start
Post manual Start this line is added directly after 124Code:[admin@(none) 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]
47 ? S 0:00 telnetd
48 ? S 0:00 httpd eth1
54 ? S 0:00 syslogd -m 0 -O /tmp/syslog.log -S -l 7
55 ? S 0:00 klogd
56 ? S 0:00 [dnsmasq]
58 ? Ss 0:00 nas /tmp/nas.lan.conf /tmp/nas.lan.pid lan
61 ? S 0:00 [khubd]
70 ? Ss 0:00 lpd
72 ? Ss 0:00 p9100d -f /dev/usb/lp0 0
75 ? Ss 0:00 waveservermain
77 ? Ss 0:00 rcamdmain
81 ? S 0:00 [usb-storage-0]
82 ? S 0:00 [scsi_eh_0]
86 ? Ss 0:00 infosvr br0
87 ? Ss 0:02 watchdog
91 ? Ss 0:00 \_ ntp
100 ? S 0:00 dropbear
120 ? Rs 0:00 \_ dropbear
126 pts/0 Ss 0:00 \_ -sh
131 pts/0 R+ 0:00 \_ ps axf
108 ? S 0:00 udhcpc -i eth1 -p /var/run/udhcpc0.pid -s /tmp/udhcpc
115 ? S 0:00 upnp -D -L br0 -W eth1
121 ? S 0:00 [kjournald]
122 ? S 0:00 [kjournald]
124 ? S 0:00 stupid-ftpd
Quote:
133 ? Ss 0:00 cron
Post boot edited too read
S10cron readsCode:#!/bin/sh
dropbear
Code:#!/bin/sh
#
# Startup script for cron
PIDFILE=/opt/var/run/cron.pid
case $1 in
start)
/opt/sbin/cron
;;
stop)
[ -f ${PIDFILE} ] && kill `cat ${PIDFILE}` ;;
*)
echo "usage: $0 (start|stop)"
exit 1
esac
[admin@(none) torrent]$ mkdir /tmp/harddisk/torrentQuote:
Also solved but again dont know how
cannot create directory `/tmp/harddisk/torrent': File exists
[admin@(none) torrent]$ mkdir /tmp/harddisk/torrent/source
cannot create directory `/tmp/harddisk/torrent/source': Read-only file system
[admin@(none) torrent]$ mkdir /tmp/harddisk/torrent/work
cannot create directory `/tmp/harddisk/torrent/work': Read-only file system
[admin@(none) torrent]$ mkdir /tmp/harddisk/torrent/target
cannot create directory `/tmp/harddisk/torrent/target': Read-only file system
[admin@(none) torrent]$ chmod -R ugoa+w /tmp/harddisk/torrent
changing permissions of `/tmp/harddisk/torrent': Read-only file system
Infomation from mount
[admin@(none) torrent]$ mount
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part2 on /opt type ext3 (rw,noatime)
/dev/discs/disc0/part3 on /tmp/harddisk type ext3 (rw,noatime)
/dev/discs/disc0/part1 on /tmp/harddisk type vfat (ro,noatime)
[admin@(none) torrent]$
how to change my listening port?
my isp blok some of my port(80 , 22 , 23)
when i use wget i can't get it download automatically.
how to get it work?
Hi,
Have a problem with accessing my router's Samba 2 settings on a port 901. Have installed Samba by wengi's tutorial, but than when typing "ps axf", don't see there line with "xinetd". When xinetd is not running, than I can't access 901, right?
Can anyone try to help me?
My output from "ps axf" is:
PID TTY STAT TIME COMMAND
1 ? S 0:01 /sbin/init
2 ? S 0:00 [keventd]
3 ? RN 0:00 [ksoftirqd_CPU0]
4 ? S 0:00 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
7 ? S 0:00 [mtdblockd]
45 ? S 0:00 telnetd
50 ? S 0:01 httpd eth1
54 ? S 0:00 klogd
55 ? S 0:00 syslogd -m 0 -O /tmp/syslog.log -S -l 7
58 ? S 0:00 [dnsmasq]
60 ? Ss 0:01 nas /tmp/nas.lan.conf /tmp/nas.lan.pid lan
63 ? S 0:00 [khubd]
73 ? Ss 0:00 lpd
75 ? Ss 0:00 p9100d -f /dev/usb/lp0 0
79 ? S 0:00 [usb-storage-0]
80 ? S 0:00 [scsi_eh_0]
81 ? S 0:00 [usb-storage-1]
82 ? S 0:00 [scsi_eh_1]
95 ? Ss 0:00 infosvr br0
96 ? Ss 0:00 watchdog
100 ? Ss 0:00 \_ ntp
109 ? S 0:00 dropbear
191 ? Ss 0:00 \_ dropbear
199 pts/0 Ss 0:00 \_ -sh
208 pts/0 R+ 0:00 \_ ps axf
117 ? S 0:00 udhcpc -i eth1 -p /var/run/udhcpc0.pid -s /tmp/udhcpc
139 ? S 0:00 [kjournald]
140 ? S 0:00 [kjournald]
141 ? S 0:00 [kjournald]
144 ? Ss 0:00 /usr/sbin/vsftpd
155 ? Ss 0:00 /opt/sbin/cron
174 ? Ss 0:00 /opt/sbin/smbd -D
176 ? Ss 0:00 /opt/sbin/nmbd -D
197 ? S 0:00 upnp -D -L br0 -W eth1