smartctl看有關HDD資訊

看smart的log:
$ less /var/log/messages

看HDD是否支援S.M.A.R.T:
$ smartctl -i /dev/sda

若HDD有支援S.M.A.R.T,則啟動S.M.A.R.T功能:
$ smartctl -s on -d ata /dev/sda

看HDD支援哪些self-test routine,通常有short, conveyance與long三種self-test:
$ smartctl -c /dev/sda

使用long self-test routine取得較正確的結果(P.S. 一次只能執行一個測試):
$ smartctl -t long /dev/sda

smartctl不會顯示測試進度,但會回報這個測試要執行多久。等時間差不多後就確認測試進度:
$ smartctl -l selftest /dev/sda

看測試結果:
$ smartctl -a /dev/sda

看測試結果中,健康狀況的部份:
$ smartctl -H /dev/sda

看測試結果中,error log的部份:
$ smartctl -l error /dev/sda



請注意以下這一段:
===============================================
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
............
............
SMART Error Log Version: 1
No Errors Logged
===============================================

***若ID# 5、7、10、11、196~200這幾個項目的RAW_VALUE不為0,且持續增加,應立即備分並更換硬碟。

以上來源出自:http://sites.google.com/site/lab586/linuxnote/hddchecktip

arrow
arrow
    全站熱搜

    dreamtails 發表在 痞客邦 留言(0) 人氣()