[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-ddrescue] Started with OS Partition now I would like to add the
From: |
MacXperte |
Subject: |
Re: [Bug-ddrescue] Started with OS Partition now I would like to add the other two. |
Date: |
Fri, 06 May 2011 02:44:47 +0200 |
MNComputerGuy wrote:
> I'm working on a Dell laptop drive with three partitions:
> sda1 Dell Diagnostic
> sda2 Recovery Partition
> sda3 OS Partition
>
> I started the recovery process on sda3, because I wanted to get at the
> important data first.
> ddrescue /dev/sda3 /media/sdb1/os.img /media/sdb1/oslog
>
> Now, after having reasonably good results on the OS partition, I would like
> to add the other two (sda1 and sda2) to the existing image from sda3, to
> create one complete image, which in hindsight I should have done from the
> beginning. How can this be achieved?
First rescue the beginning to a drive image (offset = starting position of sda3
on sda):
ddrescue -s offset /dev/sda drive.img drivelog
Then add the rescued os partition:
ddrescue -i 0 -o offset os.img drive.img joinlog
Notes:
- To join the two parts, you will need free space at least the size of os.img.
- If you want to continue rescuing data from the os partition to drive.img
after joining, you would have to completely recalculate and rewrite oslog and
work it into drivelog. As this might be quite complicated, I would recommend
finishing rescuing sda3 to os.img prior to joining it with drive.img.
Regards,
Florian