Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Hi,
how do I determinate the state of the discs, e.g if its active, idle or in standby?
The command hdparm -C /dev/sda just gives me a "drive state unkown".
With dmesg the status is printed out ("awake now" / "stand by now") but it's a bit complicated to use this in a script.
Preferably the solution just uses the DNS323 firmware commands.
Maybe there is some information in /proc?
Configuration: DNS323 with FW 1.08 and fun_plug 0.5.
Thanks for your help.
Greetings,
Blomi
Offline
Take a look at dns323-spindown in http://www.inreto.de/dns323/utils/
Be aware of putting such an executable on a disk that you are trying to get the status of!
Offline
Hi karlrado,
thanks for the advice! It works fine. For everybody else interested:
1. Using the dns323-spindown which is already installed by fun_plug doesn't work (disk starts spinning), because it's on the disk. Just copying to /tmp also doesn't work (probably because it references some libs on the disk). But using the dns323-spindown from http://wolf-u.li/3403/lueftersteuerung- … vision-c1/ on /tmp works fine. The program dns-323-spindown is included in the package uwfancontrol http://ffp.wolf-u.li/additional/ffp-mis … -1.1-4.tgz in folder ffp/var/opt/uwfancontrol/
2. To interpret the result of dns323-spindown have a look at the source code
data[1] = 2 to get pm support state, return value in data[2] return value is bitmask bit 0 set means hd0 supports PM bit 1 set means hd1 supports PM data[1] = 3 to get pm state, return value in data[2] return value 1 means at least one drive is active return value 2 means all drives spun down
For example
$dns323-spindown [03] hd0 hd1 [01] ACTIVE
means:
Both disks support power management
at least one disk is active
Last edited by blomi (2011-06-30 22:51:55)
Offline
Hello Blomi,
I'm having the same problem as you, i.e. the dns323-spindown command accesses the hard drive even if I run it from /usr/bin. I tried the link you provided to the alternate version but I don't see where I can download it. It doesn't help that I can't read German. Could you please be kind enough to provide a direct link?
Thanks!
cinergi
Offline