How to recover deleted files from Ext2 based Linux system

Are you a Linux user and currently facing file deletion especially after a power failure? If yes, then this is the perfect place you have come across. You may have lost the files due to various reasons, but don't worry as these files can be recovered using built-in Linux tools. If these tools fail to recover the files, then you need to use third party Linux data recovery software to do the necessary.

Let's assume a case where you are working on an ext2 based Linux system where the power goes out and the system is turned off. When the power is restored, you will notice that some of the files you were working on are not there.

Cause:

The following reasons may be responsible for this strange situation:

The partition table of the Linux hard disk may be corrupted.

The logical drives can be accidentally removed.

It may have happened due to bugs in the existing OS version.

It is quite possible that the system has been infected with a virus, which has caused the file to be deleted.

Solution:

First of all, to start the recovery operation, you need to unmount the file system from which you lost the files. Then you can use the following built-in Linux recovery tools:

debugfs: This recovery tool recovers the lost files if it is pre-installed on the system. To use this, the following steps are required:

Use the following command to start 'debugfs':

/sbin/debugfs device

Where 'device' is the file system

At the 'debugfs' prompt, type the following command:

Isdel

The deleted files will be listed after using the previous command.

To write the data of the deleted file, you need to enter the following command:

to dump filename

Repeat this command to write the data of all recovered files.

Type 'q' and press Enter to release the 'debugfs' tool.

E2undel: This tool also recovers the deleted files and offers a better interface and recovery options. You can use the following command to recover the deleted files:

e2undel -d device -s path [-a] [-t]

However, if you are still unable to get back the deleted files, then you need to use third party Linux recovery software. These read-only tools can recover lost data without causing any damage to the existing system and perform safe data recovery in Linux systems.

Among the few Linux data recovery tools available, Stellar Phoenix Linux Data Recovery is the most reliable software. This tool supports various Linux file systems including ext2, ext3, ext4 and also FAT12, FAT16 and FAT32, and supports various Linux distributions including Red Hat, SUSE, Debian, Caldera, Mandrake, Sorcerer, TurboLinux, Slackware, Gentoo, etc In addition, this Linux recovery tool is compatible with Windows 7, Vista, Server 2003, XP and 2000.

Comments