Debian 9 (Stretch) laptop, and attached external hard disk in enclosure.
How to use GNU ddrescue to copy folders or files from failed hard disk? (not the whole disk image). For example, /home directory.

  • You can't do that. The tool is for rescuing disk images without regard to the data they contain – roaima Nov 19 '20 at 23:57

That isn't for what the GNU ddrescue program is designed.

You can, however, make a copy of a specific partition, from which you want to copy the data, rescue the partition, and then mount it and copy the data from inside it to wherever you wish, I do that all the time, except I'm always copying the whole disks, which is only a small hassle when mounting it afterward.

Good luck.

  • I can't copy a full disk image since I have no dedicated media storage or separate PC for storing disk copies 500gb. – triwo Nov 20 '20 at 19:38
  • @triwo Then you cannot use GNU ddrescue. Simple as that. – LinuxSecurityFreak Nov 21 '20 at 0:08
  • what command to copy folders that contain corrupted data? – triwo Nov 21 '20 at 14:16
  • @triwo The only way I know of is just the mentioned ddrescue and then copy actual data from the created image. Sorry, I never have tried another approach. Maybe there is, but I somehow doubt it. – LinuxSecurityFreak Nov 21 '20 at 16:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.