Scrub「パス」とは何ですか?

Scrub「パス」とは何ですか?

LinuxのScrubユーティリティは、さまざまなスクラブ方法を受け入れることができます。これにより、さまざまなタイプと順序の「パス」が可能になります。たとえば、4パスのDoD 5220.22-Mセクション8-306手順は、パスが次の順序で実行される4パス方式です。

  1. ランダム
  2. 0x00
  3. 0xff
  4. 確認する

パスの範囲は何ですか? 各パスでは、次のパスを開始する前にファイル/ドライブ全体に書き込みますか、それとも、スクラブの対象が最初にブロックに分割され、次のブロックに移動する前に各ブロックで 4 パス プロセス全体が実行されますか?

答え1

パスの範囲は、そのパターンの 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破壊されるオブジェクトを次々とすべてのパターンに渡していくことが確認できると思います。

関連情報