What is a Virtual Hard Disk(VHD)

Virtual Hard Disk (or VHD) is a virtual hard disk image that stores data in a single file. This type of file is created and used on by Microsoft virtualisation solutions such as Windows Virtual PC. This format was adopted by other virtualization solutions like VirtualBox, the product of Sun Microsystems, or VMware ESX Serve.


How to Mount a VHD Image using Disk Management

First of all, open the Disk Management utility.

Disk Management


In the left-side panel, right click on Disk Management and choose the 'Attach VHD' option.

Disk Management


You can find the 'Attach VHD' option also in the Action menu (see capture below).

Disk Management


Click on Browse.

Disk Management

You now have to select the VHD file. When found, select it and press the Open button.

Disk Management


You are now back to the 'Attach Virtual Hard Disk' window. My advice here is to let the 'Read-only' box unchecked, so you can modify the files from the image. If this box is checked you will only be able to copy the files. Click on OK to begin the mounting process.

Disk Management


You will see that the VHD file has been mounted as separate disk drive and it has its own drive letter, in this case 'K:'.

Disk Management


Open Windows Explorer and click on the new partition to open it.

Disk Management


Now you can easily manipulate the desired files from the attached system image.

How to Unmount a VHD Image from Disk Management

After you are done working with the mounted virtual image, it's time to see how to unmount it. Open Disc Management, right click on the attached VHD (in this case 'K:') and choose the 'Detach VHD' option.

Disk Management


Click on the OK button to finish.

NOTE: In the 'Detach Virtual Hard Disk' window you can find the 'Delete the virtual hard disk file after removing the disk' option. This allows you to erase the selected image. I strongly advice to leave this box unchecked so you let the VHD image intact. Check it only if you really want to delete this image.

Disk Management


You will now see that the partition has been removed from the Disk Management window.

Disk Management

Useful Usage Scenarios

There are times when you need a single file or folder from a VHD file or System Image created by Windows Backup. Using the Disk Management utility you can easily mount the VHD file and copy the files and folders you need.

Also, this allows you to add folders and files to any image. Depending on the usage scenario - this feature can be useful.

Conclusion

As you could see from this tutorial, it's very easy to use Disk Management to mount VHD files and work with them. If you have any other tips to share related to this tool, don't hesitate to leave a comment.

blog comments powered by Disqus
Subscribe To Guide 29

Enter your email address:

Delivered by FeedBurner

Join On Social Networks
  • Subscribe to RSS feed
  • Become Fan On FB
  • Follow Updates on Twitter
  • Be A Friend on Digg
  • Follow On SU

Become A Fan

Tags