TestDisk is powerful free data recovery software! It was primarily designed to help recover lost partitions and/or make non-booting disks bootable again when these symptoms are caused by faulty software: certain types of viruses or human error (such as accidentally deleting a Partition Table). Partition table recovery using this is really easy. this recovery example guides you through it step by step to recover a missing partition and repair a corrupted one. After reading this tutorial, you should be ready to recover your own data.
test disk [/log] [/debug] [file.dd|file.e01|device] test disk /list [/log] [file.dd|file.e01|device] test disk /version
/log : create a test-disk.log file /debug : add debug information /list : display current partitions
Step By Step Example of Test Disk: