[ubuntu] Salvaging data form a damaged VM with the aid of a donor clone VM

view full story

http://ubuntuforums.org – Hi everyone. I'll try to cut a long story short here, I'm hoping someone can help me! I have a Virtualbox machine running Ubuntu 12.04 with a 20Gb virtual drive. Thanks to a moment of inattention on my part, there was an attempt to format/re-partition /dev/sda (the boot/root drive) instead of the usb stick I was intending to target :oops: Happily, I have a recent-ish clone of the virtual machine and the virtual drive, so I have almost everything (including an exact image of the drive geometry) apart from maybe a week's work - changes to a few source code files which I would like to get back. (Hardware)