How to Recover Deleted Files From Ext2-Based Linux System
Table of Contents
ToggleAre you a Linux user and currently facing file deletion especially after a power outage? If yes, then this is the perfect place you have stumbled upon. You may have lost the files owing to different reasons but you should not worry as these files could be recovered using in-built Linux tools. If these tools are unable to restore the files, then you should use a third-party Linux data recovery software to do the needful.
Let us assume a case wherein you are working on an ext2-based Linux system during which there is an electricity cut and the system is turned off. When the power is restored, you find that some files, on which you were working, are not there.
Cause:
For this strange situation, there could be the following reasons responsible:
The partition table of the Linux hard disk could be damaged.
The logical drives could be accidentally deleted.
It could have happened because of bugs in the existing version of the operating system.
It is quite possible that the system has become virus infected, which has caused the file deletion.
Resolution:
To start off the recovery operation, first of all you would need to unmount the file system from which you have lost the files. Then, you can use the following in-built 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:
To start ‘debugfs’, use the following command:
/sbin/debugfs device
Where, ‘device’ is the file system
Enter the following command in the ‘debugfs’ prompt:
lsdel
The deleted files will be listed after using the previous command.
To write the data of the deleted file, you would need to enter the following command:
dump
filename
Repeat this command to write the data of all the recovered files.
Type ‘q’ and press Enter to quite the ‘debugfs’ tool.
E2undel: This tool also recovers the deleted files providing better interface and recovering 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 should use a third-party Linux recovery software. These read-only tools are able to recover lost data without inflicting any damage to the existing system and perform safe data recovery in Linux systems.
Of the very few available Linux data recovery utilities, Stellar Phoenix Linux Data Recovery is the most reliable software. Supporting various Linux file systems including ext2, ext3, ext4, and also FAT12, FAT16, and FAT32, this tool supports varius 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.
You may also like
Archives
- November 2025
- October 2025
- September 2025
- August 2025
- July 2025
- June 2025
- May 2025
- April 2025
- March 2025
- February 2025
- January 2025
- November 2024
- October 2024
- September 2024
- August 2024
- July 2024
- June 2024
- May 2024
- April 2024
- March 2024
- February 2024
- January 2024
- December 2023
- November 2023
- October 2023
- September 2023
- August 2023
- July 2023
- June 2023
- May 2023
- April 2023
- March 2023
- February 2023
- January 2023
- December 2022
- November 2022
- October 2022
- September 2022
- August 2022
- July 2022
- June 2022
- May 2022
- April 2022
- March 2022
- February 2022
- January 2022
- December 2021
- November 2021
- October 2021
- September 2021
- August 2021
- July 2021
- June 2021
- May 2021
- April 2021
- March 2021
- February 2021
- January 2021
- December 2020
- November 2020
- October 2020
- September 2020
- August 2020
- July 2020
- June 2020
- May 2020
- April 2020
- March 2020
- February 2020
- January 2020
- December 2019
- November 2019
- October 2019
- September 2019
- August 2019
- July 2019
- June 2019
- May 2019
- April 2019
- March 2019
- February 2019
- January 2019
- December 2018
- November 2018
- October 2018
- September 2018
- January 2017
- July 2016
- June 2016
- April 2016
- February 2016
- June 2015
- July 2014
- February 2014
Calendar
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 | |

Leave a Reply
You must be logged in to post a comment.