Linux OS is part of the LAMP (Linux, Apache, MySQL, PHP) stack that provides a lot of advantages to the developers and users.
However, it has one drawback that it does not have a Recycle Bin like Windows systems.
So, if a file is deleted you need to perform few tasks to finally recover the deleted file.
However, if you are unable to recover the deleted file then you should use a third-party Linux data recovery software to perform Linux recovery.
Consider a scenario wherein you have an ext2-based Linux system.
In this, you have accidentally deleted some files.
Now, you want to recover the deleted files.
Resolution: To resolve this situation, you should perform data recovery of Linux system.
To do this, you should perform the following steps: · First of all, you should determine the partition from the file was deleted.
For this, you should use the pwd command in the shell console to know the working directory.
· You should unmount the current directory using the unmount command.
Because of this, the original file would not be overwritten while recovering it.
· You should use the debugfs command.
This command enables you to rectify the problems without causing a system crash or restart.
· You should use the isdel command.
This command would enlist all the files that were deleted on the file system.
Please note that this process may take some time to get completed.
· You should use the dump filename command.
This command would write all the mentioned files to the current partition you are working in.
· Now, restart the system.
The recovered files will be at the specified location.
However, if you still are not able to recover the deleted files, then you should use a third-party Linux data recovery software to do the needful.
Such ext2 recovery tools are read-only in nature and are able to perform data recovery of Linux systems using fast yet sophisticated scanning algorithms.
previous post