1

accidentally happened to Shift+Del a folder named new from my external HDD. In my attempt to recover the lost data (very valuable to me) and after going through most of the previous such cases on Ask Ubuntu, resorted to using the intelligent testdisk recovery utility.

followed the testdisk procedure, entered the advanced option and selected the list option as shown:

phase_1

Then maneuvered to the directory Work, from where the folder named new is deleted.

It is here, that any deleted file/folder is highlighted.

phase_2

In my case it fails to show the deleted folder new.

Notes:

  • The external HD has been kept mounted and no system reboot performed yet.
  • while doing Deepsearch, the system slows down real bad.
kedarb
  • 75
  • It's been a long while since I've used Testdisk but don't you have to go into the directory and restore the files? (ie, Press right arrow, select the files you want, and then shift+c to copy them into the working directory you were in before running testdisk. – Oli Dec 04 '19 at 15:01
  • Yes @Oli, you are right. As you can infer from image 2, I am currently present in the directory named 'work' and the folder 'new' was deleted from here. Ideally, testdisk detects the deleted files/folders and prints them in highlighted text for the user. In my case, the deleted folder 'new' is not been detected. – kedarb Dec 04 '19 at 15:17
  • I mean go into the deleted directory. Get to where you are in picture two and press right. – Oli Dec 04 '19 at 15:38
  • @Oli I do not understand, but how can I go into the deleted directory 'new' if it is not detected, as seen picture two. – kedarb Dec 04 '19 at 15:54
  • What happens if you press right? – Oli Dec 04 '19 at 16:04
  • it directs me into the folder on which I pressed right... – kedarb Dec 04 '19 at 16:09

1 Answers1

0

Happy to share with you the my research on how to recover deleted files on linux system.

Two part solution

  1. Recovering the deleted files by How To Recover Deleted Files In Linux [Beginner’s Guide]

Make sure to select the Undelete option which displays the deleted files, instead of list option.

  1. Now that you have recovered the deleted files and copied it in the selected folder, the files' permission need to be changed from root --> owner by How can I become the owner of a file/folder that root owns?
kedarb
  • 75