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

John Savill

February 11, 2009

1 Min Read
ITPro Today logo in a gray background | ITPro Today

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=expandableselect vdisk file=c:test.vhdattach 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.

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like