disktemp - a simple linux console program, written in C, which relies on and utilizes 'smartmontools' to retrieve the relevant HDD data and outputs it in console.
To install disktemp, one could download the latest already available executable from here or compile it itself using source code provided.
To compile it in linux, build-essential package needs to be installed first.
apt install build-essentialdownload disktemp.c source file and execute:
gcc- o disktemp disktemp.cdisktemp requires smartmontools package to be installed prior executing.
It checks if it is already present when executed and offers to install if not.
If user declines smartmontools package installation, disktemp would terminate itself.
User could install smartmontools itself by executing:
apt install smartmontoolsBy default, disktemp outputs information for all available disks on host system.
./disktempUser could make it output just a specific disk info by utilizing a -d switch:
example:
./disktemp -d /dev/sdaSwitches available:
Usage: ./disktemp [-V] [-h | --help] [-d <disk>]
Options:
-V Print program version
-h, --help Print this help message
-d <disk> Check temperature of specified disk