Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Rebuild an environment with Win7 native VHD boot file


07 Jan 2010   #1

Windows 7 Enterprise
 
 
Rebuild an environment with Win7 native VHD boot file

Hi,

I have installed Windows 7 on my laptop with native VHD boot technology.
When I open windows explorer I have :

c: which hosts windows system files
d: whic contains VHD file

If I save this VHD file and BCD store, is it possible to rebuild rapidly and simply my Windows environment with those two files in case of crash.

If yes, how to do this please ?

Regards.

My System SpecsSystem Spec
.

09 Feb 2014   #2

Windows 7 Home Premium 64bit
 
 

Good question
My System SpecsSystem Spec
09 Feb 2014   #3

Windows 7 Home Premium 64bit
 
 

My native VHD failed. I've recreated, re-installed, and am trying to work on a backup strategy.

Maybe because I RoboCopied the VHD it fails.
Maybe it's 'cause I'd tried to shrink the (native) virtual volume first... seems like native virtual hard drive files aren't as easy to manage as I'd hoped.
My System SpecsSystem Spec
.


09 Feb 2014   #4
Microsoft MVP

 

You'd need to be able to mount a VHD file from within the OS using something like Virtual Hard Disk - Create and Attach VHD .

An easier method is to Install OS from Hard Drive using a customized .wim if desired to Update 7 installation media - Windows 7 Help Forums. For further help on that I would ask in the latter thread since SIW2 knows this stuff best.
My System SpecsSystem Spec
09 Feb 2014   #5

Windows 7 Home Premium 64bit
 
 

I just robocopied my native VHD (from diskpart outside the native VM) and tried vhd attach (mentioned above), and it asks about disk initialisation. The copy is 99gig of unallocated space.

Can you desribe (definitively) how to copy (and therefore backup) a native vhd?

The (robo)copy was attemted (and completed successfully) outside the (native) VM

C:\>MD VHD2

C:\>ROBOCOPY VHD VHD2

-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows

-------------------------------------------------------------------------------

Started : Sun Feb 09 17:40:34 2014

Source : C:\VHD\
Dest : C:\VHD2\

Files : *.*

Options : *.* /COPYAT /R:1000000 /W:30

------------------------------------------------------------------------------

1 C:\VHD\
100% New File 22.2 g Windows 7.vhd

------------------------------------------------------------------------------

Total Copied Skipped Mismatch FAILED Extras
Dirs : 1 0 1 0 0 0
Files : 1 1 0 0 0 0
Bytes : 22.261 g 22.261 g 0 0 0 0
Times : 0:11:26 0:11:26 0:00:00 0:00:00


Speed : 34807159 Bytes/sec.
Speed : 1991.681 MegaBytes/min.

Ended : Sun Feb 09 17:52:01 2014



Can't attach (even readonly)
My System SpecsSystem Spec
10 Feb 2014   #6

Windows 7 Home Premium 64bit
 
 

(nVM = native Virtual Machine)
OK, good news (I think).

I deleted the robocopy, cause it said the volume was unallocated when attached (via diskmgmt), but maybe it was ok.

I thought it MIGHT be a signature collision thing (you can't mount your nVM copy while the nVM is in use).

I started a new install, again booting from windows media, to cmd via shift+f10, to diskpart, create and attach a new vdisk, exit diskpart and cmd, proceed with install (in new VHD, unallocated space). The new install is added as the first bootmenu entry.

I was then able to
  • boot into native VHD and copy another (new 7gig) VHD
  • boot into (new 7gig) VHD and copy native VHD
  • update bcd to add (copy of native) vhd, copy and set this new BCD to point to the copy of the native VHD
  • boot into the copy!

I'm now going to resize the VHD and ensure this works without a hitch. Then I have a VHD that was native and bootable, that died. the vhd has been recovered but, when attached, does not say 'boot' (active primary partition..) I'd love to recover this
My System SpecsSystem Spec
Reply

 Rebuild an environment with Win7 native VHD boot file




Thread Tools



Similar help and support threads for2: Rebuild an environment with Win7 native VHD boot file
Thread Forum
How to restore SystemImage taken in Win7 /Win8 dual boot environment Backup and Restore
Computer rebuild, reactivation of Win7, error 0xC004E003 Windows Updates & Activation
Solved New rebuild... cant boot or run any OS Hardware & Devices
Win7 crash/boot errors. File: \boot\memtest.exe Status: 0xc000000f BSOD Help and Support
Boot F9/F12 (recovery environment or boot menu) Backup and Restore
Win7 Recovery Environment Installation & Setup
XP Win 7 Dual Boot after rebuild of XP Installation & Setup

Our Sites

Site Links

About Us

Find Us

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

All times are GMT -5. The time now is 09:28 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

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 31 32 33