我觉得这个问题应该有一个可行的例子,所以这就是我使用ddrescue的方式
0)在保修期内安装了相同大小(和品牌)的替换驱动器,并将旧驱动器移至另一个插槽
1)我使用了ubuntu启动CD
我尝试了简单的选项,但它立即产生很多错误并挂起
dd if=/dev/sdb of=/dev/sda bs=512 conv=noerror,sync
root@ubuntu:~# dd if=/dev/sdb of=/dev/sda bs=512 conv=noerror,sync
dd: error reading ‘/dev/sdb’: Input/output error
57496+0 records in
57496+0 records out
29437952 bytes (29 MB) copied, 6.02927 s, 4.9 MB/s
dd: error reading ‘/dev/sdb’: Input/output error
57496+1 records in
57497+0 records out
29438464 bytes (29 MB) copied, 8.86693 s, 3.3 MB/s
dd: error reading ‘/dev/sdb’: Input/output error
57496+2 records in
57498+0 records out
29438976 bytes (29 MB) copied, 11.7068 s, 2.5 MB/s
dd: error reading ‘/dev/sdb’: Input/output error
57496+3 records in
57499+0 records out
2)阅读以下文章:
请注意,后者建议使用-d
直接光盘访问,但我没有使用它
3)安装了ddrescue
sudo apt-get install gddrescue
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
sudo apt-get update
sudo apt-get install gddrescue
man ddrescue
可能还需要(?)
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"
4)终于运行了(如果您要复制和粘贴,请停止,sda是我的新驱动器...请注意并做功课)
ddrescue -v -r3 /dev/sdb /dev/sda ~/ddrescue.log
- -v详细
- -r 3次重试
- 〜/ xx日志文件,显然可以用来重试。请注意,这仅存储在内存中,但可以复制到USB驱动器
输出:
GNU ddrescue 1.17
About to copy 1000 GBytes from /dev/sdb to /dev/sda
Starting positions: infile = 0 B, outfile = 0 B
Copy block size: 128 sectors Initial skip size: 128 sectors
Sector size: 512 Bytes
Press Ctrl-C to interrupt
rescued: 22555 MB, errsize: 196 kB, current rate: 91815 kB/s
ipos: 22555 MB, errors: 5, average rate: 68975 kB/s
opos: 22555 MB, time since last successful read: 0 s
Copying non-tried blocks...
5)启动Windows并重新激活... tbc
CHKDSK /f
“阶段3”之后返回的错误消息是什么?