PDA

Bekijk de volledige versie : Spinning down the internal HDD



Hacksaw
20-04-2007, 19:24
I have been having a lot of fun with this little brick. I had made a decision to buy it, then the supplier couldn't get me one, so I gave up. I found this site and did some reading, so when my local shop called me up with one available I jumped at the chance. Thank you for all the information on this site (and others referenced here). It has been very helpful.

I have managed to install WL700gE_1.0.4.6_kc_02a.nas following the instructions on kfurge's site. I added the following rc.local entries:



#!/bin/sh

pool=`nvram get apps_pool`
share=`nvram get apps_share`
internal_hdd=/dev/ide/host2/bus0/target0/lun0/disc

if [ \! -f /tmp/rc.local.done ]; then

# Indicate we've already done this
touch /tmp/rc.local.done

#
# Mount /opt and connect in various system files
#
if [ -e /shares/${pool}/opt ]; then
mount -o bind /shares/${pool}/opt /opt

cat /proc/mounts > /opt/etc/fstab

ln -s /opt/etc/shells /tmp/shells
ln -s /opt/etc/fstab /tmp/fstab

export PATH=/opt/bin:/opt/sbin:${PATH}
export LD_LIBRARY_PATH=/opt/lib:${LD_LIBRARY_PATH}

# Start dropbear ssh server
if [ -x /opt/etc/init.d/S51dropbear ]; then
/opt/etc/init.d/S51dropbear
fi
fi

# Start utelnetd on local interface only!
/apps/bin/utelnetd -i br0 &

# Sleep for a little bit to not interfere with normal system startup
# before we kill a bunch of Asus processes.
sleep 5

# Kill processes I don't use. The killing of watchdog is necessary
# to allow the disk to spin down (watchdog is a horribly written hack
# anyway!)
killall -q -9 watchdog

# Do the necessary steps so the internal HDD will spin down
mount -o remount,noatime,nodiratime /shares/${pool}
hdparm -S 60 ${internal_hdd}
smartctl -dT ${internal_hdd}

fi


Can anyone tell me why my HDD is not spinning down? I set it to 5 minutes so I could verify it was actually spinning down, but after leaving it standalone (wireless off, no Ethernet connections) for 15 minutes it was still going. I left it on all night and it was still spinning when I woke up in the morning. Damn this is warm as well.

Thank you for any insight you may be able to provide.

Hacksaw.

fireflash
20-04-2007, 23:34
Turn off the media server and other things you aren't using in the router's configuration. Mostly I've found the media server seems to access the hard drive on a constant basis, which would keep it from spinning it down.

Hacksaw
21-04-2007, 02:43
Turn off the media server and other things you aren't using in the router's configuration. Mostly I've found the media server seems to access the hard drive on a constant basis, which would keep it from spinning it down.

That was it!

Thanks,
Hacksaw.