Share via

How do I recover files from vhdx?

Anonymous
2023-05-10T11:34:42+00:00

I am new to the topic of virtual machines so please bare with me.

I was playing around with VMs when I accidentally deleted it. I am now left with a backup vhdx file.

I tried...

(1) importing the vhdx into a new VM, but it would not boot properly

(2) mounting it, but it is giving me the "The disk image is not initialized..." error message

(3) attaching it via Disk Management, but nothing shows up

Did I make a mistake during any of the above fixes? Are there other ways I can recover my files?

Windows for home | Windows 11 | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2023-05-11T07:18:22+00:00

    Thank you for your time.

    I tried following the article you provided, and manually convert the vhdx to vhd. However, I was not given the option to "compact" the vhdx.

    I have also tried using EaseUS but it gave me a huge list of random items...

    ... which, I am sure, do not belong to me as some are bizarrely old.

    Disk management shows that the vhdx is "healthy" which leads me to think that the file is not corrupted, but rather, for some silly reason, it has been made inaccessible.

    Was this answer helpful?

    3 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2023-05-10T12:21:02+00:00

    Hi dear, My name is Erfan and I'm really sorry that you're experiencing this issue but I'll be more than happy to help you!

    It's possible that there is an issue with the vhdx file itself that is preventing you from recovering your files using the methods you have tried so far. However, there are other options you can try.

    <Removed>

    • Convert the VHDX file to VHD: If the vhdx file is not working, you can try converting it to a VHD file format using the Hyper-V Manager console. Once converted, you can attach the VHD to a virtual machine and attempt to recover your files.
    • Use PowerShell to Repair the VHDX File: If you have access to PowerShell, you can try to repair the vhdx file. First, run the command "Get-VHD" to get information about the vhdx file. Then, run the command "Repair-VHD" to attempt to repair any issues with the file.

    <Removed>

    Before attempting any of these methods, it's important to create a backup of the vhdx file to avoid data loss.

    <Removed>

    I hope this information could be useful for you! Please let me know how it goes and please do not hesitate to let me know if you need any further assistance.

    Disclaimer: Please note that this is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2023-05-11T09:19:15+00:00

    I'm sorry that the issue still persists. If you are unable to compact the VHDX file during the conversion process, it may be because the file has already been compacted or is not thick-provisioned. You can still convert it using PowerShell. EaseUS may be showing you files from previously deleted data on the drive or from unallocated space, so filter the results to focus on recovering only the files you need.

    If the disk management tool shows the VHDX file as "healthy," it's possible that the file system is corrupt, so try running "chkdsk" in the command prompt to repair any errors.

    1. Open the command prompt as an administrator.
    2. Type "chkdsk X: /f" (replace X with the drive letter assigned to the VHDX file) and press Enter.
    3. If prompted to schedule a scan at the next system restart, type "Y" and press Enter.
    4. Restart your computer and let the scan complete.

    If none of these methods work, you can try using a VHDX recovery tool.

    I hope this helps.

    Was this answer helpful?

    0 comments No comments