LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ddrescue, safe to resume with image moved/copied? (https://www.linuxquestions.org/questions/linux-software-2/ddrescue-safe-to-resume-with-image-moved-copied-4175596906/)

Essex20 01-06-2017 05:54 AM

ddrescue, safe to resume with image moved/copied?
 
Hello Board,

I am actually recovering a 450 GB Partition to an Image
connected over USB with 2 TB of free space at the office.

The problem is, I actually need the 2 TB Harddrive at home for some
changes and could therefore attach a 1 TB Harddisk at the Office.
This is enough to write the first Image (and after that, the second one without
the -n flag).

I used:
Code:

ddrescue -n /dev/sdb5 /media/michael/black2tb/ddrescue/norman_nosplit.img ddrescue_norman.log
I know, if I use a logfile (mapfile) with ddrescue,
that I am able to resume an interrupted ddrescue job only with restarting
the same command.

So, my question here is, after interrupting ddrescue (with CTRL-C),
is it safe to move/copy the 450 GB Image (outfile) to the 1 TB normally
(with mv/cp or Dolphin/mc etc.), and invoking the ddrescue command again
(with the updated target outfile, which would be
Code:

/media/michael/white1tb/norman_nosplit.img
)?

The rescue job is running since ~2 weeks (and is currently at Phase 2),
so I don't want to loose this progress!
Is it safe or do I have to do it on special way?

I searched but found no answer of this specific question.

Thanks in advance
Michael

rknichols 01-06-2017 10:34 AM

That should be fine. That image is just a file, and ddrescue doesn't care where it is or how it is named. Just restart ddrescue with the copied image file and of course the same logfile (or copy thereof), and it will pick up from where it left off.

Essex20 01-12-2017 07:43 PM

It worked like a charm. Thank you!


All times are GMT -5. The time now is 02:09 AM.