CHKDSK cancels on virtual Windows 7 startup

It has been a while since I blogged last but I came across this issue today and decide to write about it. I wanted to install two instances of SQL Server to to test different mirroring and log shipping scenarios but my disk was too small.

So, I needed to resize the Windows 7 virtual client on a Linux desktop. However, the resize was failing due to inconsistencies on the Windows virtual drive. To resolve this & correct the errors, I had to run CHKDSK /F.

CHKDSK /F will only run during the Windows start up process. But almost immediately, each & every time, the CHKDSK process would get cancelled.

I did find a hotfix for this known issue on the Microsoft support pages at – https://support.microsoft.com/en-us/kb/975778

However, the patch stopped with the message – “The update is not applicable to your computer.”

Further bingle searches with “linux” &  are “virtual” added as search terms produced a second article that was more specific to my issue – http://mikebeach.org/2011/09/25/windows-chkdsk-at-boot-cancelled-by-phantom-keypress/

Basically linux is sending a keystroke to windows that interrupts the CHKDSK process.

Run CHKNTFS /t:0 before running the CHKDSK /F. This disables the option to interrupt the CHKDSK before it starts. You can always reset it afterwards.

All is good in my virtual windows world now!

Advertisements
Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: