标题:
ubuntu-linux 下硬盘读写时声音很响问题的解决
[打印本页]
作者:
Nothing
时间:
2011-9-22 19:58
标题:
ubuntu-linux 下硬盘读写时声音很响问题的解决
我对比了一下自已的台式机,在 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
设置后效果明显好转,其它参数有待于再研究了。。
由此看来,这声音还有助于发现硬盘读写状况,和硬盘指示灯功能差不多了
欢迎光临 编程开发论坛 (http://bbs.lihuasoft.net/)
Powered by Discuz! 6.0.0