See how to permanently and securely delete files on Linux. If you are not sure what the partition type is, use the command df -Th to list all partitions and their disk drive types:. I'll explain our example: I have a pendrive with three files, and I accidentally deleted it with the command rm curriculum. When we delete it from the command line, our file doesn't automatically go to the trash, so it looks like it's gone for good. And look how cool, I don't panic anymore, and it's not because we're in a simulated scenario but because I know that all I need to do to recover is use the right tools!
As a bonus, you'll get that feeling that you've become a hacker recovering files from the beyond. First we need to install the TestDisk tool. Most linux distributions already have this tool in their repository. Don't be scared by the interface, it's very intuitive. Keep calm, we're close to recovering your file! Use arrow keys to navigate between menus and enter key to select. You are probably using a higher version of 7.
The recommendation is almost always right, so the first thing we need is to create a log file with the option Create. Select it and press enter.
In this step you will see a listing of your disks. Select the partition where your file was, if you don't know which one it is, continue following the tool's recommendations, in my case it's Kingston's pendrive disk.
Do not forget to select the option in the navigation menu proceeded. Now let's follow the same advice as in step 4 and trust TestDisk's suggestion. At this stage we will need to analyze it a little better.
In case you haven't noticed, this tool is not just for recovering deleted files, but a powerful disk utility. But if you take a hard look at the description of the options, you'll see that what we want to do is in Advanced.
Now we need to select the partition where our file is located, probably the correct partition will be the partition with the highest number of sectors. From the navigation menu select Undelete. It is common beginners attempt. This is a simply a basic guide prepared to get a beginner started with using ext3grep. Agreed… Try deleting some files, then writing to the filesystem several times or hours later when logs have been updated, and then try to restore the files.
Have a question or suggestion? Please leave a comment to start the discussion. Please keep in mind that all comments are moderated and your email address will NOT be published. Save my name, email, and website in this browser for the next time I comment.
Notify me of followup comments via e-mail. You can also subscribe without commenting. This site uses Akismet to reduce spam. Learn how your comment data is processed. If you liked this article, then do subscribe to email alerts for Linux tutorials. If you have any questions or doubts? Related Posts. How do I tell if If I have ext3? Good program to recover accidentally deleted files at the moment. How about Btrfs? Gannet This tool only works with EXT3 filesystems.
Since this is a script that combines the functionality of multiple tools, the functionality is similar to the tools themselves. So the Sleuth Kit uses very efficient and advanced algorithms to extract as much deleted data as possible from hard drives.
We hope you found the right tool for your data recovery needs with this article. For a basic user, pretty much any tool from the list will work.
Always remember though, these tools try to recover files that have been deleted based on the metadata that still remains. A tech enthusiast with a passion for the cloud and automation technologies.
At work, you'll find me researching a variety of topics to write engaging web content and copy on. When off work, I disconnect for a lot of family and personal time. I'm often hidden away in a comfortable spot where I grab a book and some warm coffee, and read away for hours Your email address will not be published. Testdisk Data Recovery.
Redo Backup And Recovery. Boot Repair. Foremost Data Recovery. SystemRescueCD 1. Knoppix Live Min. Gparted Live Cd. Safecopy Utility. Sleuth Kit Autopsy. Ninad Pathak A tech enthusiast with a passion for the cloud and automation technologies. Follow Author.
0コメント