
Quote: Originally Posted by
gencode
Id like to format my primary hd and back up my new vhd to my NAS drive, then put it back when im all done.
I know I can copy it back, but how to I attach it to the boot menu? so it can be booted after I reformat my primary drive or if I were to upgrade to a new larger drive.
You need to install the boot manager. Because you do not have any operating system on your clean hard disk you can not use "system repair".
So: Install a "dummy" operating system:
Format your hard disk with NTFS
Boot from Windows 7 DVD and install Windows 7 to VHD file. See
here.
After this you have on your hard disk:
- The VHD file
- Boot manager as file "bootmgr"
- Boot settings in folder c:\boot\bcd
- A file "pagefile.sys"
Boot this "dummy" installation.
You now should see two hard disks:
- C: = dummy VHD file
- D: = real hard disk
Copy your backup of your VHD file from NAS drive to D:
Then use "bcdedit" to add boot menu entry of your (backup) VHD file. See
here.
Boot to your (backup) VHD.
If it works all fine then you can delete boot menu entry of your "dummy" installation via "bcdedit" and also delete dummy VHD file.