fra*_*cis 7 terminal hard-disk 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.
Run Code Online (Sandbox Code Playgroud)
我不知道接下来要做什么。是在告诉我它无法复活还是在告诉我它正在等待我做某事?
我想指出丹尼尔的回答是不正确的。这些stage#.badblocks
文件告诉安全复制源上哪些块是坏的。空文件会告诉 safecopy 没有损坏的块。
无论如何,标准程序是:
safecopy --stage1 /dev/source output.img
Run Code Online (Sandbox Code Playgroud)
这将复制整个源并将坏块标记为stage1.badblocks
. 此时,任何可读数据都将被保存(即数据不会被进一步破坏)。
safecopy --stage2 /dev/source output.img
Run Code Online (Sandbox Code Playgroud)
它将尝试在stage1.badblocks
不重试的情况下读取标记的坏块,然后在stage2.badblocks
.
safecopy --stage3 /dev/source output.img
Run Code Online (Sandbox Code Playgroud)
这将不断重试读取 中标记的坏区域stage3.badblocks
。
请注意,如果前面的阶段没有运行,后面的阶段可能需要非常长的时间才能完成。
您safecopy
在没有任何选项的情况下运行,因此它打印出使用信息。你需要给它一些选项,这样它就知道要做什么,man safecopy
会向你展示手册,就像这个一样。一种可能的组合是
safecopy --stage3 source dest
Run Code Online (Sandbox Code Playgroud)
您损坏的驱动器在哪里source
,以及dest
将救援数据复制到哪里。