Windows XP takes forever to shut down, always scandisk second partition

Posted on 2004-10-11
Medium Priority
Last Modified: 2008-01-09
Alright.  Running Windows XP Professional with SP1.  No problems during the operation of my system.  I don't crash.  I don't hang.  No problems.

However, when I shut down, everything closes as usual, it saves my settings for about 5-6 mins and then shuts my computer off!!!  It normally does it in 30-40 seconds.

Then when I reboot in the morning or afternoon, or anytime I reboot, it wants to check the disk for errors but it only checks the second partition of the only hard drive in the system.  The dirty bit IS set for this parition however it never seems to clear and it never finds any problems.  I've done tons and tons of searching on the net, these communities with other similar problems but the closest i've come to find an answer is this.  Microsoft has released some patch for this problem for 98 and ME and supposedly XP but noone can remember where to get the XP patch.  I'm tired of spending hours trying to fix this problem and its only come since i've upgraded to SP1 although it was not right after I upgraded.  So 500 points to whoever can fix this the fastest.  I thank you for your time as I'm done wasting mine.
Question by:Niagol
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 12274762
Hi Niagol,

have you tried the option start->run->shutdown -f


Author Comment

ID: 12274795
In trying to shut down faster?  No.. I'd like to beable to just click shutdown when i'm ready to sleep.  And my real problem is in regards to the fact that I scandisk every single boot.  I provided the shutdown information as I believe it may have some significance although I have no knowledge of how to check what is taking so long.

Expert Comment

ID: 12274815
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 12274998
Thank you for the links to all the great hard drive companies.  I did download the WD Diagnositic and run the testing.  All is good with my hard drive.  Might I note that the problem is only with the 2nd partition of the hard drive.  It never has a problem with C which is what it boots off.

Perhaps someone out there knows how to unset the dirty bit?  Or of this elusive patch for XP that know one can remember where to get?

Expert Comment

ID: 12275143
try booting/shutting down in safe mode then tell us if it shuts down properly

Expert Comment

ID: 12275364
To skip windows from checking a drive with the dirty bit set you should run any time before shutdown (maybe in a batch file on start up):

chkntfs /x d:

This skips the auto disk check (if dirty bit is set) on drive d. This is not always recommended as sometimes corruption does occur, so once every other week or so it might be smart to run:

chkntfs /D  (this restores the default settings)

(feel free to ignore the rest of my ranting....)
I think your real problem is the shutdown issue: Windows does not know how to shut down your computer properly, and that is why it sets the 'dirty' flag on the partition. You should check the Application and System Logs in Event Viewer in the computer managment console to see if you can figure out why the computer isn't shutting down correctly. It could be a problem with device drivers, network traffic, or just a random program that is refusing to shut down correctly. Frequently the fastest way to fix these problems is to reinstall windows.

Expert Comment

ID: 12278764
I have run into this problem on about 8 computers on the network.  To correct it, I've installed a program called UPHClean.exe this program is offered free from Microsoft.  What is happening is that a program or service (maybee even driver) is not releasing he registry, causing the pc to take a long time logging off.  UPHClean forces that service, driver or application to realease the registry.  To Download and read more, please go here:



Expert Comment

ID: 12279499
Have you tried reformatting that partition? Remember format is distructive so backup your data there first.

Expert Comment

ID: 12279758
it sounds to like a memory leak (some program is not shutting down) so it's doing the scandisk like an improper shut down was done.

is a free quick shut down program


Author Comment

ID: 12284119
Alright.. I've checked the logs and cannot find anything not shutting down correctly.  As for the scandisk this is what it comes up with anytime I let it scan.  Pulled from a Winlogon source:
Checking file system on E:
The type of the file system is NTFS.

One of your disks needs to be checked for consistency. You
may cancel the disk check, but it is strongly recommended
that you continue.
Windows will now check the disk.                        
Cleaning up 1 unused index entries from index $SII of file 0x9.
Cleaning up 1 unused index entries from index $SDH of file 0x9.
Cleaning up 1 unused security descriptors.

I will be checking a the programs listed above to check to solve the shutdown problem however the dirty bit is set always.  So even if I fix that it will still scan disk.  Is there a way to unset that bit?

Author Comment

ID: 12284798
The two programs listed do not work in solving this problem.  I've even tried moving my page file from the E drive back to the C drive but to no aval either.  I cannot seem to find a way to see what is going on.  Event viewer successfully shuts down in its own event list but nothing else is "running" according to it.  A complete FULL scan on the hard drive shows no errors, no bad blocks, nothing.  I have no programs on my E drive just data.  The only thing left on the E drive that is accessed by the system is that I have my "My Documents" folder relocated to E however its been like this for quite some time now so it doesn't make sense to just start doing that all of a sudden.  I did reboot in safe mode as was asked and it took me almost a full 40 mins to get back into my computer as it took twice as long to start up and shut down.  I'll go back to what I'm really looking for.  Is there a way to unset the dirty bit OR a way to find out what/why its being set?  Thank you for your continued brain bending.

Assisted Solution

ezraa earned 400 total points
ID: 12286977
did you try running:

chkntfs /x e:

before restarting?
LVL 16

Accepted Solution

Nyaema earned 1600 total points
ID: 12289757
Configure the machine not to clear the pagefile when it shuts down.

You'll need to edit the registry

Start-> Run
Expand HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
If the value ClearPageFileAtShutdown does not exist, from the Edit menu select New - DWORD value and enter a name of ClearPageFileAtShutdown
Double click on ClearPageFileAtShutdown and set it to 0

Reboot the machine and next time you shutdown the pagefile will not be cleared

Author Comment

ID: 12295438
You guys are awesome.  Ezraa sorry I didn't see your suggestion above.  It did not help the shutdown and only shut off the check.  The dirty bit is still set which to me is like sweeping the problem under the rug.  Nyaema the system now shuts down faster than it used to!  Awesome help.  If anybody knows how to unset a dirty bit that would be wonderful but as for now I just rebooted 5 times trying this and it only took me 30mins total time including use!!!  Thanks ALOT to you all.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I don't know if many of you have made the great mistake of using the Cisco Thin Client model with the management software VXC. If you have then you are probably more then familiar with the incredibly clunky interface, the numerous work arounds, and …
Windows 10 is here and for most admins this means frustration and challenges getting that first working Windows 10 image. As in my previous sysprep articles, I've put together a simple help guide to get you through this process. The aim is to achiev…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question