我正在尝试从已知损坏的硬盘(失败或失败)中恢复任何可能的内容。我开始dd
并意识到我没有卸载。卸载卷后,我能够正确开始磁盘复制......
$ sudo dd if=/dev/rdisk3 of=/dev/rdisk2 bs=1m conv=noerror,sync
Password:
dd: /dev/rdisk2: Resource busy
[user@host:~|14:14:27]
$ diskutil umountDisk /dev/rdisk2
Unmount of all volumes on disk2 was successful
[user@host:~|14:14:42]
$ sudo dd if=/dev/rdisk3 of=/dev/rdisk2 bs=1m conv=noerror,sync
dd: /dev/rdisk3: Input/output error
166427+0 records in
166427+0 records out
174511357952 bytes transferred in 3547.896249 secs (49187278 bytes/sec)
dd: /dev/rdisk3: Input/output error
dd: /dev/rdisk3: Resource busy
166428+0 records in
166428+0 records out
...<snip>...
...正如我所料,我看到了Input/output error
消息。但我也看到了Resource busy
。这是为什么?
我怀疑硬盘驱动器可能会进入睡眠状态(复制尝试需要花费很多小时),但我检查了,系统设置为不睡眠硬盘驱动器。
这是另一个输出示例......
...<snip>...
231213105152 bytes transferred in 202223.059877 secs (1143357 bytes/sec)
dd: /dev/rdisk3: Resource busy
dd: /dev/rdisk3: Resource busy
220503+0 records in
220503+0 records out
231214153728 bytes transferred in 202254.074286 secs (1143187 bytes/sec)
dd: /dev/rdisk3: Resource busy
dd: /dev/rdisk3: Input/output error
220504+0 records in
220504+0 records out
...<snip>...
是什么导致了此Input/output error
消息,我可以解决它以恢复此数据吗?