Resume ddrescue.

New to Debian (Or Linux in general)? Ask your questions here!

Resume ddrescue.

Postby hack3rcon » 2020-07-31 07:29

Hello,
I use "ddrescue" to copy a bad disk via below command:
Code: Select all
$ sudo ddrescue -f /dev/sdc1 /home/jason/usb.img recover.log
GNU ddrescue 1.23
Press Ctrl-C to interrupt
Initial status (read from mapfile)
rescued: 126877 kB, tried: 99368 kB, bad-sector: 0 B, bad areas: 0

Current status
     ipos:  468713 kB, non-trimmed:  177815 kB,  current rate:       0 B/s
     opos:  468713 kB, non-scraped:        0 B,  average rate:   4967 kB/s
non-tried:   31604 MB,  bad-sector:        0 B,    error rate:  78381 kB/s
  rescued:  454754 kB,   bad areas:        0,        run time:      1m  5s
pct rescued:    1.41%, read errors:     1197,  remaining time:         21m
                              time since last successful read:          0s
Copying non-tried blocks... Pass 5 (forwards)
ddrescue: Input file disappeared: No such file or directory

And the content of the "recover.log" file is:
Code: Select all
# current_pos  current_status  current_pass
0x1C7F0000     ?               5
#      pos        size  status
0x00000000  0x017F0000  +
0x017F0000  0x02320000  *
0x03B10000  0x004F0000  +
0x04000000  0x00020000  *
0x04020000  0x027F0000  +
0x770F50000  0x07290000  ?
0x7781E0000  0x03500000  *
0x77B6E0000  0x06110000  +
0x7817F0000  0x00004000  *

for "-i" option which number I must use to resume?

Thank you.
hack3rcon
 
Posts: 530
Joined: 2015-02-16 09:54

Re: Resume ddrescue.

Postby dilberts_left_nut » 2020-07-31 07:51

You need to use the "-rtfm" option first.
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 5122
Joined: 2009-10-05 07:54
Location: enzed

Re: Resume ddrescue.

Postby cuckooflew » 2020-07-31 15:10

Code: Select all
$ man ddrescue

Will explain all the options available.
Last edited by cuckooflew on 2020-07-31 18:41, edited 1 time in total.
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!
cuckooflew
 
Posts: 681
Joined: 2018-05-10 19:34
Location: Some where out west

Re: Resume ddrescue.

Postby RU55EL » 2020-07-31 16:35

dilberts_left_nut wrote:You need to use the "-rtfm" option first.


The "-rtfm" option in your post had me exhibiting the "-lmao" option!
User avatar
RU55EL
 
Posts: 539
Joined: 2014-04-07 03:42
Location: /home/russel

Re: Resume ddrescue.

Postby cuckooflew » 2020-07-31 18:59

Actually the manual is not very clear on this,
for "-i" option which number I must use to resume?

Code: Select all
       -i, --input-position=<bytes>
              starting position of domain in input file [0]

And a search does not find much either,..this is of some use:
http://www.softpanorama.org/Utilities/ddrescue.shtml
But it still is not clear, to me either, what point would be best to resume, I can not answer this myself, :?: :?: :?:
Ahh, maybe a clue: from the above link:
Code: Select all
Character    Meaning
 
'?'    non-tried block 

Code: Select all
# current_pos  current_status  current_pass
0x1C7F0000     ?               5
#      pos        size  status
0x00000000  0x017F0000  +
0x017F0000  0x02320000  *
0x03B10000  0x004F0000  +
0x04000000  0x00020000  *
0x04020000  0x027F0000  +
0x770F50000  0x07290000  ?
0x7781E0000  0x03500000  *
0x77B6E0000  0x06110000  +
0x7817F0000  0x00004000  *

I am guessing now, @op, maybe wait , and see if anyone can confirm this, but I think it would be : 0x770F50000 , but really am not sure....
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!
cuckooflew
 
Posts: 681
Joined: 2018-05-10 19:34
Location: Some where out west


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 14 guests

fashionable