The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    ddrescue interrupt and resume

    Discussion in 'Linux Compatibility and Software' started by Kyle, Apr 30, 2012.

  1. Kyle

    Kyle JVC SZ2000 Dual-Driver Headphones

    Reputations:
    1,758
    Messages:
    992
    Likes Received:
    575
    Trophy Points:
    106
    I am trying to rescue the data froma dying HDD. How do I interrupt and then resume ddrescue as its a slow process given the damaged drive?
     
  2. cri-cri

    cri-cri Notebook Consultant

    Reputations:
    43
    Messages:
    111
    Likes Received:
    0
    Trophy Points:
    30
    Interrupt: CTRL+C.
    Resume: re-run your initial ddrescue command.
     
  3. Kyle

    Kyle JVC SZ2000 Dual-Driver Headphones

    Reputations:
    1,758
    Messages:
    992
    Likes Received:
    575
    Trophy Points:
    106
    Thanks, so I dont have to tell ddrescue where to resume from on the HDD?
     
  4. cri-cri

    cri-cri Notebook Consultant

    Reputations:
    43
    Messages:
    111
    Likes Received:
    0
    Trophy Points:
    30
    Errhh... You did run it with the logfile option, right ?
    Code:
    IMPORTANT! Always use a logfile unless you know you won't need it.
    Without a logfile, ddrescue can't resume a rescue, only reinitiate it.
    If you didn't, there's a --generate-logfile option that you can use to generate a logfile from a recovered image. As per info ddrescue:
    Code:
    However, if the destination of the copy was a drive or a partition, (or an existing regular file and truncation was not requested), most probably you will need to restart ddrescue from the very beginning. (This time with a logfile, of course).
    I never used the --generate-logfile option so it might or might not work for you. Maybe someone else can chime in with more details...
     
  5. Kyle

    Kyle JVC SZ2000 Dual-Driver Headphones

    Reputations:
    1,758
    Messages:
    992
    Likes Received:
    575
    Trophy Points:
    106
    Thanks, I was not aware of the logfile option, and it turns out I was looking at tah man page of dd_rescue and that ddrescue is another program :eek: