Read time 8 minutes

A virtual hard disk alleviates the data storage capability of a computer where it does not remain limited to the physical hard disk. The virtual hard disk is not fixed in your computer, but it is connected logically where the hard disk is situated in some external data center. There are two types of virtual hard disk files:

  • VHD (Virtual Hard Disk): A VHD file represents a Virtual Hard Disk Drive. It can accommodate everything that is present on a physical HDD – disk partitions, file systems, data files, and folders. It is used as the hard disk of a virtual machine.
  • VHDX (Hyper-V Virtual Hard Disk): A VHDX format represents a Hyper-V Virtual Hard Disk Drive. It has a much larger storage capacity i.e. 64 TB as compared to VHD file which has 2 TB storage limitation. It can protect your data from corruption, and extreme power failures.
Instant Solution

Not able to access VHD/VHDX file data? Try Kernel for VHD Recovery to recover complete data from corrupt VHD/VHDX files.

What all kinds of Virtual Disks are there?

There are basically two types of VHDs and they are:

  1. Fixed-Size: In this type of VHD the space required for the disk is decided and applied while creating this type of VHD. For example if it was decided that virtual disk is going to be 20 GB it will be created with 20 GB size, and will take a space of 20 GB on the data store, whether you use it or not.
  2. Dynamically expanding VHDs: In this type of VHD the space required for the disk is decided but not applied while creating it. For example, if you decide to make a 20 GB virtual disk, then it will be of 20 GB size but only take whatever space you are using. If you are using 16 GB data to store in it, it will be 16 GB.
Different methods to mount VHD and VHDX File
Method 1: Using Windows Explorer

It is the simplest way to mount or unmount a VHD or VHDX file. Follow the below mentioned simple steps to Mount and Unmount (Eject):

Step 1: To mount VHD/VHDX file, right-click on the VHD/VHDX file and select Mount.

right-click on the VHD/VHDX file and select Mount

The VHD disk will be added to This PC as an additional drive. You can now copy, move or access the required data from the drive. It behaves like general physical storage now.

Step 2: To unmount VHD/VHDX file, go to the New Volume/drive, right-click and select Eject to detach or unmount.

select Eject to detach or unmount

Please Note: The method can be performed without any technical expertise by any novice user who has a VHD file and wants to restore data from it.

Method 2: Using Disk Management

Another way to mount or unmount VHD or VHDX file is through Disk Management. Follow the simple steps to mount and unmount:

Step 1: To mount VHD, right-click on This PC >> Manage >>Disk Management and click Attach VHD.

 right-click on This PC >> Manage >>Disk Management and click Attach VHD” class=”aligncenter size-full wp-image-4390 with-shadow” width=”436″ height=”376″></p>
<p>OR, click Windows key and type diskmgmt.msc in the search box to open Disk Management. Expand Action menu and click Attach VHD.</p>
<p><img decoding=

Note: You can press Win+X keys, and choose Disk Management as shown below.

choose Disk Management as shown below

Step 2: To mount VHD, click Attach VHD and click Browse to load the VHD or VHDX file that is to be mounted. Click OK.

Click Attach VHD and click Browse to load the VHD or VHDX file

Step 3: To unmount VHD/VHDX file, right-click on the newly added volume and click Detach VHD.

right-click on the newly added volume and click Detach VHD

Method 3: Using Command Prompt

This method can be used in Windows 10/8/7 to mount or unmount VHD/VHDX file.

Step 1: Click Win+X, and click Command Prompt (Admin) mode.

 click Command Prompt (Admin) mode

Step 2: In cmd, type diskpart and hit the Enter button. Type the following command to select the VHD/VHDX file by specifying its location.

Select vdisk file = “location of VHD file”

Then, hit Enter.

  • To mount the VHD/VHDX file, type attach vdisk and hit Enter.To mount the VHD/VHDX file, type attach vdisk and hit Enter
  • To unmount a VHD/VHDX file, type detach vdisk and hit Enter.To unmount a VHD/VHDX file, type detach vdisk and hit Enter
Method 4: Using PowerShell

With the help of Windows PowerShell cmdlet, you can mount and unmount VHD/VHDX file in both Windows 10/8/7 and Windows Server 2016/2012/2008.

Step 1: Launch PowerShell cmdlet as Administrator.

Launch PowerShell cmdlet as Administrator

Step 2: Type the following commands to mount/attach the VHD/VHDX files:

Mount-DiskImage -ImagePath “location of VHD file”

Mount-DiskImage -ImagePath location of VHD file

Step 3: You can unmount the virtual hard disk with the help of this simple command:

Dismount-DiskImage -ImagePath “location of VHD file”

Dismount-DiskImage -ImagePath location of VHD file

Please Note: For Hyper-V, you might get an error message “Mount VHD is not recognized as the name of a cmdlet”. Then, you will have to add “Hyper-V Module for Windows PowerShell” to your server.

Now you can easily and efficiently copy the required data from VHD file to any disk drive normally and then detach the VHD drive when you are done.

Recover VHD/VHDX Data Easily – Kernel for VHD Recovery

It is possible that you find some of your VHD files corrupted or damaged. There are many reasons behind a corrupted and unreadable VHD/VHDX file. In that case, simply use this trusted software – Kernel for VHD Recovery, which works professionally and efficiently to recover complete data from a corrupt VHD file.

Select VHD/VHDX file

Summary:

There are different ways to mount or unmount VHD/VHD files – using PowerShell, Command Prompt, Windows Explorer, and Disk Management. But if your VHD/VHDX files are corrupt, you should try third-party tools like Kernel for VHD Recovery tool to recover VHDX file and VHD file.

Video – Different Ways to Mount and Unmount VHD/VHDX Files

Video

Kernel for VHD Recovery