First of all, many thanks for PhotoRec!
I have the following concern, I am trying to restore files from a very large disc with a broken filesystem. The signature recognition actually works quite well. Unfortunately I have no more space where all the scraped files can go. And I really only need a subset of them. Would it be possible for PhotoRec to do a kind of dry run and only save report.xml? Another option for me would be to set the location of the report.xml separately from the restore location of the files. I have done some small tests and think that I can implement a FUSE file system based on this report and do the rest of the data recovery myself.
Feature request: don't save the files option
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
-
- Posts: 3026
- Joined: 04 Jan 2019, 09:48
- Location: Hannover, Deutschland (Germany, Allemagne)
Re: Feature request: don't save the files option
STOP the current PhotoRec run before the drive/disk with the recovered files is completely filled up by pressing the <return>-key.
Delete all unwanted files from the recovery location.
Restart PhotoRec. PhotoRec will ask if it should continue with the previous recovery action.
Repeat the above as long as needed.
Delete all unwanted files from the recovery location.
Restart PhotoRec. PhotoRec will ask if it should continue with the previous recovery action.
Repeat the above as long as needed.
Re: Feature request: don't save the files option
Unfortunately, this approach doesn't work for me. Because it's just monstrously time consuming and involves a lot of work that's not well automated. It's not an XY problem.
-
- Posts: 3026
- Joined: 04 Jan 2019, 09:48
- Location: Hannover, Deutschland (Germany, Allemagne)
Re: Feature request: don't save the files option
Your need of a virtual recovery only receiving pointers to the file information is certainly an interesting approach.
But you can achieve your space goal easily in a different way by deleting the recovered files automatically. For somebody who implements file systems on linux this is an easy task to program. Then you are left with the reports and you can implement your virtual file system.
Be aware that the TestDisk package is free and open source. You can modify the source code right to your needs.
But you can achieve your space goal easily in a different way by deleting the recovered files automatically. For somebody who implements file systems on linux this is an easy task to program. Then you are left with the reports and you can implement your virtual file system.
Be aware that the TestDisk package is free and open source. You can modify the source code right to your needs.
Re: Feature request: don't save the files option
Well I have actually halfway "achieved" my goal by implementing an additional FUSE, that faked all writes unless directories or report files are created. But it's an unsatisfying victory, FUSE is slow, really slow. I guess the whole disk will be read in half a week. Yikes.
You mentioned the open-source approach. I checked GitHub, and someone has already partially implemented what I need. His pull request (82 ) has been sitting there for about five years, waiting to be merged. It looks like he also wanted to build the same thing - a FUSE library to handle report.xml - about seven years ago, but for some reason never finished or published it.
There are two main issues with that PR:
PS: Eigentlich will ich gar nicht jammern, es liest sich aber trotzdem wie Jammern
You mentioned the open-source approach. I checked GitHub, and someone has already partially implemented what I need. His pull request (82 ) has been sitting there for about five years, waiting to be merged. It looks like he also wanted to build the same thing - a FUSE library to handle report.xml - about seven years ago, but for some reason never finished or published it.
There are two main issues with that PR:
- It still saves some files like the JPG previews in t-files
- The PR is a few commits behind the current codebase
PS: Eigentlich will ich gar nicht jammern, es liest sich aber trotzdem wie Jammern
