For people with Linux systems, some files disappear after a power outage. If you are experiencing this, then there are many possible reasons for it. Here is a list of possible causes for such problems:
• A virus has infected your system and caused the loss of data.
• The logical drives may have been deleted unintentionally.
• The operating system’s current version may have bugs.
• The partition became corrupted and/or damaged.
Assuming that you are running on a system with an ext-2 file system, a power outage occurred and some files were lost afterwards. What do you do now? Here’s what to do:
1. Use the debugfs tool. This is one useful process in Linux to recover lost data. Type /sbin/debugfs device. The word ‘device’ should be your file system.
2. Enter lsdel in the prompt of debugfs. A list will appear stating all the deleted files in your system.
3. Select the files you wish to be recovered.
4. Write the file in a new file name by entering the command ‘dump filename’. The ‘filename’ is the name of the deleted file.
5. Repeat process until you are satisfied and/or all files you want have been recovered.
6. To exit the debugfs prompt, type ‘q’ then enter.
Another tool you can use is the e2undel method. This has a better looking interface and contains more options during data recovery. In order to utilize this, you will have to key in the following command:
e2undel -d device -s path [-a] [-t]
In the event that these tools fail to do the trick, then you will need to use third party ext2 recovery software. These tools will be of great help in recovering deleted files. You may also opt to seek the help of a professional programmer or technician to help you with your dilemma.