今天在CentOS 5.7 i386 下面想測試硬碟速度

hdparm -t /dev/cciss/c0d0

得到錯誤訊息

HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate ioctl for device

解決辦法是升級hdparm

# tar zxvf hdparm.tgz
# cd hdparm-9.37/
# make
# make install
# hdparm -V
hdparm v9.37