Sysinternals Homepage
Forum Home Forum Home > Windows Discussions > Troubleshooting
  New Posts New Posts RSS Feed: Unable to run CHKDSK
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Unable to run CHKDSK

 Post Reply Post Reply Page  123 12>
Author
Message
  Topic Search Topic Search  Topic Options Topic Options
mansfield View Drop Down
Newbie
Newbie
Avatar

Joined: 23 January 2006
Location: United Kingdom
Online Status: Offline
Posts: 4
  Quote mansfield Quote  Post ReplyReply Direct Link To This Post Topic: Unable to run CHKDSK
    Posted: 23 January 2006 at 5:03pm

 Could anyone help in understanding why chkdsk has suddenly stopped working on my laptop running xp home sp2., NTFS. It has run alongside page defrag for ages okay but when last set :on boot up gave message "cannot open volume for direct access. Have disabled virus protection and diskeeper and any other programme that could be interferring with chkdsk but still get same message. Page defrag starts and runs as normal after chkdsk closes.

  command line: "fsutil dirty query c" says that volume is not dirty.

In registry; BootExecute reads 

autocheck autochk/r\??\C:autocheck autochk *pgdfgsvc C1

chkdsk attempts to run at every boot and then windows loads normally.

Any suggestions on stopping it running at every boot and if possible a repair without new install of xp.

ps I am not running Zone Alarm but Norton 2005 anti virus/ firewall ,PC Doctor, Ad aware SE ,  O&O Diskeeper defrag none of which are new installs all report system clean of any infections

Thanks

life is just a bowl of AllBran
Back to Top
Karlchen View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 June 2005
Location: Germany
Online Status: Offline
Posts: 5121
  Quote Karlchen Quote  Post ReplyReply Direct Link To This Post Posted: 24 January 2006 at 4:37am
Hi, mansfield.

Your BootExecute key looks strange to me, syntactically incorrect I assume.

