I am in a habit of using [Shift] + [Del] combination to delete files rather than delete only. I won’t store not-so-important files in my Recycle Bin, that’s why. This is a good habit in one hand and bad in the other hand because there’s a chance I accidentally delete an important file/folder.
Luckily, Linux (Ubuntu in this case) has few good tools to recover deleted data and in easy ways. In this post I will show you how to recover deleted file via Ubuntu with Scalpel.
Scalpel is a file system independent recovery tool which available for Linux and Mac OS. But, you can run it on Windows with mingw.
- Install the Scalpelwith:
# sudo apt-get install scalpel.
- Open configuration file located in /etc, it looks like /etc/scalpel/scalpel.conf, with an editor.
# vi /etc/scalpel/scalpel.conf
- Uncomment file type line part you wish to recover and save the file
- Run Scalpel from the Terminal
scalpel /Device_Name/Drive_Name/Folder_Name -o Output_Directory
- Output_Directory will be created in the directory we’re running Scalpel. The Output_Directory should not be exist before you run Scalpel because otherwise Scalpel will refuse to start.
- Go to Output_Directory and view what’s inside.
- There should be a file named audit.txtwhich contains a summary of what Scalpel has done. Open it to look what has done.
- There should be adirectory which has recovered files. For example the folder named pdf-0-0 for PDF files. Open the folder and you have your file.
For more information about scalpel commands, type: man scalpel
Good luck and here’s the download link.