I deleted a directory using the command rm -drf file_dev
as root. Is it possible to recover this directory with its content somehow?
I deleted a directory using the command rm -drf file_dev
as root. Is it possible to recover this directory with its content somehow?
Install testdisk, thank me later. Works about 99% of the time.The time that it didn't is when you got unlucky and the ftrim ran on your SSD/NVME. Just keep this program installed on your machine. It fixes everything. I've wiped out whole raids and popped them back in seconds. :D
All you have to do is:
As long as you know what partition it was on your chances of getting it back are pretty high. If it's on an encrypted partition you have to do this after the drive gets unlocked, if it's not it's no matter then probably the best way to run it is to boot a Live Ubuntu image, install it from the Ubuntu repository and then run it from there.