Anyway, you may try these steps to get rid of Pagedefrag on every boot and to get normal chkdsk functionality back:
  • log in as administrator

  • launch pagedfrg.exe and inside the GUI select Don't defragment, then click on OK.

  • launch regedit and locate HKLM\System\CurrentControlSet\Control\Session Manager.

  • Change the value of the key BootExecute - value type is REG_MULTI_SZ - to read "autocheck autochk *" (Don't include the double quotes, but do include the spaces.)

  • Quit regedit and reboot your machine. - During startup no complaints about chkdsk should appear.

  • When the system is back up, login as administrator again and launch cmd.exe.
    Type in "fsutil dirty set C:" (without the quotes).
    Close cmd.exe and reboot your system.

  • This time during the boot phase you should see chkdsk come up and do a chkdsk on drive C:
    If it does then you problem is solved.

Kindly let us know the results.

CU,
Karl
Back to Top
mansfield View Drop Down
Newbie
Newbie
Avatar

Joined: 23 January 2006
Location: United Kingdom
Online Status: Offline
Posts: 4
  Quote mansfield Quote  Post ReplyReply Direct Link To This Post Posted: 24 January 2006 at 5:18pm

Thanks for your response Karl,

Followed everything you said pagedfrag and chkdsk were successfully removed with the machine booting up without the "cannot open volume" message.

Then entered "fsutil dirty set C:" command and message recieved that it was now marked dirty. Re-booted and machine loaded perhaps a little slower but with no sign of chkdsk kicking in. Tried re booting a couple of times but nothing is happening with chkdsk

 Am I right in thinking that a command "fsutil clean set C:" will remove the dirty flag if needed.

Karl if I cannot get chkdsk to operate in your opinion would I have any luck installing a 3rd party repair tool like that in Norton System Works or do you consider the problem would transfer to that programme.

Ps Norton Ghost on machine could this have corrupted anything although not a new install and have tried disabling.

Looking forward to your response

Neil   

 

 

life is just a bowl of AllBran
Back to Top
mansfield View Drop Down
Newbie
Newbie
Avatar

Joined: 23 January 2006
Location: United Kingdom
Online Status: Offline
Posts: 4
  Quote mansfield Quote  Post ReplyReply Direct Link To This Post Posted: 24 January 2006 at 5:45pm

Just found out that with the disc marked as dirty that diskeeper defrag is now giving a message that  it cannot run because disc is marked dirty and that chkdsk is going to run at next boot which it does not so at present I am without a defrag tool as well. Need advice to mark disc as clean again cannot find "fsutil clean set C: on net as a command

thanks in anticipation

Neil      

life is just a bowl of AllBran
Back to Top
Karlchen View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 June 2005
Location: Germany
Online Status: Offline
Posts: 5121
  Quote Karlchen Quote  Post ReplyReply Direct Link To This Post Posted: 25 January 2006 at 5:05am
Hello, Neil.

Oops, never experienced the problem that chkdsk would not do its job during the next boot procedure whenever I had executed "fsutil dirty set c:".

You are quite sure there is no screen during the boot phase telling you that one of the drives needs checking, that this check will start in 10 seconds unless you press any key to skip the test?
(So, no, don't press any key, just let the countdown pass by and chkdsk will start.)
No, you are quite sure?! This thing cannot be overlooked by accident.

When chkdsk executes it resets the dirty bit automatically.
But as it does not start on your system, I wonder what the problem is and how to fix it.

I can confirm that there is no "fsutil clean set c:". (Just checked it using "fsutil /?".)

Are you quite sure that your HKLM\System\CurrentControlSet\Control\Session Manager\ BootExecute exists, has got the type REG_MULTI_SZ and has got the value "autocheck autochk *"?

You may use regedit to check or autoruns.

Could you export the key and post it here, please?

Hm, I guess maybe some Autocheck option may need investigation / modification.
Will consult WinXP internal help and see if I can find anything useful.

[Added]
Help queried, my suggested procedure is this:
  • Make sure the required files are all located in %windir%\system32, please, just to be sure that this is not the cause (I do not think it is.):
    C:\WINDOWS\system32
    
    C>dir autochk.exe;fsutil.exe;chkntfs.exe;chkdsk.exe

    Volume in drive C is laufw_c Serial number is DC52:B8F1
    Directory of C:\WINDOWS\system32\autochk.exe;fsutil.exe;chkntfs.exe;chkds k.exe

    29.08.2002 13:00.........603.136 autochk.exe
    29.08.2002 13:00..........11.776 chkdsk.exe
    29.08.2002 13:00..........11.264 chkntfs.exe
    29.08.2002 13:00..........59.904 fsutil.exe
            686.080 bytes in 4 files and 0 dirs    692.224 bytes allocated

  • Make sure that your HKLM\System\CurrentControlSet\Control\Session Manager\ BootExecute exists, has got the type REG_MULTI_SZ and has got the value "autocheck autochk *"

  • Inside a command prompt launch these commands please:
    chkntfs /d ....... (reset autocheck options to default)
    chkntfs /c C: .... (allow checking drive c:)

  • Reboot your machine

  • If chkdsk/autochk is not performed, please,
    export HKLM\System\CurrentControlSet\Control\Session Manager\BootExecute and post it here.


I do hope that we will manage to get this issue solved.
[/Added]

Karl
(I hate this forum software for inserting random blanks. )

Edited by Karlchen
Back to Top
tjboyd00 View Drop Down
Newbie
Newbie


Joined: 03 February 2006
Location: Australia
Online Status: Offline
Posts: 2
  Quote tjboyd00 Quote  Post ReplyReply Direct Link To This Post Posted: 03 February 2006 at 7:50pm

Karl,

I have the same problem. I run chkdsk with no options at the cmd prompt and it reports 'deleting corrupt attribute record'. I check and the registry entry for BootExecute has "autocheck autochk *". I then run chkdsk /f and it says volume is in use, do you want to run at next bootup. I answer 'Y'.  The BootExecute then has "autocheck autochk /f \??\C: autocheck autochk *". I check "fsutil dirty query C:" and it reports volume is marked dirty. I Restart. On bootup, the Windows splash screen comes up, then it runs chkdsk and returns message:

 File systems is NTFS

Cannot open volume for direct access

Chkdsk is terminated, and Chkdsk has not check anything

So my Diskeeper will not run.

Three months ago, Diskeeper would run, but I don't think I had any disk errors.

Since that time I have added all the crap that comes with a HP 7440 printer to my system. 

Otherwise I have Windows automatic updates on, so have SP2 or XP, Norton Anti-Virus from Norton Systemsworks Premium 2005, which I temporarily turned off any scanning/checking to see if that helped.

I also have Diskeeper 7.0xxxx which I turned off request to defrag at startup, since it would not run because of chkdsk needing to be run and clear the dirty flag.

Some other probably not relevent info: I have IIS not working properly because it will not maintain session variables between screens in a web app I developed (they were fine on other systems, so I know that the code is correct).  I use an IBM thinkpad with all the IBM crap, such as Access Thinkpad, etc.. I was part of a domain at a previous job and deleted that domain and have none now, which is why IIS probably doesn't work properly.

I don't have a good guess as to why it is not working. Do you?

tb
Back to Top
Karlchen View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 June 2005
Location: Germany
Online Status: Offline
Posts: 5121
  Quote Karlchen Quote  Post ReplyReply Direct Link To This Post Posted: 04 February 2006 at 1:22pm
Hello, mansfield, hello, tjboyd00.

No-one else jumped in who knows what may cause chkdsk not to work during the boot phase and who knows how to fix it.

As stated before I have not experienced this problem myself. The best thing which comes up to my mind is this:
If you have got a bootable Windows system in a CD (BartPE, emergency boot CD's often distributed by computer magazines ...) you could boot your machine from the CD and maybe chkdsk your harddisk manually. This might reveal an unnoticed problem on your harddisk and/or make chkdsk work properly again.

Cannot give warranty of any kind if this is going to do the trick.

Karl
Back to Top
mansfield View Drop Down
Newbie
Newbie
Avatar

Joined: 23 January 2006
Location: United Kingdom
Online Status: Offline
Posts: 4
  Quote mansfield Quote  Post ReplyReply Direct Link To This Post Posted: 05 February 2006 at 6:14am

 

Thanks everyone for trying to help but once the problem spread to the de-frag side of things and the answer was not forthcoming on the net I took the cowards way out and re installed xp not ideal but maybe the only way out of this prob. Thanks again and good luck to anyone else with this prob.

Mansfield 

life is just a bowl of AllBran
Back to Top
blippo View Drop Down
Newbie
Newbie


Joined: 16 February 2006
Online Status: Offline
Posts: 1
  Quote blippo Quote  Post ReplyReply Direct Link To This Post Posted: 16 February 2006 at 8:51am

Karlchen,

    I had a problem with with the message Cannot open volume for direct access on startup and did a web search to find out how to get rid of that message.  I came across this forum and read your instructions in this topic. Just wanted to thank you, now the message is gone

Back to Top
Karlchen View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 June 2005
Location: Germany
Online Status: Offline
Posts: 5121
  Quote Karlchen Quote  Post ReplyReply Direct Link To This Post Posted: 16 February 2006 at 5:27pm
Hi, blippo.

Good to know that although my instructions did not really prove helpful to the topic starter mansfield they at least helped you solve your problem.
Thanks for your feedback.

Karl
Back to Top
 Post Reply Post Reply Page  123 12>

Forum Jump Forum Permissions View Drop Down

Privacy Statement