We help IT Professionals succeed at work.

Chkdsk VHD

How do I run chkdsk on VHD's? Is it safe to do so?
Comment
Watch Question

Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Add the VHD to a virtual machine.

Running chkdsk could possibly cause more corruption, so I would make a copy first, before running any disc recovery procedure on the disk.

Author

Commented:
the VHD is a virtual machine. I dont understand what you need me to do.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Then run chkdsk in the VM, from within the OS!

I thought you just had a VHD on a cdrom!

Author

Commented:
I have a windows 2008 standard r2 server (its an actual sever not VM). It hosts hyper-V with 3 VMS. So you are saying just log into the VM and go to my computer>right click>go to properties>system tools>chkdisk?

I tried that and it wants to force unmount it
VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Commented:
open a command prompt and type chkdsk c: /f, ask it to restart at chkdsk at next boot.

Author

Commented:
ok so I will just copy the vhd to another location for safe keeping then run chkdsk. If it goes wrong then just move the copy back to the old location. Is that correct?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Thatbis correct, always good practice to have a backup before any modifications are made.

Author

Commented:
Thank you as always