Linux

하드디스크 온도를 체크하는 오픈소스

_Erato 2014. 7. 14. 10:52

우왕.. 이런것도 있구나.. 

이거 빌드하려고 2일 버렸어.. ㅠㅠ


hddtemp.zip


thirdparty.hddtemp-0.3.tar.gz



################################################################

#

# hddtemp는 HDD의 온도를 측정하는데 사용.

#

################################################################


다음과 같은 방법으로 사용.


0. require

$ sudo apt-get install gettext


1. build & install

$ tar -xvzf hddtemp_0.3-beta15.orig.tar.gz

$ cd hddtemp-0.3-beta15

$ sudo ./configure

$ sudo make

$ sudo make install


1.1 cross compile

$ ./configure --host=mipsel-linux --target=mipsel-linux --prefix=/home/erato/shared/hddtemp

$ make

$ sudo make install

2. patch

첨부된 파일(hddtemp_0.3-beta15-51.diff.gz)을 이용해서 patch

$ gunzip hddtemp_0.3-beta15-52.diff.gz

$ cp hddtemp_0.3-beta15-51.diff hddtemp-0.3-beta15

$ cd hddtemp-0.3-beta15

$ patch -p1 -i hddtemp_0.3-beta15-51.diff

3. 사용방법

$ cp hddtemp.db /usr/share/misc/

$ hddtemp /dev/sda

output

/dev/sda: WDC WD2500YS-01SHB1:  25°C