Mirroring partition to VHD

Page 2 of 2 FirstFirst 12

  1. Posts : 16
    Windows 7 RC 64-bit/Windows Vista Ultimate 64-bit
    Thread Starter
       #11

    So should I be able to simply copy all files and add the .vhd to the bootloader? (And uh.. I dont think it was 7 that deleted Vista's bootmanager, I think I did that when I deleted the partition that was at the start of the drive to install 7)
      My Computer


  2. Posts : 1,009
    Windows 7 RC 7100 32bit/64bit
       #12

    ok, we need to be thorough on this one, to make it work.

    1. Copy the \bootmgr and \boot stuff from your Win7 Partition to your VHD image's root \
    2. start elevated CMD
    3. type :

    bcdedit /store X:\boot\bcd

    where X: is your VHD's drive letter.

    You will get a {bootmgr} listing, among others. You will also get another UUID in {} which will be your W7's location.

    4. Change the {bootmgr} path to match your VHD's one. I'd set it to C:, since booting with VHD only, it will be discovered as C: by default.

    bcdedit /store X:\boot\bcd /set {bootmgr} device partition=C:
    remember to change X: above with your VHD's drive letter again.

    5. Change the W7 listing on VHD to be C: as well:

    bcdedit /store X:\boot\bcd /set {your_windows_7_UUID} device partition=C:

    bcdedit /store X:\boot\bcd /set {your_windows_7_UUID} osdevice partition=C:



    That should make it work.
      My Computer


  3. Posts : 16
    Windows 7 RC 64-bit/Windows Vista Ultimate 64-bit
    Thread Starter
       #13

    So, just running that should let me choose 7(real partition) or Vista(vhd on 7's partition) on booting, or should I then add the .vhd as a boot item? And would I be able to use bitlocker and still expect the vhd to boot?

    Edit: The Windows 7 entry just shows up as {default} without any other UUID can I just use that and continue?
      My Computer


  4. Posts : 1,009
    Windows 7 RC 7100 32bit/64bit
       #14

    These are settings you need to make in the VHD's partition.

    To have Triple Boot with Vista, Windows 7 , and VHD, you need to make other settings.

    on your current BCDEDIT config, you need to add the VHD entry. While in Windows 7:

    BCDedit /copy {current} /d "VHD Boot"
    This will give you a new {UUID} that was just created.

    Bcdedit /set {new_UUID_resulted_from_above} device vhd=[C:]\yourvhdfile.vhd

    Bcdedit /set {new_UUID_resulted_from_above} osdevice vhd=[C:]\yourvhdfile.vhd
      My Computer


  5. Posts : 16
    Windows 7 RC 64-bit/Windows Vista Ultimate 64-bit
    Thread Starter
       #15

    Thanks very much, I've done all that you've said - I'm just waiting for the file copy to work (I did a CTRL+A with all files unhidden on the drive, and then just pasted into the mounted VHD file.)
      My Computer


  6. Posts : 16
    Windows 7 RC 64-bit/Windows Vista Ultimate 64-bit
    Thread Starter
       #16

    Uhm. There's been a slight problem, I left the copy going over-night, and after I copied the BCD store from the Seven drive, the OS thinks that it's Windows 7 and has corrupt system files, when actually it's Vista with the wrong BCD... Will Ihave to re-install Vista to the VHD to fix this? If so, how do I go about installing Vista to the VHD?
      My Computer


 
Page 2 of 2 FirstFirst 12

  Related Discussions
Our Sites
Site Links
About 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 18:21.
Find Us