Data recovery and disk repair questions and discussions related to old-fashioned SATA, SAS, SCSI, IDE, MFM hard drives - any type of storage device that has moving parts
Post a reply

Re: Combining/Merging HDD Images

March 13th, 2014, 15:21

lcoughey wrote:
fzabkar wrote:@lcoughey, in the absence of a log file, and in the absence of a file system analysis, there would be no way for you or any tool to determine whether a particular sector in an image file contained recovered data or otherwise. Assuming the image file were written to a good drive, then it would contain no unreadable sectors, in which case ddrescue would make a perfect copy of it on a third destination. Without a log file, ddrescue would have no way of knowing if sector X in the image file were zero filled, or contained a "BAD" signature, or if it simply contained the stale data that existed on the drive before the image file was written. All readable sectors in the file would be imaged to the third destination as is, regardless of their contents. Therefore the new log file would register 100% success, ie it would be a pointless exercise.

I've used the auto generate to create a log file many times over...it has always worked. But, I always write to a blank drive and don't write any patterns to the unread sectors. If you wrote a pattern to the unread sectors (ie, unread), you would need to add another step of searching those sectors our and overwriting them with zeros....then generate the log.

Ddrescue doesn't look for fill patterns or analyse the data in any way before copying a sector. Therefore, in the absence of the original logs, it would be nonsensical to run ddrescue against two image files in the expectation that you could somehow merge them. All you would be doing is verifying whether the image files themselves occupy bad sectors.

Re: Combining/Merging HDD Images

March 13th, 2014, 15:32

fzabkar wrote:Ddrescue doesn't look for fill patterns or analyse the data in any way before copying a sector. Therefore, in the absence of the original logs, it would be nonsensical to run ddrescue against two image files in the expectation that you could somehow merge them. All you would be doing is verifying whether the image files themselves occupy bad sectors.

ddrescue --generate-mode <source> <copyofimage1> <newlog>
That WILL read the copyofimage1 and CREATE a new log based on the partial image, marking only the sectors filled with zeros as unread.

Then you run:
ddrescue <image2> <copyofimage1> <newlog>
That WILL ONLY READ the zero filled sectors of the first image from the second image to the merged image (copyofimage1).

Re: Combining/Merging HDD Images

March 19th, 2014, 13:10

crytoy wrote:Thanks all for your help, my question was answered :D
by the way I have created a windows version of DDrescue using cygwin if anyone wants.


I use and recommend the tool,
but PLEASE don't use in Windows.

Usualy it update the FS.

You can recover in Linux, MacOSX or any BSD version.

They don't mess with the FS ...unless you mount the Disk.


Best Regards,

Neuron
Post a reply