Recover Linux vmdk VMware file

view full story

http://serverfault.com – I am running Xubuntu 12.04 inside VMware Workstation 7. Long story short, I had created a restore script for another PC that wiped the full 512 byte MBR, ran fdisk to create some partitions, and then restored them through tools like partimage. Needless to say, I accidentally ran this script as root inside my Xubuntu VM and now it fails to boot (the script wiped the MBR and ran fdisk to create the partitions on my VM disk, but then failed and aborted, so all the data is there, it's just that the partition table is totally screwed up and now VM won't boot nor will it mount the drive when I try t (HowTos)