Linux users who frequently use the command tend to abuse their power and command launched indiscriminately, which can sometimes cause disastrous effects. The famous ‘rm-rf’ to delete files and directories recursively and without confirmation is one of them, and until recently try to recover lost files in Linux was a very complex mission .
To solve this problem we have two interesting utilities. The first is Test Disk (‘apt-get install testdisk’, ‘yum install testdisk’), which is also available as a Live CD or Live USB recovery. This tool is useful for certain file systems , but for example does not support ext3 or ext4, what exactly are the most widely used Linux for years.
these cases is where our second protagonist, PhotoRec , a tool that was originally intended to help recover deleted photos and images from memory cards of digital cameras, but has become one of the file recovery tools most powerful and popular on Linux.
PhotoRec
ext3 and ext4 support , and it is a utility in console mode (ncurses to power) that guides us through the various options to recover recently deleted files. You have detailed information of running the program in the FAQ, this guide step by step, but also in this document to use PhotoRec from the command line and even in script mode.
surely know, the ideal is that if a file or directory borráis tratéis not perform write operations that can overwrite the sectors that have just discarded. If you do not write anything to disk and immediately utilizais as PhotoRec utilities will have a good chance to recover deleted files.
No related posts.