Data

在不讀取數據的情況下驗證磁碟完整性?

  • May 26, 2018

有一個適用於 Windows 的名為“HDDscan”的應用程序:http: //hddscan.com/

它還可以通過讀取磁碟來驗證磁碟,方法是它們只被傳輸到驅動器的內部緩衝區中,並且不知何故,只檢查數據完整性。

來自網站:“在驗證模式下,設備僅將數據塊讀取到驅動器的內部緩衝區並檢查一致性,沒有通過介面連接器/電纜傳輸數據。該程序測量每個塊的操作時間。該程序從最小到最大逐個測試塊。在讀取模式下,設備讀取數據塊並將其通過介面傳輸到主機控制器。該程序將數據塊讀入臨時緩衝區並測量每個塊的操作時間。該程序從最小到最大逐個測試塊。”

是否有可比較的方法來驗證 Linux 中的數據完整性?

是的。

smartctl. 查看-t選項

-t TEST, --test=TEST
 Executes TEST immediately. The '-C' option can be used in conjunction with 
 this option to run the short or long (and also for ATA devices, selective or 
 conveyance) self-tests in captive mode (known as "foreground mode" for SCSI 
 devices). Note that only one test type can be run at a time, so only one 
 test type should be specified per command line. Note also that if a computer 
 is shutdown or power cycled during a self-test, no harm should result. The 
 self-test will either be aborted or will resume automatically.
 [...]

https://linux.die.net/man/8/smartctl的手冊頁

引用自:https://unix.stackexchange.com/questions/446135