Linux

完成後不顯示“通過已完成”的壞塊

  • July 24, 2013

這是我正在執行以測試帶有壞塊的 HDD 的命令:

badblocks -b 4096 -c 98304 -w -s /dev/sda1

輸出是:

[root@localhost liveuser]# badblocks -b 4096 -c 98304 -w -s /dev/sda1
Testing with pattern 0x55: done
Reading and comparing: done 
Testing with pattern 0xff: done
Reading and comparing: done 
Testing with pattern 0x00: done
Reading and comparing: done 
[root@localhost liveuser]# 

它是否正確?這是否意味著驅動器通過了?我認為會有諸如“通過完成”或類似的輸出。例如,這個問題有不同的輸出來探勘https://unix.stackexchange.com/questions/65349/how-to-interpret-badblocks-output

使用 Fedora 17 直播光碟

添加-v開關(詳細)以獲取摘要:

# badblocks -v -b 4096 -c 1024 -w -s /dev/sdb
Checking for bad blocks in read-write mode
From block 0 to 1023
Testing with pattern 0xaa: done                                                 
Reading and comparing: done                                                 
Testing with pattern 0x55: done                                                 
Reading and comparing: done                                                 
Testing with pattern 0xff: done                                                 
Reading and comparing: done                                                 
Testing with pattern 0x00: done                                                 
Reading and comparing: done                                                 
Pass completed, 0 bad blocks found. (0/0/0 errors)
#

引用自:https://serverfault.com/questions/525849