Disk temperature is a fairly important issue, affecting, among other things, disk lifespan.
hddtemp is a program that displays the temperature of a hard disk.
It can run in daemon mode (i.e. run in the background, independently of the user).
Running the program once
- hddtemp disk
where disk is e.g. /dev/hda,/dev/sdahddtemp /dev/hda /dev/hda: ST380021A: 38 C
If hddtemp shows us this kind of result, it means it's working; if not, either our hddtemp database is out of date , or our disk doesn't support S.M.A.R.T. and there's no way to read the temperature. Running hddtemp in daemon mode
- we need to locate the configuration file, which is called hddtemp; we can use the command for this: find /etc/ -name hddtemp
- we change the following listed entries in it:
# hddtemp network daemon switch. If set to true, hddtemp will listen # for incoming connections. RUN_DAEMON="true" # List of devices you want to use with hddtemp. If none specified, # hddtemp will probe standard devices. DISKS="/dev/hda /dev/sda"
which will run the application in daemon mode, checking the temperature of all available disks,
|/dev/hda|ST380011A|39|C||/dev/hdc|ST3120026A|42|C|
Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. |/dev/hda|ST380011A|39|C||/dev/hdc|ST3120026A|42|C|Connection closed by foreign host.