Recovering / accessing a broken VDI / VMDK

This is for discussing general topics about how to use VirtualBox.
ChipMcK
Volunteer
Posts: 1095
Joined: 20. May 2009, 02:17
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Windows, OSX
Location: U S of A

Re: Recovering / accessing a broken VDI / VMDK

Post by ChipMcK »

vbox4me2 wrote: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.
One important item: VirtualBox or VMware would need to be installed in the windows vm for these "recovery" programs
Brutalizer
Posts: 76
Joined: 7. Oct 2012, 18:24

Re: Recovering / accessing a broken VDI / VMDK

Post by Brutalizer »

My Win7 VM did not boot, so to retrieve my data I mounted the VM in Linux as a storage, using... qemu? Then I could cd into the new folder which contained the VM and extract all data I needed. Then I recreated the VM and copied back the data. I could not repair the VM, I just extracted the documents I needed.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Recovering / accessing a broken VDI / VMDK

Post by mpack »

That will only work if the disk is still usable in VirtualBox or in whatever other platform you choose. I.e. it will only work if the headers and blockmap are intact, i.e. not really a broken disk at all.

And if I was you I would check that the extracted file contents are as they should be. There are some ancient and truly dumb disk imaging tools out there, many of which will not understand the dynamic VDI format, they will assume that VDI blocks are in linear order. This will tend to work for navigating the filesystem indices (because the filesystem sectors were laid down immediately the drive was formatted), so it will appear to be working great - but the file content will be grabbed from effectively random parts of the disk surface.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Recovering / accessing a broken VDI / VMDK

Post by mpack »

I'm going to lock and un-pin this topic. It was only ever one ex-mod's flight of fancy, it was never useful.
Locked