PDA

Bekijk de volledige versie : OpenWRT and hdd spindown



clausbruun
07-03-2007, 07:36
When i issue the hdparm command, the drive spins down as it should, but only for about 5-20 seconds, then it starts spinning again. Anybody knows what program that causes the hdd to spin up again?

wirespot
07-03-2007, 08:36
You could try a command like this to identify possible culprits:
lsof |grep /opt/|grep -v ' mem' (assuming your external drive is mounted under /opt/).

back2basic
07-03-2007, 14:05
You could try a command like this to identify possible culprits:
lsof |grep /opt/|grep -v ' mem' (assuming your external drive is mounted under /opt/).

it isn't external our root filesystem is the build in hdd I think that is the reason

kfurge
08-03-2007, 02:01
Anything that touches a log file in /var/log or drops something in /tmp will make it spin back up again. Without mounting / read only, I don't think there's a practical way to make the HDD spin down and stay that way.

- K.C.

clausbruun
08-03-2007, 07:57
So only solution will be to move /tmp and /var/log to for example an usb stick ?

kfurge
09-03-2007, 02:37
So only solution will be to move /tmp and /var/log to for example an usb stick ?
That's a possibility, but I think it would die rather quickly from all of the writes and you never know when it's going fail.

I think a better alternative is to leave a fluid dynamic bearing HDD on and idling at low RPM. With proper thermal management, it should run virtually forever.

- K.C.

http://www.wdc.com/en/library/eide/2579-001052.pdf

back2basic
04-04-2007, 16:56
A new openwrt image is created that is able to boot from a usb device
Then the hdd can be put into sleep :)

:confused:

http://www.wl700g.homelinux.net/drupal/?q=node/98 for more info :)