PhotoRec is a data recovery software tool designed to recover lost files from digital camera memory (CompactFlash, Memory Stick, Secure Digital, SmartMedia, Microdrive, MMC, USB flash drives etc.), hard disks and CD-ROMs. It recovers most common photo formats, including JPEG, and also recovers audio files including MP3, document formats such as Open Office, Microsoft Office, PDF and HTML, and archive formats including ZIP.
PhotoRec does not attempt to write to the damaged media you are about to recover from. Recovered files are instead written to the directory from where you are running PhotoRec or any other directory you choose. PhotoRec is shipped with TestDisk.
Here steps for recover lost data:
Step 1 : As a root user, install PhotoRec by "yum install photorec" in RedHat Linux. After install type photorec in terminal window
Step2 : You'll get following screen
Step 3 : Here want to choose hard disk, Hit Enter for proceed, You'll get following,
Step 4 : Choose partition table type, Our normal table type is Intel ( Normally we using this only ). Next you'll get following page,
Step 7 : After Hit Search , you'll get following window. This for choose file system type.This is one of useful option for linux file system,
Step 8 : Now want to choose place for store recoverd files, Don't use same partition for store files. This'll corrupted files and can't recover file successfully.
After completion of file recovery,Open destination directory and get files. Wait until file recovery completion.
By this i have successfully restored lost files. Use it by your one risk. Hope you can successfully restore your lost data.
Please go PhotoRec official page for more information.