Data recovery and partition repairing are tasks that involve the usage
of some specialized utilities that can work in sensitive areas of the
system. When it comes to restoring lost data and rebuilding boot
sectors, one of the tools that are created just for these purposes is
TestDisk. Runnable via command-line, the software checks disks
and scans for errors, then allows you to choose the action you want it
to carry out. With TestDisk you can analyze the partition structure and
check if any lost partitions are to be found on the selected drive.