Yesterday was really an unlucky day for me. An example for this may be, I have deleted a lot of my useful data by mistake. I was going to delete a folder using SHIFT + DEL, but in doing so by mistake I had pressed SHIFT + END then SHIFT + DEL. Grrrrrrrrrrrr :x.
So, now I need a software for data recovery for ext4 filesystem.
TestDisk - CGSecurity
TestDisk is wonderful FOSS under GNU Public License. It is capable enough to data recovery from lost partitions and/or make non-booting disks bootable again when caused by faulty software, certain types of viruses or human error (such as accidentally deleting a Partition Table).
TestDisk can run under
* DOS (either real or in a Windows 9x DOS-box),
* Windows (NT4, 2000, XP, 2003, Vista, 2008, Windows 7 (x86 & x64),
* Linux,
* FreeBSD, NetBSD, OpenBSD,
* SunOS and
* MacOS X
How to recover data?
Open terminal and type:
1. Installation:
# yum install testdisk
2. Run:
# testdisk
Now, you can see a text user interface like this:

Note: Use keyboard: left arrow move left, right arrow to move right, Up arrow to move up, down arrow to move down and Press Enter to Select an option.
Now, select an option which you think best for you. But, I prefer to main a log.

Select the disk from which you want to recover data and Proceed.

Select partition type, here in my case Intel and Press Enter.

Select Analyse and Press Enter.

Just Select Quick search and Press Enter. First time, it will take some time, in my case it took half an hour.

Now, select the partition from which you want to recover data and Press P. It will list all files and directories inside the partition.

Note: White Color files indicate existing files and Red color files indicates deleted files.
Just select the deleted file which you want to recover and Press c to copy. Now, you will get a options asking about destination location. Choose your destination location and Press Y. This copy process will take some time depending upon files size. When the 'Copying, please wait...' message will be replaced by 'Copy done!' message, then you can find your files on destination location.
I hope this post will help you. Thanks for Visiting by blog.
Cheers. :)
This comment has been removed by the author.
ReplyDeleteThank you for useful advices. I will try to follow them. It's better and cheaper than to pay for data recovery specialists. But what if your hard drive crashed. Data recovery from damaged disk is not an easy process, which can't carry anyone who knows how to use a screwdriver. Especially when the disk was subjected to high temperatures. This is one of the myths about data recovery
ReplyDelete, which description I have read in the following article.