Page 1 of 1

PhotoRec stored data somewhere but I don't know where.

Posted: 16 Mar 2017, 13:03
by doofenshmirtz
I was running a photorec recovery to a desktop folder called "recovery" then I cancelled because I realized I won't have enough space. Then deleted the "recovery" folder thinking I can start all over but just selecting a few file types rather than all. But, even though I should have ~60GB free I'm still at 12GB free like I didn't delete the folder. I also removed it from Trash but still no luck. Where is it hiding? I tried the tmp folder in root but it didn't seem it was there. I still have the photorec.ses file. Should I delete the session somehow within the program itself?

Using antergos (archlinux). Thanks

Re: PhotoRec stored data somewhere but I don't know where.

Posted: 16 Mar 2017, 18:36
by cgrenier
As root, search for the recup_dir.1 directory

Code: Select all

sudo find / -name recup_dir.1

Re: PhotoRec stored data somewhere but I don't know where.

Posted: 16 Mar 2017, 19:37
by doofenshmirtz
Tried that. Gives me three directories. One is where I'm currently recovering so that can't be it I guess, one says permission denied and one is empty even with 'show hidden files' enabled or if I try cd to the directory and do ls.

http://i.imgur.com/nfSicEL.png

Trying the /run/user/1000/gfvs in the browser says it's empty

http://i.imgur.com/lOklumN.png

This is kinda strange, I managed to find all of them using

Code: Select all

sudo find / -type d -name '*Trash*' | sudo xargs du -h | sort
like explained here http://askubuntu.com/questions/215908/h ... -directory

Then used

Code: Select all

sudo rm -fr /root/.local/share/Trash/files/recup_dir.*
to delete them one by one just to be sure (asterisk being the number of the file).

Thanks for your help. :)