Page 1 of 1

Corrupt vhd

Posted: 21. Aug 2009, 17:15
by collinsauve
So, I just spent the past 3 business days setting up a Vista vhd. I was about 1 hour away from it being the perfect base dev environment so I could then make as many copies as I wanted and I would always have all my tools with me, and could start with a clean environment whenever I wanted to, say, work on a different project/version.

Then, this morning while I was working on it in vbox, we had a power failure. vbox no longer opens it. MS Virtual PC opens it but won't boot. As you could understand I am very upset about the time I put into setting this up, and it looks like I might lose it all. If anyone could help me out with any suggestions I would be very gratefull.

vbox 3.04 r50677 gives me this error when I load the vhd in the media manager:
Failure to open the hard drive C:\Virtual Machines\Vista-1 (base).vhd.
Could not get the storage format of the hard disk 'C:\Virtual Machines\Vista-1 (base).vhd'
(VERR_NOT_SUPPORTED)
Details
Result Code:
VBOX_E_IPRT_ERROR (0x80BB0005)
Component:
HardDisk
Interface:
IHardDisk {62551115-83b8-4d20-925f-79e9d3c00f96}
Callee:
IVirtualBox {3f4ab53a-199b-4526-a91a-93ff62e456b8}

MS Virtual PC 2007 6.0.192.0 loads the vhd and attempts to boot it. Booting normally shows the Microsoft logo with the green progress bar, then a blue screen flashes briefly (to quick to read) and it restarts. Safe mode restarts as well, the last file it loads is crcdisk.sys.

I mounted it as a secondary drive to another VM in MS VPC and ran chkdsk on it. It found some errors and I ran /f to correct them. Still exact same problems as above.

Does anyone know how I can repair this vhd? I am also going to enquire in some Windows forums.

Host is Windows XP Pro SP2. Guest is Vista Business 32bit.

Re: Corrupt vhd

Posted: 23. Aug 2009, 19:53
by vbox4me2
I've posted about this before, get an external drive and dump the vhd as raw to that drive, then use some repair tools on it.

Re: Corrupt vhd

Posted: 25. Aug 2009, 22:11
by cooperfdiv
You can repair this with VHDMOUNT, or if you are running Windows 7, you can mount the drive natively in the Disk Management utility. Simply mount the VHD as a drive, and it will attempt to repair the VHD and mount it. Check the drive to make sure everything is intact. Once all looks good, detach (or unmount) it, add it back to the VirtualBox disk store and all is good to go.

Re: Corrupt vhd

Posted: 28. Aug 2009, 16:35
by collinsauve
Mounted it with vhdmount, no problems foundr. vbox still won't recognize the vhd. ms virtual pc still recognizes it but vista won't boot (determined the error is driver_irql_not_less_or_equal).

I'm just going to start over with a clean image, I don't see much hope for this.

Thanks for trying guys.