cgsecurity / testdisk

TestDisk & PhotoRec
https://www.cgsecurity.org/
GNU General Public License v2.0
1.55k stars 190 forks source link

Copying files off drive without a superblock results in infinite copying that only ends when target hard disc runs out of space #101

Open NathanSkene opened 3 years ago

NathanSkene commented 3 years ago

I'm trying to recover files off a hard disc that was setup as RAID (described here: https://superuser.com/questions/1652186/recovering-a-newly-created-raid1-that-has-no-superblock-lost-after-reboot).

I'm using testdisk to access it:

Some folders copy OK. Other folders send the copy function into what seems to be an infinite loop. My sense is that this seems to be related to the folders having hidden directories with things like .git directories or .cache directories.

Not really sure how I can create a reproducible example without posting you the drive but if you've got suggestions let me know!

Is there any way to mitigate this?

cgsecurity commented 3 years ago

Use 'h' to hide deleted files and try again to copy the directory. Do you still have the problem ?