Ready to Start Your Career?

Free Tool to Open VHD File in Windows

Adom Click's profile image

By: Adom Click

February 13, 2018

Virtual Hard Disk (VHD) file is a file that acts as a virtual hard drive and can contain everything on a hard disk, such as a file system, files, folders and more. While going through this article you will come to know both the manual and the alternative method to Repair VHD File. 

Virtual hard disk (VHD) is a disk image file format that is used for storing the complete contents of a hard drive. VHD files is primarily designed in such a way that it can be used by virtual machines. Today, Virtualization has become an incredibly powerful and flexible way to store your valuable information on virtual environment.

Virtual hard disks are found in two different fixed-size and dynamically expanding. Both types have a great size value that identifieswhich size of the disk will appear on the virtual machines. Nevertheless, fixed-size VHDs will automatically take up the quantified amount of physical disk space on the host computer's file system, whereas dynamically expanding disks will allocate space only as needed.

 https://www.arysontechnologies.com/vhd-recovery.html

How to repair VHD file (virtual disk)?

These days with the growth of technology you will find various ways to repair your VHD file manually.

Trick#1 to Repair VHD File

In order to repair VHD file, this would be the very first step. In this method you may run a script on Windows PowerShellso that this will help you to mount the VHD file in the root folder, and then you can run a CHKDSK on it. Run the commands given below (kindly change your details as per requirement):

#First we choose what VHD we want mounted

$VHDName = "V:serverx.vhd"

#Get the MSVM_ImageManagementService

$VHDService = get-wmiobject -class "Msvm_ImageManagementService" -namespace "rootvirtualization" -computername "."

#Now we mount the VHD

$Result = $VHDService.Mount($VHDName)

You can now run a CHKDSK on this VHD.

Trick#2 to Repair VHD File 

This is another way to repair VHD file. In this method you need to create a new Virtual Machine, then add the corrupt Virtual disk file to it. Now compact it. If you don’t know how to do this, follow the steps given below:

Step 1: Create new Virtual Server, and add a new hard disk.

Step 2: Now click on the settings, then select the hard disk that you have made earlier. Then browse to the VHD file that will not load.

Step 3: Click the Virtual Disk Wizard, and select the compact option. Make sure that you have selected the option to convert it to a fixed-size virtual hard disk.

Note: suppose If the actual size of your VHD is 50 GB and you are using only 10 GB of data, then the new VHD file will only be compacted to 10 GB.

Step 4: Thus you can save this VHD file with a new name which is (optional).

Once you effectively compact the VHD file, then copy the VHD file back to the original server and try to mount it.

Trick#3 to Repair VHD File

You can also use VHD Tool provided by Microsoft. This method will provide you an option of restoration of your VHD file. Click on the Download button of the executable file, and run it as an administrator on your system with a command shown below:

VhdTool.exe /repair <BaseVhdFileName><FirstSnapshotAVhdFileName> [/quiet]

 

 

Alternative way to Repair VHD File

If you feel the above mentioned manual methods are not working according to you then there are many software vendors available in the market providing you best and effective recovery tools. VHD Recovery tool , is most effective software that fully recover any kind of corruption/ damage in an efficient way. The software has amazing user interface which makes this products very friendly for users and it recovers your maximum possible data in very quick time.

Schedule Demo