Photorec recup_dir files unremovable

4aDummy

Member
Joined
Jul 21, 2021
Messages
30
Reaction score
9
Credits
306
I recently used Photorec Testdisk to recover some files from a 5 TB portable drive. It left several hundred recup_dir files in my home directory and I cant get rid of them no matter how hard I try i just get "access denied" in some way or other. I was able to copy them to another drive. I no longer need them. Im running Kubuntu 21.04.
 


Tolkem

Well-Known Member
Joined
Jan 6, 2019
Messages
1,516
Reaction score
1,245
Credits
11,069
I feel stupid now.
"Sudo rm recup_dir*" done. After several different combo's of this command failed.
Yeah, when using photorec or testdisk to recover files, the recup_dir it's owned by root, since you run either tool with sudo, so you can delete with sudo, like you just did, or change the ownership
Code:
sudo chown -R username:usergroup /path/to/recup_dir
then you can just delete it from the file manager :)
 
OP
4aDummy

4aDummy

Member
Joined
Jul 21, 2021
Messages
30
Reaction score
9
Credits
306
Yeah, when using photorec or testdisk to recover files, the recup_dir it's owned by root, since you run either tool with sudo, so you can delete with sudo, like you just did, or change the ownership
Code:
sudo chown -R username:usergroup /path/to/recup_dir
then you can just delete it from the file manager :)
Just installed Q4OS in my VM. Looks pretty good so far. I think I might like this one quite a bit.
 
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com


Latest posts

Top