[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
- [Bug-ddrescue] Need a replacement for System Rescue CD as an environment for running ddrescue on Windows PC, Shahrukh Merchant, 2019/01/11
- Re: [Bug-ddrescue] Need a replacement for System Rescue CD as an environment for running ddrescue on Windows PC, Christian Franke, 2019/01/11
- Message not available
- Message not available
- Message not available
- [Bug-ddrescue] How to restore just a single partition of a multi-partition image file?, Shahrukh Merchant, 2019/01/21
- Re: [Bug-ddrescue] How to restore just a single partition of a multi-partition image file?, Robert Trevellyan, 2019/01/21
- Re: [Bug-ddrescue] How to restore just a single partition of a multi-partition image file?, Shahrukh Merchant, 2019/01/21
- Re: [Bug-ddrescue] How to restore just a single partition of a multi-partition image file?, Robert Trevellyan, 2019/01/21
- Re: [Bug-ddrescue] How to restore just a single partition of a multi-partition image file?,
Timothy Beryl Grahek <=
- Message not available
- Re: [Bug-ddrescue] How to restore just a single partition of a multi-partition image file?, Shahrukh Merchant, 2019/01/24
- Re: [Bug-ddrescue] How to restore just a single partition of a multi-partition image file?, Timothy Beryl Grahek, 2019/01/24
- Re: [Bug-ddrescue] How to restore just a single partition of a multi-partition image file?, Antonio Diaz Diaz, 2019/01/23
- Re: [Bug-ddrescue] How to restore just a single partition of a multi-partition image file?, Scott Dwyer, 2019/01/23
- Re: [Bug-ddrescue] How to restore just a single partition of a multi-partition image file?, Antonio Diaz Diaz, 2019/01/23
- Message not available
- Re: [Bug-ddrescue] How to restore just a single parti tion of a multi-partition image file?, Shahrukh Merchant, 2019/01/25
- Message not available
- Re: [Bug-ddrescue] How to restore just a single partition of a multi-partition image file?, Shahrukh Merchant, 2019/01/25