端末でsafecopyを実行する方法は?

端末でsafecopyを実行する方法は?

私はターミナルとLinuxに初めて触れました。競合が発生した外付けハードドライブが回転していますが、デスクトップには表示されません。safecopyターミナルから走ったら結局こう言ったんですね

Description of output:
. : Between 1 and 1024 blocks successfully read.
_ : Read of block was incomplete. (possibly end of file)
    The blocksize is now reduced to read the rest.
|/| : Seek failed, source can only be read sequentially.
> : Read failed, reducing blocksize to read partial data.
! : A low level error on read attempt of smallest allowed size
    leads to a retry attempt.
[xx](+yy){ : Current block and number of bytes continuously
             read successfully up to this point.
X : Read failed on a block with minimum blocksize and is skipped.
    Unrecoverable error, destination file is padded with zeros.
    Data is now skipped until end of the unreadable area is reached.
< : Successful read after the end of a bad area causes
    backtracking with smaller blocksizes to search for the first
    readable data.
}[xx](+yy) : current block and number of bytes of recent
             continuous unreadable data.

次に何をすべきかわかりません。復活できないと言っているのでしょうか、それとも私が何をするのを待っているのでしょうか?

ベストアンサー1

私はダニエルの答えが間違っていることを指摘したいと思います。これらstage#.badblocksのファイルは、ソースのどのブロックが不良かをsafecopyに通知します。空のファイルはsafecopyに破損したブロックがないことを知らせます。

とにかく標準的な手順は次のとおりです。

safecopy --stage1 /dev/source output.img

これにより、ソース全体がコピーされ、その中の不良ブロックが表示されますstage1.badblocks。この時点で読み取り可能なすべてのデータが保存されます(つまり、データはもはや破損しません)。

safecopy --stage2 /dev/source output.img

再試行せずにブロックに表示されている不良ブロックを読み取ろうとし、ブロックにstage1.badblocks不良ブロックの正確な境界を表示しますstage2.badblocks

safecopy --stage3 /dev/source output.img

表示された不良領域を継続的に再読み込みしようとしますstage3.badblocks

前のステップが実行されていない場合は、後のステップを完了するのに非常に長い時間がかかることがあります。

おすすめ記事