[ubuntu] Wrong partition table after using testdisk

view full story

http://ubuntuforums.org – Hello. A friend of mine erased the Photos directory by mistake. To recover it he booted from a livecd and ran Testdisk. Everything went fine (apparently), but when he restarted the computer, the disk could not be mounted. Further investigation showed us that the partition table seems to have been rewritten to: Before it had a single 296GB at the beginning of the disk (/dev/sda1) followed by the extended and swap partitions. Is there any way to recover/restore the partition table? Thanks in advance. (Hardware)