bug-ddrescue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-ddrescue] How to restore just a single partition of a multi-par


From: Timothy Beryl Grahek
Subject: Re: [Bug-ddrescue] How to restore just a single partition of a multi-partition image file?
Date: Tue, 22 Jan 2019 07:02:24 -0800

Hi Shahrukh,

Allow me to please ask for some clarification.

Fulldrive.img contains the C partition that you want?

If that is the case, what I would personally do is use a boot disk (e.g.
Arch; Ubuntu) and follow this procedure:

1. lsblk to find out what your 2 TB drive is.
2. Check to see if ddrescue is installed; if not, install it.
3. losetup -Pf fulldrive.img
4. Check the sizes of loop0 and sda using parted with the print command,
then use resizepart 1 <insert size> for sda to match the size of the C
partition on fulldrive.img which is represented by loop0. Please note that
the units must match and the resize amount is the size of the partition
plus the starting position it is at on the disk.
4. mkntfs -f /dev/sda1
5. Since sda1 is now the same size as the C partition on fulldrive.img,
loop0p1 (assuming this is the C partition of fulldrive.img) should be able
to be simply copied to sda1 using ddrescue now with this:
ddrescue -f /dev/loop0p1 /dev/sda1 map1
6. ntfsfix /dev/sda1 after copy operation is done.
7. losetup -D to remove fulldrive.img loop device.

Please let me know what you think and please let me know if you have any
questions or need clarification.

Best regards,

Timothy Beryl Grahek


reply via email to

[Prev in Thread] Current Thread [Next in Thread]