Re: dd failed
- From: Gordon Henderson <gordon+usenet@xxxxxxxxxx>
- Date: Fri, 26 Oct 2007 08:04:42 +0000 (UTC)
In article <DOWdnWDSc57AjbzanZ2dnUVZ8vSdnZ2d@xxxxxxxxx>,
Alan Secker <alan@xxxxxxxxxxxxx> wrote:
I wanted to clone a drive as I have done many times before. I booted from a
knoppix cd and ran dd if=/dev/hde of=/dev/hdg as root. Both drives had been
proven to be sound and bootable before this exercise. The process stopped
with the message 'input/output error'. My question is: 'What tests can I
make to identify what might have gone wrong?'
Check the source disk with
dd if=/dev/hde of=/dev/null bs=8M
and if that passes, there might have been a write error on the target
disk - which you can do a read test in the same way, or a read/write
test with the badblocks utility.
If it's the source disk that has the IO errors, you might want to look
into a utility called ddrescue (or dd_rescue) which can ignore IO
errors are it copies.
However, if you are getting IO errors on the original, then you'll
get "holes" in the target one, and even if it fsck's cleanly you
might have files with holes in... To check that, you might want
to start running sum (or md5sum) on all the files on both drives to
see which ones might have failed to copy..
Good luck!
Gordon
.
- Prev by Date: Re: Fedora Core 6 Install
- Next by Date: Re: dd failed
- Previous by thread: Re: dd failed
- Next by thread: Re: dd failed
- Index(es):
Relevant Pages
|