Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am creating system image of my windows from Control Panel\All Control Panel Items\Backup and Restore enter image description here

This is creating VHD. That's ok, but I noticed that the VHD created is of dynamic type. I want VHD to be created to fixed size (the actual size used by my Windows). Right now out of 250GB hardisk (C drive) 35GB is consumed only. I want the VHD to be created of 35GB but of fixed type instead of expanding type. Why I need this? It is because I have to use this VHD for booting Windows and in my machine I have only one drive and that is C drive. When I boot my Windows with that VHD I get the following error:

An initialization failure occurred while attempting to boot from a VHD. The volume that hosts the VHD does not have enough free space to expand the VHD.

enter image description here

How can I boot that VHD from the C drive only? My goal is to create a system image of my OS and boot it from its VHD.

share|improve this question
    
Is the VHD marked as read-only? –  user3463 Jul 15 '12 at 21:51
    
@Randolph No, it is not marked as Read only –  Rocky Singh Jul 15 '12 at 21:53
    
The thing is I am not able to find creating fixed type VHD of my windows OS –  Rocky Singh Jul 15 '12 at 21:54

2 Answers 2

up vote 2 down vote accepted

Disk2VHD can capture a running Windows into a VHD, skipping all of the SysPrep/ImageX/WIM hassle. You can run it with command line options or just run it without options for a GUI.

share|improve this answer
    
It is saying "Error snapshotting volumes" when I try to create vhd of my c drive. –  Rocky Singh Jul 16 '12 at 7:58
    
There should be a more helpful error event in the event log. It might give some hints as to what the problem is. –  Patrick S. Jul 16 '12 at 12:05

STOP 0x00000136 occurs because the dynamically expanding VHD must be expanded to full size before it can be used for native boot, but the hard drive doesn't have enough space to expand the VHD to full size.

To create an image of your existing system that you can boot from, you will need to capture the image to a .wim file, then create a fixed size VHD and apply the .wim image to it.

share|improve this answer
    
For ImageX (which will create .wim file) I have to download this microsoft.com/en-us/download/details.aspx?id=5753 Correct? –  Rocky Singh Jul 15 '12 at 22:16
    
Yes, it's contained in the Windows AIK. –  Michael Hampton Jul 15 '12 at 22:17
    
Thanks for your effort. I will go for it. But I am still curious to know isn't there any way in Windows 7 GUI to create fixed type VHD of current windows? –  Rocky Singh Jul 15 '12 at 22:19
    
I ran it imagex /capture c: g:\capturedImage.wim "My Image" but I am getting "The process cannot access the file because it is being used by another process." –  Rocky Singh Jul 16 '12 at 9:06

Your Answer

 
discard

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.