VHD and VHDX files are recognized as two major virtual disk image file formats, which are used to create a virtual environment of a Windows system. Similar to a physical hard disk drive, a VHD/VHDX file is vulnerable to corruption. As a consequence, the entire virtual machine file data becomes inaccessible. Therefore, knowing how to repair VHDX and recover data from corrupted VHDX files begins the main topic of this page.
The issue of VHD corruption with data loss can be a nightmare for many users, so it's important to know how to get corrupted VHD files back in Windows 10 or other Windows systems. Many of you are told to run VHD data recovery tools inside the virtual machine when data is in danger. But are those data files recoverable after the VHDX gets corrupted? We need to observe a little how the virtual hard disk is structured. Read from the Virtual Hard Disk specification (available here) and you can see that virtual hard disks have the following structure:
It is necessary for users to choose a professional data recovery tool to bring back their corrupted VHD files. Here we recommend Deep Data Recovery. It works effectively to help you restore all files from VHD or VHDX disk partition with simple clicks. Check the brilliant features of this data recovery software first.
Download and install this VHD repair tool on your VM and apply the steps to restore your lost VHD files:
Step 1. Run Deep Data Recovery. Select file types and click "Next" to start.
Step 2. Choose the drive where you lost files and start scanning. This software allows you to recover lost data from all devices, including HDD, SSD, USB drive, SD card, pen drive, camera, etc.
Step 3. Browse the full scan results. You can choose the file type you need by clicking on the file type filter. Qiling data recovery software supports 1000+ file types like photos, videos, documents, emails, audio files, and many more.
Step 4. Select the files you want to preview. Click "Recover" and set a storage location to save the recovered data.
After getting all data out of the unreadable virtual disk, you can now follow the VHDX repair part to repair and fix the corrupted VHD or VHDX:
If bad sectors exist on your virtual disk, you may not be able to access all saved data or important files on the drive. CHKDSK command will effectively solve this issue and repair all bad sectors on VHD for you:
Caution: As the CHKDSK command will cause a permanent data loss error, so make sure that you recover all data from the VHD or VHDX drive with reliable data recovery software first.
By doing so, the CHKDSK command will automatically find and repair all existing errors, bad sectors, and even corrupted system files on your VHD disk.
Use CHKDSK Alternative to Fix Problematic Device
Download Qiling CleanGenius and install it on your computer. Let's start checking and refixing file system error on your device now.
Step 1. Click "File Showing" to enter the next step.
Step 2. Choose the target device and tick the box of "Check and fix file system error". Click "Execute" to start fixing the problematic device.
Step 3. When the fixing process completes, click "here" to open and use your device.
If the VHD disk is still not working, you can directly format the disk into the NTFS file system to make it work again:
The last way that you can try is to delete and create a new partition on your VHD disk.
After this, you'll get a brand new VHD partition and you can use it to save data again.
Still cannot solve the problem? If the provided methods didn't work, you may need a manual fix. Try to email the Qiling Support team at support@idiskhome.com You're not guaranteed to get a 100% working VHD/VHDX repair from there, but it seems the last resort when all the online workarounds cannot help.
1. How to recover the deleted VHD file?
Run Qiling VHD recovery Software on your PC. Choose the partition drive where your VHD file was created, and click the Scan button. After a while, depending on how large the VHD file is, the software will automatically display the scanning results for you. Locate the VHD file you're looking for and click the Recover button. You're then able to recover the deleted VHD file successfully.
2. Is it possible to recover shift deleted VHD data?
Using the Shift and Del/Delete keys to delete a file or bulk delete some files are said to be a permanent deletion. In this case, only the third-party data recovery software is able to scan and recover permanently deleted files from the VHD files.