chkdsk runs every time at startup

chkdsk runs every time at startup

Postby stephen » Sun Nov 09, 2008 5:18 am

Client reports chkdsk runs every time at startup.

There is a command chkntfs which can be used for controlling wether chkdsk will run
chkntfs /?

Displays or modifies the checking of disk at boot time.

CHKNTFS volume [...]
CHKNTFS /D
CHKNTFS /T[:time]
CHKNTFS /X volume [...]
CHKNTFS /C volume [...]

volume Specifies the drive letter (followed by a colon),
mount point, or volume name.
/D Restores the machine to the default behavior; all drives are
checked at boot time and chkdsk is run on those that are
dirty.
/T:time Changes the AUTOCHK initiation countdown time to the
specified amount of time in seconds. If time is not
specified, displays the current setting.
/X Excludes a drive from the default boot-time check. Excluded
drives are not accumulated between command invocations.
/C Schedules a drive to be checked at boot time; chkdsk will run
if the drive is dirty.

If no switches are specified, CHKNTFS will display if the specified drive is
dirty or scheduled to be checked on next reboot.



Also If you can boot off a Windows XP CD and go into recovery console mode
you can then run try running chkdsk c: /f /x


Researched these sites and found these tips.
http://www.pcreview.co.uk/forums/thread-72388.php
I disabled the virtual memory
on the dirty drive (my secondary disk, if it's your C: drive you should move the virtual memory to another drive.) which then allowed me to run the "chkdsk x: /f /x" command from cmd prompt within XP. FIXED!
1. click on your start menu and open the run dialog.
2. type "cmd" and return (note: dont enter quotes)
3. Next type "fsutil dirty query e:"
4. If the return message indicates that the volume is dirty go to step 5
5. Next type "chkdsk e: /f /x"
6. After that finshes repeat step 3.
7. If it is no longer dirty then reboot and you should notice no more
ckdisk.


This site
http://forums.cnet.com/5208-10149_102-0.html?forumID=7&threadID=113089&messageID=1284407
Hello, what you're experiencing is what Windows refers to as "setting the dirty bit" and what you have to do is unset that bit. Every time Windows XP starts, autochk.exe is called by the kernel to scan all volumes to check if the volume dirty bit is set. If the dirty bit is set, autochk performs an immediate chkdsk /f on that volume. Chkdsk /f verifies file system integrity and attempts to fix any problems with the volume. It is usually caused by a hard shut down or a power loss during a read-right operation on that particular drive.

How do I fix it, you ask?

Well, that's easy. First click Start> Run> bring up a command prompt by typing in "CMD" and type " fsutil dirty query d: ". This queries the drive, and more than likely it will tell you that it is dirty. Next, type "CHKNTFS /X D:". The X tells Windows to NOT check that particular drive on the next reboot. At this time, manually reboot your computer, it should not do a Chkdsk and take you directly to Windows.

Once Windows has fully loaded, bring up another CMD prompt and type and now you want to do a Chkdsk manually by typing "Chkdsk /f /r d:". This should take you through 5 stages of the scan and will unset that dirty bit. Finally, type "fsutil dirty query d:" and Windows will confirm that the dirty bit is not set on that drive. Good luck!
stephen
 
Posts: 507
Joined: Thu Feb 09, 2006 9:37 am
Location: Brisbane

Return to WIndows XP Issues

Who is online

Users browsing this forum: No registered users and 2 guests

cron