硬碟相關指令

查看硬碟溫度:
smartctl -a /dev/sda | grep -i temp

查看S.M.A.R.T:
smartctl -a /dev/sdi

列出硬碟SN/wwn:
ls -al /dev/disk/by-id/

列出磁碟大小與格式:
fdisk -l

檢查壞軌:
badblocks -v /dev/sda > badsectors.txt

顯示壞軌區間:
smartctl -t select,0-max /dev/sdX

強制寫入壞塊:
hdparm --write-sector --yes-i-know-what-i-am-doing 1234567 /dev/sdX
阅读剩余
THE END