
LinuxのScrubユーティリティは、さまざまなスクラブ方法を受け入れることができます。これにより、さまざまなタイプと順序の「パス」が可能になります。たとえば、4パスのDoD 5220.22-Mセクション8-306手順は、パスが次の順序で実行される4パス方式です。
- ランダム
- 0x00
- 0xff
- 確認する
パスの範囲は何ですか? 各パスでは、次のパスを開始する前にファイル/ドライブ全体に書き込みますか、それとも、スクラブの対象が最初にブロックに分割され、次のブロックに移動する前に各ブロックで 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
破壊されるオブジェクトを次々とすべてのパターンに渡していくことが確認できると思います。