Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Wanted to backup an ESXi server but pressed the wrong button in my hosting provider panel, which instead installed a fresh linux on the server. Right now I'm imaging the whole drive with ddrescue.

Is there a way to recover the lost partitions? I'm going to try parted, testdisk and gpart.

If that fails I could try to recover the vmdk files.

And if that fails, maybe there's a way to get some files out of the vmdk files?

share|improve this question

If you'd JUST changed the partition table then you could quite easily rebuild it (using the tools you mention) to work well enough to at least copy your files off onto a 'known good' VMFS DS. I'd basically just copy the partition information manually from another working disk.

If it's actually fully installed Linux over it then I'm pretty sure, as in >99%, that you're going to have to restore from backup sorry.

share|improve this answer

There is a tool here that says it can recover the partition and data.

Try it.

share|improve this answer

UFS Explorer is quite good for this type of recovery. Try it on the dd'ed drive and see what it can salvage in terms of your VMDK files. It may also allow you peek inside of the salvaged VMDK files since they're probably not bootable VMs anymore.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.