Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

chkdsk wont run ...

Status
Not open for further replies.

Bob2

Programmer
Jul 3, 2000
228
SE
Hi


I try to run chkdsk the next time the pc reboots but when it does, nothing happends. chkdsk never starts. And when Ity to run diskeeper it says chkdsk i set to run next reboot. But as I said it never starts....


What should I do?


Regards

M
 
Things to check (Kelly Theriot):

Go to Start/Run/CMD and type in: fsutil dirty query c:
(Modify the drive letter accordingly)

If it comes back as dirty, the dirtybit hasn't cleared. For more information go to Start/Run/CMD and type in: CHKNTFS /?

Optional: From a command prompt type chkntfs /D and then reboot, a chkdsk should then run if shceduled, but not on the next boot.

Go to Start/Run/Regedit and navigate to this key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

Highlight the Winlogon file.

In the list look for "SFCScan", this should be set to (0) if it is set to (1) the scan will happen at every boot.

Go to Start/Run/Regedit and navigate to this key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager

Look for the REG_MULTI_SZ value with the following name: BootExecute. This value contains commands that will be executed at startup. The default value is: autocheck autochk *

After scheduling one or more chkdsks, the entry will contain one or more autochk lines. Delete each of these lines and put the default one in place.

If you always want a check to be performed at startup, change the value to: autocheck autochk /f *

If you don't want any checks to be performed, delete all autocheck entries.

Modify as needed. The path to the chkdsk utility may be wrong:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\cleanuppath
Registry entry should read: %SystemRoot%\system32\cleanmgr.exe /D %c



 
Hi

I ran fsutil dirty query c: and it came back dirty, but chkdsk didn't start even if I ran chkntfs /D. And the path to chkdsk was right...

I will try to install recovery console and run chkdsk from it...

I'll let you know how it went.

/M
 
If the dirty bit is set, the issue should be that this registry line is not correct:

Go to Start/Run/Regedit and navigate to this key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager

Look for the REG_MULTI_SZ value with the following name: BootExecute. This value contains commands that will be executed at startup. The default value is: autocheck autochk *
 
Hi


I installed recovery console and then ran chkdsk c:
It found errors, so I ran chkdsk c: /r


But what does it all mean, what does it mean that drive c: is dirty?


Regards

M
 
Hmm

Can you guys tell me if this behaiviour is correct..

I ran chkdsk c: /r in recover console mode, it found errors and repaired them. When I then try to run chkdsk c: /f in windows it tell me that a chkdsk has been scheduled but when I reboot, chkdsk doesn't start. Does it anly start if it find errors or what?

Regards

M
 
Normally, chkdsk should start on boot:

. if the dirty bit is set by the OS in its prior use;
. or, if you scheduled a chkdsk

If you schedule a chkdsk then the following key should appear as modified:

Go to Start/Run/Regedit and navigate to this key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager

Look for the REG_MULTI_SZ value with the following name: BootExecute. This value contains commands that will be executed at startup. The default value is: autocheck autochk *

After scheduling one or more chkdsks, the entry will contain one or more autochk lines.

What does yours show after scheduling a chkdsk?
 
Before I schedule anything it looks like this..

autocheck autochk /p \??\C:
autocheck autochk *

And after I have scheduled a chkdsk it still looks the same??!!


/M
 
By the way, I have no entry in the registry called "SFCScan" under..

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

Could that be the problem?


Regards

M
 
I found this registry line on


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"SFCScan"=dword:0000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager]
"AutoChkTimeOut"=dword:0000000a



Is this what I should add, have anyone tryed it?


Regards

M
 
Those values specify a autocheck at every boot, with a timer to hit any key to abort of 10.

I would do the registry merge because you should have some value in that registry key.
 
Hi


Does anyone why this have occured, should the [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"SFCScan"=dword:0000001

be there by default on a new win xp pr installation, and if so why am I missing it?



Regards


M
 
Open a cmd prompt
type in
SFC /REVERT

Return SCF /SCANNOW to default settings.
( System File Checker )

Restart computer and check the presence of the key after.
It should be gone .



 
This is just weird...

The key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager

BootExecute

says autocheck autochk /p \??\C:
autocheck autochk *

And if I understand it correct it mean that the chkdsk has been scheduled the next reboot. But it never does...


/M



 
Try disabling the SFC first .(SFC /REVERT )
Maybe they work against each other .

autocheck autochk /p \??\C:
implies a chkdsk /f c: is ordered at next boot.
 
I now ran the SFC /REVERT and rebooted. After that I checked the registry. And there where only one entry (autocheck autochk *). Then I scheduled a chkdsk and once more checked the registry. It now had two entries

autocheck autochk /p \??\C:
autocheck autochk *


And then I rebooted, but no chkdsk ran, and when I checked the registry, the two entries where still there!!??


This drives me nuts.
 
Do a
CHKDSK C: /V
in a cmd window and see what it says.
Maybe another go with the /I /C switches after that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top