I could not resize a hard disk of my virtual machine. The error appeared:
Unable to resize this hard disk. Its file system might be corrupted.
Windows filesystem is corrupted
NOTE: This is strongly recommended to create a backup of virtual machine.
Check Windows hard disk for errors as described here: How to check Windows hard disk for errors
Go to Start -> at the the search bar type 'cmd' and run Command Prompt ( right-click on 'cmd' -> Run as administrator)
Execute the command:
sfc /scannow (hit Return/Enter)
Wait till the end of this operation. If you will see a message that some files cannot be restored, please follow this article from 4th step: How to repair Windows if system files are corrupted
Shut down virtual machine and try to resize it: How to give more hard disk space to a Windows virtual machine.
- After a successful resize if you will see that in Windows Explorer size is the same - please follow this article: