Saturday, May 28, 2011

Data Recovery in Linux

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. :)

11 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Thank 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
    , which description I have read in the following article.

    ReplyDelete
  3. Data Recovery should only be attempted by well experienced Professionals or else their actions may lead to Permanent Data Loss and make File Recovery impossible. If the data is critical, a professional data recovery service sould be the best solution.

    ReplyDelete
  4. Hello your blog is sharing great information. sdrc providing best Data recovery services in Singapore.Thanks for share this blog.


    ReplyDelete
  5. RAID Data Recovery New Zealand services for hard disk drives, SSD, RAID, NAS, USB flash drives, memory cards and mobile phones in New Zealand. Lab based in Auckland

    ReplyDelete

  6. Use Stellar Phoenix Linux Data Recovery Tool software can recover back all your lost important or critical data, files, and folders on Windows platform. Meanwhile, it can recover various Linux volumes like Ext2, Ext3 & file recovery system. Plus more, ensures the recovery of Linux files after a hardware crash, virus attach, software malfunctioning or formatted Linux hard drive.Get More Info,

    & Download: http://www.mannatsoftware.com/stellar-phoenix-linux-data-recovery.html




    ReplyDelete
  7. Data Recovery Services-BIT Data Recovery provides data recovery services for all types of ATA and SATA hard drive with mechanical, electrical or firmware failures.

    ReplyDelete
  8. Luke Lonergan has completed his post graduate degree from Stanford University to help in your problem.
    Luke Lonergan

    ReplyDelete