How to create a VHD file from a folder?

Try to copy your folder to a USB stick for example, then use Disk2Vhd from Sysinternals.


This article explains how to do this.

in short for windows 7/2008: go to computer management, click disk management, right click disk management, click create VHD, enter location. Select the disk, right click, initialize with MBR, right click "unallocated" string, click new simple volume, etc, map the drive letter.

Then copy your files and folder to the drive letter, once done, right click the disk (on the left side) and select detach VHD.


In Windows 2012 R2/ Win 8.1 or 10 you can create empty VHD, mount it and copy data :

  • Start computer Management or open empty MMC console
  • Select Disk Management or Add Disk Management snap-in
  • Right click on Disk Management and choose Create VHD, enter location, size, type
  • Now you can Mount this VHD to your system, assign a drive letter
  • Copy data to your VHD and then detach VHD in Disk Management

that`s All !