Windows 7 Forums Search
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7 - restore XP mode files using DiskPart


 
08-16-2011   #1


Windows 7 Professional 32 bit
 
 

restore XP mode files using DiskPart

My pc recently crashed. I was able to recover my .vhd file. I the tried to reinstall VM using this file but I got an error message that the file was too big...After reserching I discovered that you can use the DISKPART utility to resize this VHD file
wisefaq.com » How to fix the “Cannot attach the virtual hard disk …”


I keep getting this error message

"diskpart has encountered an error: The chain of virtual hard disks is corrupted. There is a mismatch in the identifiers of the parent virtual hard disk and differencing disk."

what does this mean?

My System SpecsSystem Spec
08-16-2011   #2


 


Hi ggyg30, welcome to the Seven Forums.

XP Mode, when installed and used with default settings, consists of two different vhd files, the parent vhd in ]C:\Windows\XP Mode (default location) and the user specific part of XP vhd in C:\Users\Your_Username\AppData\Local\Microsoft\Windows Virtual PC\Virtual Machines (default location). Read this post for more information on this so called differencing disk system.

To "rescue" the XP Mode, you only need the user specific vhd, the one I assume you could find and save. You then need to install Virtual PC and XP Mode again, to create a virtual environment to run virtual machines, and the XP Mode base vhd. Next step is to create a new virtual machine using an existing virtual disk (your rescued XP Mode vhd), as told in this excellent tutorial of our own Brink: Windows Virtual PC - Create Virtual Machine, step 9 and onwards.

That's it. If the XP Mode vhd you rescued is OK, contains no faults, your XP Mode should run just fine, with all apps and files intact.

Kari

Last edited by Kari; 08-16-2011 at 02:32 PM..
My System SpecsSystem Spec
08-16-2011   #3


Windows 7 Professional 32 bit
 
 


I'm installing this on a new machine, does this make a difference? Also, when the pc crashed XP mode was on hibernate.
My System SpecsSystem Spec
.


08-16-2011   #4


 


No difference, as long as the vhd is undamaged. Install Virtual PC and XP Mode to your new computer, then follow the instructions in tutorial I linked to in my previous post, choosing the option to use an existing vhd as told in step 9 of that tutorial.

When a Virtual PC virtual machine (XP Mode or any other vm) is hibernated, it creates a virtual saved state file with .vsv extension in C:\Users\Your_Username\AppData\Local\Microsoft\Windows Virtual PC\Virtual Machines (default location). This file contains information on all open applications and files and their window position etc in hibernated machine.

When a Virtual PC vm is then started, it checks if the .vsv file exists. If yes, the vm is opened as it was when last time closed (hibernated). If the .vsv file does not exist, vm is booted freshly.

In the beginning of this tutorial you can find more information on all Virtual PC vm file types: Virtual XP Machine - Copy

In other words, the only damage that the missing hibernation file can cause is that non-saved data when vm was hibernated is lost, for instance if you had a word processor open when hibernated and you lose hibernation data (.vsv file), all modifications of your document since last saved are lost. Other than that, no harm done.

Kari
My System SpecsSystem Spec
08-16-2011   #5


Windows 7 Professional 32 bit
 
 


Ok, I followed the instructions and created a VM using an existing file but I got the following error "Cannot attach the virtual hard disk to the virtual machine. Check the values and try again".
My System SpecsSystem Spec
08-16-2011   #6


 


Did you start the newly installed XP Mode first? You need to install and run XP Mode once, to create the parent vhd. When you have XP Mode up and running, you can close it and create a new XP vm using your existing vhd.

Kari
My System SpecsSystem Spec
08-16-2011   #7


Windows 7 Professional 32 bit
 
 


Yes. I did it exactly as stated.
My System SpecsSystem Spec
08-16-2011   #8


Windows 7 Professional 32 bit
 
 


My vhd file might be corrupted. I found a third party app that might be able to recover the files. I think it's called media heal...not holding my breath though.
My System SpecsSystem Spec
08-17-2011   #9


Windows 7 Professional 32 bit
 
 


Just to follow up. I was able to extract my files using MediaHeal. I initially tried WinImage but to no avail...so for future reference, if reattaching the vhd file fails try WinImage or MediaHeal.
My System SpecsSystem Spec
Reply


Thread Tools



Similar Threads for: restore XP mode files using DiskPart
Thread Forum
XP Mode: Software Preview Works On Local Files But Not Files On Win7 Virtualization
How can I undo or recover lost files from System Restore in SAFE MODE? Backup and Restore
restore xp mode Virtualization
Black screen at boot with safe mode, system restore, or repair mode Backup and Restore
System Restore In Safe Mode :S ? Backup and Restore


All times are GMT -5. The time now is 03:55 AM.



Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30