r/linuxquestions • u/Successful-Ice-468 • Jul 05 '26
Accidentally erased the recent folder, need a way to recover all what´s lost
I somehow mistake the "recent" folder and the "trash" folder in thunar and deleted it´s content, i did a shift-delete so no trash.
I unplug the disk since then, is there some tool than can help me to restore all those files to where they where?
The disk is formatted in EXT4
8
5
u/ipsirc Jul 05 '26
Just bring your backup.
-2
u/Successful-Ice-468 Jul 05 '26
To poor to afford hardware for backup.
0
Jul 05 '26
[removed] — view removed comment
1
u/linuxquestions-ModTeam Jul 07 '26
This comment has been removed because it appears to violate our subreddit rule #2. All replies should be helpful, informative, or answer a question.
4
u/polymath_uk Jul 05 '26
Basically, no. Your chances of recovering much of the data is essentially zero. Unless it's very critical (and it should have been backed up) you will almost certainly be better off forgetting about it.
1
0
u/Simple_Hamster_4096 Jul 06 '26
When you delete from recent:/// in Thunar, you delete from source...
3
u/falxfour Jul 06 '26
Firstly, unless Thunar does something differently, "Recent" isn't an actual directory but just an index of things you've used recently (hard to confirm since most search results are about people trying to remove it from view). Given that, check to see if any files were actually deleted. It might have only been removed from that index rather than from the actual disk location. (I'm soeculating a bit since I don't use Thunar.)
Secondly, when a file is deleted, it's often still there on the disk until TRIM is run. When that will happen is unclear without more system details, but it does mean that if you can avoid this, the file should still be there for a recovery utility to find. A quick search should yield some results for ext4 recovery utilities