用dd克隆硬盘时报错

106 views
Skip to first unread message

包乾

unread,
Oct 9, 2016, 2:52:27 AM10/9/16
to sh...@googlegroups.com
之前发现自己的windows系统在使用中会出现硬盘错误的警告,所以买了新的硬盘想用dd来把整个硬盘进行克隆。
用的命令是Archwiki上面介绍的dd整盘克隆的方法:
# dd if=/dev/sdX of=/dev/sdY bs=64K conv=noerror,sync

然后在实际克隆过程中终端反复出现这样的错误信息:

...
dd: error reading ‘/dev/sdc’: Input/output error
175742+64 records in
175806+0 records out
11521622016 bytes (12 GB) copied, 1055.6 s, 10.9 MB/s
dd: error reading ‘/dev/sdc’: Input/output error
175742+65 records in
175807+0 records out
11521687552 bytes (12 GB) copied, 1062.74 s, 10.8 MB/s
dd: error reading ‘/dev/sdc’: Input/output error
175742+66 records in
175808+0 records out
11521753088 bytes (12 GB) copied, 1069.91 s, 10.8 MB/s
dd: error reading ‘/dev/sdc’: Input/output error
175862+67 records in
175929+0 records out
11529682944 bytes (12 GB) copied, 1078.93 s, 10.7 MB/s
...后略

这样的情况产生原因是什么?有什么办法可以解决吗

Liang Guo

unread,
Oct 9, 2016, 3:18:24 AM10/9/16
to sh...@googlegroups.com
磁盘部分快损坏。建议挂载文件系统,复制重要文件。

如果能复制出来,说明坏的块不是文件的,如果有文件不能复制出来,说明文件上有坏的块。



--
Liang Guo
http://guoliang.me/

Yu Changyuan

unread,
Oct 9, 2016, 3:19:55 AM10/9/16
to shlug

硬件出问题了。多试几次,可能可以读出来。


--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+unsubscribe@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

Chaos Eternal

unread,
Oct 9, 2016, 3:26:02 AM10/9/16
to shlug
不要用DD
用 fsarchiver 


硬件出问题了。多试几次,可能可以读出来。


-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN

---
您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN

---
您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

Yu Changyuan

unread,
Oct 9, 2016, 3:26:43 AM10/9/16
to shlug

On Oct 9, 2016 10:26, "Chaos Eternal" <chaose...@shlug.org> wrote:
>
> 不要用DD
> 用 fsarchiver 

+1

包乾

unread,
Oct 9, 2016, 10:21:44 AM10/9/16
to sh...@googlegroups.com
谢谢!可是如果坏的块不是文件,还有可能是什么呢?是指mbr之类的部分损坏吗

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+unsubscribe@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout

Yu Changyuan

unread,
Oct 9, 2016, 10:45:40 AM10/9/16
to shlug

inode?


您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。

依云

unread,
Oct 10, 2016, 10:19:20 AM10/10/16
to sh...@googlegroups.com
On Sun, Oct 09, 2016 at 11:21:00PM +0900, 包乾 wrote:
> 谢谢!可是如果坏的块不是文件,还有可能是什么呢?是指mbr之类的部分损坏吗

还可以是未使用/已删除的数据。

所以不建议用 dd 嘛,会复制好多无用的数据过去的。如果是简单的文件系统(没
有子卷什么的),传统的 tar 和 rsync 就挺不错的。

--
Best regards,
lilydjwg

Linux Vim Python 我的博客:
http://blog.lilydjwg.me/
--
A: Because it obfuscates the reading.
Q: Why is top posting so bad?

Marco

unread,
Nov 9, 2016, 9:54:39 PM11/9/16
to shlug
fsarchiver 学习!

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+unsubscribe@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout



--
LinuX
Violin
Canon EOS
Reply all
Reply to author
Forward
0 new messages