对比了一下自已的笔记本电脑,在Ubuntu Linux 下确实比 Windows 下响很多,当然Windows下读写数据时声音较之要小一点。
查了很多资料终于找到了一个命令 hdparm ,它可以设置很多和硬盘相关的参数,硬盘响声也可以。
命令的说明如下:
Usage: hdparm [options] [device] ..
Options:
-a get/set fs readahead
-A get/set the drive look-ahead flag (0/1)
-b get/set bus state (0 == off, 1 == on, 2 == tristate)
-B set Advanced Power Management setting (1-255)
-c get/set IDE 32-bit IO setting
-C check drive power mode status
-d get/set using_dma flag
-D enable/disable drive defect management
-E set cd/dvd drive speed
-f flush buffer cache for device on exit
-F flush drive write cache
-g display drive geometry
-h display terse usage information
-H read temperature from drive (Hitachi only)
-i display drive identification
-I detailed/current information directly from drive
-k get/set keep_settings_over_reset flag (0/1)
-K set drive keep_features_over_reset flag (0/1)
-L set drive doorlock (0/1) (removable harddisks only)
-M get/set acoustic management (0-254, 128: quiet, 254: fast) “可以设置声音 :( ,linux 下居然这也能设置,如果只用windows 永远也不知道还有这回事啦 :-)
-m get/set multiple sector count
. 省略.........
sudo hdparm -M128 /dev/sda
设置后效果明显好转,其它参数有待于再研究了。
由此看来,这声音还有助于发现硬盘读写状况,和硬盘指示灯功能差不多了。
www@www:~$ sudo hdparm -M128 /dev/sda
[sudo] password for www:
/dev/sda:
setting acoustic management to 128
HDIO_DRIVE_CMD:ACOUSTIC failed: Input/output error
acoustic = not supported
www@www:~$