How To Repair Vhd | File

chkdsk E: /f /r /x CHKDSK repairs file system corruption inside the VHD, not the VHD container itself. This works if the VHD's logical sector addressing is intact.

Open PowerShell as Administrator:

After mounting, the VHD appears as a drive letter (e.g., E:). Run: how to repair vhd file

PowerShell includes a dedicated cmdlet:

If read-only succeeds, dismount and remount with write access: chkdsk E: /f /r /x CHKDSK repairs file

Mount-VHD -Path "C:\Corrupted.vhd" -ReadOnly This prevents further writes to a damaged structure. how to repair vhd file