无法用hdparm获得正确的SATA drive状态
在kernel 2.6.11(已经打过libata-dev patch),使用hdpram -C /dev/sda检测SATA drive power mode status,返回的结果一直是standby,实际上SATA drive是active mode,使用smarttools正常。Log如下:# ./hdparm -C /dev/sda
/dev/sda:
drive state is:standby
#
# ./hdparm -C /dev/sda
/dev/sda:
drive state is:standby
# ./hdparm -C /dev/sda
/dev/sda:
drive state is:standby
# ./hdparm -S 60 /dev/sda
/dev/sda:
setting standby to 60 (5 minutes)
# ./hdparm -C /dev/sda
/dev/sda:
drive state is:standby
# ./hdparm -C /dev/sda
/dev/sda:
drive state is:standby
# ./hdparm -C /dev/sda
/dev/sda:
drive state is:standby
#
# ./smartctl -i -d ata /dev/sda
smartctl version 5.33 Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF INFORMATION SECTION ===
Device Model: ST380011AS
Serial Number: 4MR38NQT
Firmware Version: 3.00
User Capacity: 80,026,361,856 bytes
Device is: In smartctl database
ATA Version is: 6
ATA Standard is:ATA/ATAPI-6 T13 1410D revision 2
Local Time is: Thu Feb7 12:12:18 2036 UTC
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
#
那位大侠有这方面的经验啊,指点一下!! hdparm不支持sata的硬盘啊 ml 2.0 根本没有使用这样的内核,你是用的什么发行版?
页:
[1]