I deleted a directory using the command rm -drf file_dev as root. Is it possible to recover this directory with its content somehow?
Asked
Active
Viewed 6,047 times
0
sarp
- 443
1 Answers
0
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:
sudo apt install testdisk
sudo testdisk
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.
sean
- 546