bug-ddrescue
[Top][All Lists]
Advanced

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

Re: [Bug-ddrescue] about transferring the progress from partition to dis


From: Scott Dwyer
Subject: Re: [Bug-ddrescue] about transferring the progress from partition to disk
Date: Sat, 5 Nov 2016 09:49:34 -0400
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0

On 11/4/2016 9:17 PM, Костин Дмитрий wrote:
Here is the logfile of the partition_to_image rescue
The partition /dev/sdb2 starts at sector 206848.
Assuming you are correct about the partition starting sector, here is how to change this to a whole drive recovery. First, you will need enough space on the target drive for a copy of the image file. Assuming the source drive is only 160GB, hopefully your USB drive has at least that much and a little more current free space. Now you need to make a copy of the image file with an offset of 105906176 (206848 * 512), which is the number of bytes of the sector start. The following ddrescue command should do that:
 ddrescue ~/usbdrive/clone1.img ~/usbdrive/clonefull.img -o 105906176

Next is the hard part. The whole log needs to have the position shifted by the new offset. This is best done with a spreadsheet, although it can be tricky to get a typical spreadsheet program to accept hex for input, it can be done. The nice thing about ddrescue is that it can accept decimal numbers in the log so the spreadsheet does not need to convert back to hex. It only took me a few minutes to do this for you, but here is the text you can use as a new log (map) file, I would call it clonefull.log. Just create a new text file and paste the following into it and you should be ready to continue the recovery as a whole disk recovery. Note that if you still wish to focus on the partition you would need to add the option "-i 105906176" to your ddrescue command to set the input offset to the start of the partition.


# current_pos  current_status
3453943808    ?
#      pos        size  status
0    105906176    ?
105906176    557056    +
106463232    32768    *
106496000    65536    ?
106561536    512    +
106562048    10484224    ?
117046272    1024    +
117047296    1062600704    ?
1179648000    250609664    +
1430257664    2002780160    ?
3433037824    20774912    +
3453812736    65536    *
3453878272    946995200    ?
4400873472    10027008    +
4410900480    65536    *
4410966016    1063649280    ?
5474615296    1048576    +
5475663872    103808512    ?
5579472384    512    -
5579472896    37476106240    ?
43055579136    250957824    +
43306536960    45056    *
43306582016    10486415360    ?
53792997376    552337408    +
54345334784    4816371712    ?
59161706496    262144    +
59161968640    100000256    ?
59261968896    7680    +
59261976576    715718656    ?
59977695232    61440    +
59977756672    800002048    ?
60777758720    30720    +
60777789440    400001024    ?
61177790464    15360    +
61177805824    200000512    ?
61377806336    7680    +
61377814016    100000256    ?
61477814272    262144    +
61478076416    1073741824    ?
62551818240    61440    +
62551879680    800002048    ?
63351881728    30720    +
63351912448    400001024    ?
63751913472    15360    +
63751928832    200000512    ?
63951929344    7680    +
63951937024    100000256    ?
64051937280    5572866048    +
69624803328    53248    *
69624856576    1536    -
69624858112    64000    *
69624922112    746950656    +
70371872768    94208    *
70371966976    22261223424    +
92633190400    45056    *
92633235456    13664256    +
92646899712    512    -
92646900224    32256    *
92646932480    929792    +
92647862272    3584    *
92647865856    512    -
92647866368    12193792    +
92660060160    45056    *
92660105216    10383360    +
92670488576    36864    *
92670525440    26987044864    +
119657570304    4096    -
119657574400    49152    +
119657623552    2560    -
119657626112    13312    /
119657639424    512    -
119657639936    37628760064    +




reply via email to

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