Q. How can I mount a virtual hard disk (VHD) file in Windows 7 or Windows Server 2008 R2?

A. Diskpart and Disk Manager in Windows 7 and Windows 2008 R2 have native VHD support and can be used to create and mount vhd files. Start Diskpart and use the following commands to create and attach to a VHD:

create vdisk file=c:\test.vhd maximum=10000 type=expandable
select vdisk file=c:\test.vhd
attach vdisk

From Disk Manager, use the Create VHD and Attach VHD actions, shown here. You can also use the Detach VHD action to detach a VHD that is currently attached. Once a VHD is attached you can mount the partitions contained in it.



Related Reading

Videos:

Audio:


Check out hundreds more useful Q&As like this in John Savill's FAQ for Windows. Also, watch instructional videos made by John at ITTV.net.
Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish