Discussion Locked

How to repair VHD file data ?

0 helpful
14 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
While accessing my virtual machine I got VHD file corruption error. Can anyone tell how to recover my valuable data from vhd file?

14 replies

by dannieljones1994

Hello, if you VHD file is corrupted then i prefer you to first go with the help of manual method here is the link
https://gallery.technet.microsoft.com/repair-vhd-file-hyper-v-f00b3b50

In case if you are unable to repair VHD file with the help of manual method and still wants to access the VHD file items. Then you can prefer Hyper-V recovery software to recover the data from corrupted and inacessible virtual hard disk files in just few clicks.
Here is the link https://www.systoolsgroup.com/hyper-v-recovery.html

by vitsusa

Following steps that help to overcome the problem:

Step 1: First, you need to mount the VHD file in the parent partition, and then, run a script CHKDSK to repair it.
Step 2: After this, check the integrity of VHD by using Hyper-V virtual machine
Step 3: Now, to Add the .vhd file to the IDE controller and click on the Inspect option
Step 4: You can merge any VHD and AVHD data files. You need to verify if it can be opened by Windows 7, server 2008 (for Virtual machine)
Step 5: In last, you can download the free Microsoft vhd tool, which includes a “repair” option that is designed to undo the expanding mode on a base VHD when different VHDs are available.

by dbcomp

Attaching a VHD file directly in a host operating system requires Windows 7 or later. Attach the VHD image to the system from the Windows Disk Management utility.
You can check this process

by mack9555

Want to recover data from damaged vhd file. Then follow the below-mentioned steps:
1. Download VHD Data Recovery Software ( http://www.softwarepro.org/recovery/hyper-v/ )
2. Install on your windows os machine
3. Browse .vhd file using software window
4. Preview complete data and apply selection
5. Save data at any location easily.

by alice samanta

What kind of corruption error you are receiving, can you elaborate it so that your highly corrupted VHD file data can be fixed effectively

by kamalchetri506

There's no way to repair VHD file or its data. All you can do is try to recover the data which is left in the VHD file. And that's only possible with a 3rd party recovery tool. Although most of the vendors in the online marketplace provide the free demo version, you have to purchase the software for saving the recovered data. So if you're looking for a free solution, you should try the VHD tool provided by Microsoft. It can fix corrupt VHD file if there's minor corruption.

Also, you can try a couple of DIY tricks:

1. Run a script on Windows PowerShell to mount the VHD file in the root folder, and then you can run a CHKDSK on it.

2. Create a new Virtual Machine, then add the corrupt Virtual disk file to it. Now compact it.

Thanks.

by shivamchandra

Hi andrewmanson1994 ,

VHD files are more vulnerable to corruption due to hard drive failure, virus attack, abrupt system shutdown, networking fault, etc. However, there are various manual ways that can easily repair corrupt VHD file without losing its data integrity. The best method is to run Windows PowerShell command.
Mount VHD File – $VHDName = “V:\serverx.vhd“
Get the MSVM_ImageManagementService
$VHDService = get-wmiobject -class “Msvm_ImageManagementService” -namespace “root\virtualization” -computername “.”
Mount VHD file here:
$Result = $VHDService.Mount($VHDName)
Now run CHKDSK command on this VHD File.

Hope it will help you to repair your corrupt VHD file.

Thanks

by guptamahima40

There are various reasons which can cause corruption in VHD files and make them inaccessible. But there are a couple of manual tricks and automated tools available by which you can try here to repair VHD file.
• You can run a script on Windows PowerShell that will help you mount the VHD file in the root folder, and then you can run a CHKDSK on it.
• You can create a new Virtual Machine. Now add the corrupt Virtual disk file to it and then compact it.
• You can download free utility to recover corrupt VHD file from here: https://download.cnet.com/SysInfoTools-VHD-Recovery/3000-2248_4-76476794.html
• Microsoft provides VHD tool that can fix corrupt VHD file and recover data from it, you have to download the executable file and run the command VhdTool.exe /repair [/quiet]

by alexbarnes590

Use Hyper-V VHD recovery tool to repair corrupt VHD file and rescue data easily. Its features are easy to understand; due to this the VHD.

This discussion is closed to new replies.