Pages

Monday, February 27, 2012

How to mount a vhd as a drive

If you want to open a vhd file and the content then there is builtin option available from Windows 7 or Windows 2008r2

  1. Run command prompt as Administrator
  2. From command prompt type ‘Diskpart’ and press Enter
  3. Under diskpart type  select vdisk file="c:\winr2.vhd"
    image
    Note- in this example the vhd file name is winr2.vhd and in your case you have to choose correct file name and path
  4. type ‘attach vdisk’
    image
  5. Open windows explorer and see new drive is added