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

Open PowerShell as Administrator:

clean convert mbr create partition primary format fs=ntfs quick assign letter=Z exit After this, the VHD is functional but empty. Use data recovery software on the original corrupted VHD before cleaning. When Microsoft tools fail, specialized software can reconstruct VHD headers, repair block maps, and extract data.

Repair-VHD -Path "C:\Corrupted.vhd" -Force This command fixes minor footer and header inconsistencies. It does repair logical file system damage or data block corruption. Run it on a copy first. Method 3: Manual Fix Using DiskPart For VHDs that mount but show as "Unknown" or "Not Initialized" in Disk Management:

PowerShell includes a dedicated cmdlet:

Dismount-VHD "C:\Corrupted.vhd" Mount-VHD -Path "C:\Corrupted.vhd" -NoDriveLetter Then assign a drive letter via Disk Management and run CHKDSK again.

select disk X (where X is the VHD's disk number) online disk attributes disk clear readonly This erases data but may salvage the VHD container:

เราใช้คุกกี้เพื่อพัฒนาประสิทธิภาพ และประสบการณ์ที่ดีในการใช้เว็บไซต์ของคุณ คุณสามารถศึกษารายละเอียดได้ที่ นโยบายความเป็นส่วนตัว และสามารถจัดการความเป็นส่วนตัวเองได้ของคุณได้เองโดยคลิกที่ ตั้งค่า

ตั้งค่าความเป็นส่วนตัว

คุณสามารถเลือกการตั้งค่าคุกกี้โดยเปิด/ปิด คุกกี้ในแต่ละประเภทได้ตามความต้องการ ยกเว้น คุกกี้ที่จำเป็น

ยอมรับทั้งหมด
จัดการความเป็นส่วนตัว
  • เปิดใช้งานตลอด

บันทึกการตั้งค่า