Page 1 of 2

Recovering / accessing a broken VDI / VMDK

Posted: 19. Mar 2011, 17:51
by vbox4me2
What if your virtualizer can not start or mount your VM anymore ? everything lost ? start over ?
Afaik there is a serious lack of tools to access broken VM disks, this thread is all about this, how to access a broken VDI or VMDK.

As a start a nice topic where some tools where found that eventually allowed access to the data inside a broken VM.

http://forums.virtualbox.org/viewtopic.php?f=6&t=40049

Tool collection:
http://webcache.googleusercontent.com/s ... .google.nl

Re: Recovering / accessing a broken VDI / VMDK

Posted: 19. Mar 2011, 18:06
by Perryg
Sadly unless those tools work in wine they provide no help at all to anyone other than Windows users.

Re: Recovering / accessing a broken VDI / VMDK

Posted: 19. Mar 2011, 18:22
by vbox4me2
Well get of your backside and write one or find one :mrgreen:
But seriously as a linux user you could have a small xp VM handy with these tools and load the broken VM via a shared folder.
The really serious point here is that there are many many many VM's out there and near enough nothing to fix them when they go south. Paragon apparently has 'something' but it ain't cheap and no track record on usefulness.

Re: Recovering / accessing a broken VDI / VMDK

Posted: 19. Mar 2011, 18:26
by Perryg
I hear you, just making a point if others than Windows users fly by.

I have tried a few that I have found but none of them did any good. I guess it really depends on the level of corruption. Headers can be rebuilt with a hex editor but to make that automatic seems to be really difficult. Nothing beats a good backup. Of course I will add anything that I find (that actually works) as soon as I can find them.

Very useful post and hopefully will produce something worth while!

Re: Recovering / accessing a broken VDI / VMDK

Posted: 20. Mar 2011, 22:47
by vbox4me2
Found another nice tool: http://libguestfs.org/

Re: Recovering / accessing a broken VDI / VMDK

Posted: 22. Mar 2011, 16:52
by mpack
I don't see generic disk repair tools being much good at repairing broken VDI / VMDK (broken as in, VBox refusing to use them). If the block map in these formats is zapped then you really can't make any sense of the disk data. Perhaps manually you could see patterns, but an automated tool? I rather doubt it.

Re: Recovering / accessing a broken VDI / VMDK

Posted: 22. Mar 2011, 22:02
by vbox4me2
There ain't any difference between a hosed real disk or a virtual one, for most hosed real disks I had to restore over the past 30 years I recon a 80% success-rate, with the same type of tools this can also be achieved for virtual ones, so yes there is plenty of sense for such tools especially when the virtual world is growing fast. Ever seen an ESX farm with hundreds of production VM's? Billions of euro's worth of data which can easly also run on VBox, a world without such tools is simply irresponsible.

Re: Recovering / accessing a broken VDI / VMDK

Posted: 23. Mar 2011, 12:01
by mpack
vbox4me2 wrote:There ain't any difference between a hosed real disk or a virtual one
Oh, there certainly is. For example the only way to truncate a physical disk is with an ax. With the virtual disk that kind of damage is much easier - and recovery of data from the missing portion is completely impossible. I don't deny that with work you might access some of the data on drives damaged in this way. I do have my doubts that an automated tool will do much good.

Re: Recovering / accessing a broken VDI / VMDK

Posted: 18. Oct 2011, 22:46
by vbox4me2
Small trick to try to repair a header:

viewtopic.php?f=6&t=45192

Re: Recovering / accessing a broken VDI / VMDK

Posted: 19. Oct 2011, 02:27
by mpack
Beware that the technique only works if the corruption is limited to the first 72 bytes of the VDI (i.e. the preheader). I would have thought it highly unlikely for any corruption to be so limited - I would have expected the most likely damage to be a bad cluster (4KB lost) or at least a bad sector (512bytes lost). However I must admit that two people on this site have managed to corrupt just the preheader in the last couple of months. Heaven really knows how.

Re: Recovering / accessing a broken VDI / VMDK

Posted: 24. Jan 2012, 22:15
by vbox4me2

Re: Recovering / accessing a broken VDI / VMDK

Posted: 9. Jun 2012, 19:35
by justinrpg
NONE OF THESE TOOLS ARE WORKING FOR ME!!!

MOD Edit: User officially warned about their lack of forum etiquette.

Re: Recovering / accessing a broken VDI / VMDK

Posted: 10. Jun 2012, 00:03
by johnlee
Just a minor issue - whoever generated this warning should get a life! - Maybe this reply is a breach too? J

Re: Recovering / accessing a broken VDI / VMDK

Posted: 10. Jun 2012, 00:13
by Perryg
Perhaps you should read back in the posts to see if there is a call for the warning before you make such a statement.
The user has been warned repeatedly and even to the point where other users were complaining.

Re: Recovering / accessing a broken VDI / VMDK

Posted: 10. Jun 2012, 12:39
by mpack
johnlee wrote:Maybe this reply is a breach too?
It certainly is - it's off topic for one thing. There is a discussion area set aside for giving feedback to moderators and volunteers, so I suggest you use that in future, and not hijack someone else's thread.