Feature Request: Don't save files smaller than X Kb

Using PhotoRec to recover lost data
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
Posts: 2
Joined: 03 Jun 2017, 15:38

Feature Request: Don't save files smaller than X Kb

#1 Post by FDD2020 »

Hello, First off it's a great tool very effective and it does the job splendidly!

I only have one wish. For me it would be perfect if PhotoRec had a option where i could discriminate files based upon their size.
Example, a HDD that's been used for years as a office pc. Often I find myself having to deal with 100.000+ 1kb thumbnail images :roll:
In the process of removing 4GB worth of 1kb files it seems like my system could catch fire any moment. Besides it taking annoying long to get rid of such a number of very tiny files
Even with high-end hardware, SSD m.2 for OS/Programs and a ZFS array with 6 HDD's for storage of the recovered files.

For me (and maybe others) It would be great if there was a option to not save those kind of files. Something like: Don't save files equal to 1~10KB / 10-100KB/ 100kb-1mb/ or even bigger like corrupt jpg files that are 300MB

Sponsored links

User avatar
Site Admin
Posts: 5307
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France

Re: Feature Request: Don't save files smaller than X Kb

#2 Post by cgrenier »

To delete all thumb files:

Code: Select all

for dir in recup_dir.*; do rm -f $dir/t*.jpg; done
To delete all file smaller than 100k

Code: Select all

find recup_dir.* -size -100k -delete