Re: Feature request: HDD status

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/1/06, Victor Porton,,, <porton@xxxxxxxxxxx> wrote:
> Linux would be able (if this is possible for software) to
> deliver to the user the state of the HDD, whether it is
> active.
>
> I mean that Linux would have a module which would export to
> user space a boolean flag (probably a semaphore) which would
> be true while the HDD red lamp is shining and false while it
> is dark.

You can get a fair approximation of that information by monitoring
/proc/diskstats or the relevant counter files under /sys. Simply turn
on the logical LED if the IO counter has been incremented in the last
(say) 30ms. The only time this is likely to be noticable different
than the physical LED is when the drive is in some initialization
state or error condition.

For an amusing ready-made graphical version, try the gkhdplop plugin of gkrellm.

  Shem
-
: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux