2008/03/05

LANTANKのセットアップ(hddtemp)

LANTANK:~# apt-get install hddtemp
パッケージリストを読みこんでいます... 完了
依存関係ツリーを作成しています... 完了
E: パッケージ hddtemp が見付かりません
LANTANK:~# cd /home/
LANTANK:/home# mkdir chroot
LANTANK:/home# cd chroot/
LANTANK:/home/chroot# wget http://osdn.dl.sourceforge.jp/iohack/15565/base-sh4-for-landisk-20050712.tar.bz2
LANTANK:/home/chroot# tar jxvf base-sh4-for-landisk-20050712.tar.bz2
LANTANK:/home/chroot# chroot ./
LANTANK:/# mount proc /proc -t proc
LANTANK:/# vi /etc/apt/sources.list
deb http://iohack.sourceforge.jp/debian ./
deb http://iohack.sourceforge.jp/kogiidena/debian_iohack_base/ ./
deb http://iohack.sourceforge.jp/kinneko/snow_white/ ./
deb-src http://ftp.debian.org/debian sarge main
LANTANK:/# apt-get update
LANTANK:/# cd /home/
LANTANK:/home# apt-get build-dep hddtemp
展開後に追加で 39.1MB のディスク容量が消費されます。
続行しますか? [Y/n] y
LANTANK:/home# cd hddtemp-0.3-beta13
LANTANK:/home/hddtemp-0.3-beta13# dpkg-buildpackage -uc -us
LANTANK:/home/hddtemp-0.3-beta13# umount /proc
LANTANK:/home/hddtemp-0.3-beta13# exit
exit
LANTANK:/home/chroot# cd ./home/
LANTANK:/home/chroot/home# dpkg -i hddtemp_0.3-beta13-9_sh4.deb
LANTANK:/home/chroot/home# hddtemp /dev/hda
WARNING: Drive /dev/hda doesn't appear in the database of supported drives
WARNING: But using a common value, it reports something.
WARNING: Note that the temperature shown could be wrong.
WARNING: See --help, --debug and --drivebase options.
WARNING: And don't forget you can add your drive to hddtemp.db
/dev/hda: Maxtor 7L300R0: 41°C or °F
LANTANK:/home/chroot/home# vi /etc/hddtemp.db
"Maxtor 7L300R0" 194 C "Maxtor 7L300R0 MaxLine+III 300GB 7200rpm"
LANTANK:/home/chroot/home# hddtemp /dev/hda
/dev/hda: Maxtor 7L300R0: 41°C

0 coment: