2
I've an old laptop (WinXP) which I wanted to clone via Linux's dd (Ubuntu live CD) onto a second HDD. Unfortunately dd fails due to read I/O errors. The Windows Installation itself is still able to read all files from its drive, so I think NTFS marked some sectors as unusable. That's why I want to clone the installation on a file level. At first I dd'ed the MBR to the second HDD, so the partition layout is the same on source and destination HDD. The next step was to clone the actual files. I connected the two HDD's to a thirdparty Windows machine (Windows 7) and used robocopy to clone the files including the permissions:
ROBOCOPY E:\ F:\ /e /efsraw /copyall /dcopy:t /r:0
So even as I ran the commandline for robocopy "as Administrator", some directories gave me "Access denied", e.g. the users %appdata%. Is there a way to ship around this problem? I don't want to mess with the permissions on the source volume, so how can I copy the user profiles correctly?
Current state is, that the file-cloned Windows installation boots, but the user profiles are missing data.
What about
dd conv=noerror
? – Run CMD – 2015-11-23T15:00:04.967@ClassStacker - That should be
dd noerror ...
(omitconv=
), but it is a good suggestion. What I don't know is howdd
handles read errors: does it write an empty buffer, or does it skip writing? I can't easily test which, but it would need to work in the first way for the copy to be useful. – AFH – 2015-11-23T15:15:09.030It will pad with zeroes. See here. Everything else would be pretty useless for an image processing tool? Actually, it should be
– Run CMD – 2015-11-23T15:22:26.007dd conv=noerror,sync
according to that link. Sorry for the mistake.I tried this "noerror" statement as well, but it was not successful. dd only produced errors at and after the 1.4GB mark and was not able to read anything more beyond. To use the hdd again, I have to replug it. Please see my comment under the answer to this question. – Oliver R. – 2015-11-25T09:34:51.280