HOWTO: Migrate a VHD From One Hard Drive or Partition to Another Without Losing Ability to Boot Into It RRS feed

  • Question

  • Hello!

    My VHD with Windows Developer Preview (WDP), which I use to natively boot the WDP, has grown large and I want to migrate it onto a new disk.

    Currently the VHD is located on a second partition of the primary SATA HDD device so the ARC name is as follows:

    The primary partition on this drive


    holds Windows Server 2008 R2 so that the logical drive storing the VHD file has a drive letter D.

    When I was installing the WDP, I created an empty VHD and stored it at:


    I used the following DISKPART syntax:

    DISKPART>create vdisk file=d:\vm\wdp\wdp.vhd type=expandablemaximum=60000

    Now I want to attach a new hard drive and place the wdp.vhd onto its primary parition


    How do I change references in the Windows Developer Preview boot manager so that I don't lose the ability to boot into the VHD?

    Important! I already had Windows Server 2008 R2 by the time I was installing WDP. To tell the truth, I don't know what partition does currently store the new BCD database? The VHD itself or the system partition with the Windows Server 2008 R2?

    Thank you.

    Friday, September 23, 2011 4:22 PM