Skip to content

Instantly share code, notes, and snippets.

@PathriK
Created December 21, 2020 15:36
Show Gist options
  • Save PathriK/a174b57924a4561a58d620813ccae6ed to your computer and use it in GitHub Desktop.
Save PathriK/a174b57924a4561a58d620813ccae6ed to your computer and use it in GitHub Desktop.
Commands used to run ddrescue
ddrescue -d -n -N -v /dev/sde /media/pathrik/Backup Plus/2TB Bkup/mypassport.img mypassport_merge.logfile
ddrescue -d -r3 -v /dev/sde /media/pathrik/Backup Plus/2TB Bkup/mypassport.img mypassport_merge.logfile
ddrescue -d -r3 -R -v /dev/sde /media/pathrik/Backup Plus/2TB Bkup/mypassport.img mypassport_merge.logfile
/dev/sde --> Drive that is not getting recognized(source)
/media/pathrik/Backup Plus/2TB Bkup/mypassport.img --> Location where the above drives cloned image should be written to (target)
mypassport_merge.logfile -->file that stores the progress so that we can stop and resume as needed
The first command does a clone of sectors that it can read quickly. It skips sectors it is not able read.
Second command does extra work to clone of skipped sections from previous command
Third one tries the second command work,but in reverse
These three commands run one by one after each gets completed should enable complete clone
After clone, as far as I remember, I was able to just mount the cloned image and able to accesst the files directly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment