什麼是磨砂「通行證」?

什麼是磨砂「通行證」?

Linux 上的 Scrub 實用程式可以接受不同的清理方法。這些允許不同類型和順序的“通行證”。例如,4 遍 DoD 5220.22-M 第 8-306 節程式是 4 遍方法,其中遍的順序為

  1. 隨機的
  2. 0x00
  3. 0xff
  4. 核實

通行證的範圍是什麼?每個通道是否在開始下一個通道之前寫入整個檔案/驅動器,或者清理的目標是否首先分為區塊,並且在移動到下一個區塊之前對每個區塊執行整個 4 通道過程?

答案1

通過的範圍是該模式的一個旋轉,從被破壞的物件的開始到結束,然後使用該模式群組/方法的下一個可用模式開始「另一輪」。

即使沒有在文件中明確說明(而且我找不到在原始碼中並行處理模式的任何痕跡),在 379MB 檔案中,您可以看到它將每個模式作為序列傳遞。以dod模式組為例:

[root@host ~]# scrub -p dod file
scrub: using DoD 5220.22-M patterns
scrub: padding file with 744 bytes to fill last fs block
scrub: scrubbing file 398323712 bytes (~379MB)
scrub: 0x00    |................................................|
scrub: 0xff    |................  

[root@host ~]# scrub -p dod file
scrub: using DoD 5220.22-M patterns
scrub: padding file with 744 bytes to fill last fs block
scrub: scrubbing file 398323712 bytes (~379MB)
scrub: 0x00    |................................................|
scrub: 0xff    |................................................|
scrub: random  |.........................

[root@host ~]# scrub -p dod file
scrub: using DoD 5220.22-M patterns
scrub: padding file with 744 bytes to fill last fs block
scrub: scrubbing file 398323712 bytes (~379MB)
scrub: 0x00    |................................................|
scrub: 0xff    |................................................|
scrub: random  |................................................|
scrub: 0x00    |................................................|
scrub: verify  |................................................|

我認為可以安全地確認scrub將依次通過被破壞的對象的所有模式。

相關內容