[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-ddrescue] Merging two images from the same recovery....
From: |
Dependable-Mike |
Subject: |
Re: [Bug-ddrescue] Merging two images from the same recovery.... |
Date: |
Mon, 2 Jan 2012 08:21:39 -0800 (PST) |
Antonio,
Thanks for the reply. Apologies for not getting on to it sooner... (I had
more problems than I anticipated as the drive getting full had caused
LinuxMint to not boot, so I had to resolve that first with various Live CDs
(and also survive Christmas & New Year!) before I could get on to attempting
the merge).
Antonio Diaz Diaz wrote:
>
>> So now I have two partial images of the drive that mostly don't
>> overlap...
>
> The best way of merging two images is using the "-m, --domain-logfile"
> option. It restricts the rescue domain to the blocks marked as finished
> in the given logfile, so it will copy to the target image only what has
> been already rescued in the source image.
>
> If you issued the commads:
>
> cd dir1
> ddrescue -n -a<something> /dev/hda image logfile
>
> and then
>
> cd dir2
> ddrescue -n -a<something> /dev/hda image logfile
>
Your assumptions were spot on, and your instructions clear. However, the
command I ran on dir2 was slightly different... something like:
sudo ddrescue -i60G -v -n -a300k /dev/sdb image.iso recovery.log
which was identical to the first capture (dir1), apart from the extra -i60G
bit (which is only in the dir2 version).
That means that my image in dir1 is 149GB whereas the image in dir2 is only
40GB (and is all data above 60G point). I'm assuming that the respective
logfiles will automatically merge the files at the right points and know
that the 40GB image fits in somewhere after 60G itself without needing any
input from me, and therefore your commands as written in your example above
still apply... namely:
cd dir1
ddrescue -m dir2/logfile dir2/image image logfile
I'm pretty sure that will work correctly, but rather than make another
mistake, I thought I ought to clarify and check before potentially making
things worse!
Mike
--
View this message in context:
http://old.nabble.com/Merging-two-images-from-the-same-recovery....-tp33002600p33066782.html
Sent from the Gnu - ddrescue mailing list archive at Nabble.com.
- Re: [Bug-ddrescue] Merging two images from the same recovery....,
Dependable-Mike <=