WindowsXP Startup Problem
Posted 01 March 2009 - 09:25 AM
Posted 01 March 2009 - 10:39 AM
Every time Windows restarts, 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 always advisable to run chkdsk on volumes that have been improperly shutdown, however, there may be some situations in which running chkdsk after every improper shutdown is not possible or practical. In some cases, chkdsk may take several hours or even days to completely check the volume or may hang while checking the volume. In these situations, it is more practical to postpone the chkdsk until a more convenient time.
Chkntfs is a utility that enables a system administrator to exclude volumes from being checked by the autochk program. The utility is run from a command prompt and has the following command line options:
chkntfs drive: [...]
chkntfs /x drive: [...]
chkntfs /c drive: [...]
drive: Specifies a drive letter.
/D Restores the machine to the default
behavior; all drives are checked at boot
time and chkdsk is run on those that are
dirty. This undoes the effect of the /X
/X Excludes a drive from the default boot-time
check. Excluded drives are not accumulated
between command invocations.
/C Schedules chkdsk to be run at the next
reboot if the dirty bit has been set.
If no switches are specified, chkntfs displays the status of the dirty bit for each drive.
chkntfs /x c: This disables chkdsk from running on drive C:
chkntfs /x d: e: This disables chkdsk from running on drives D: and E:.
The chkntfs /x commands are not cumulative, the command overwrites any previous drive exclusions that have been established. In the above example, chkntfs only disables the chkdsk checking on drives D and E, drive C is not checked for the presence of a dirty bit.
The chkntfs utility works by modifying the BootExcecute value in the system registry. The BootExecute value is located in the following registry key:
The default value is:
BootExecute:REG_MULTI_SZ:autocheck autochk *
Chkntfs /x adds a /k parameter prior to the asterisk. The /k parameter excludes volumes from being checked for the presence of a dirty bit.
For example, the command..this is what you want to do
chkntfs /x F:
would modify this registry entry to autocheck autochk /k:f *
Chkdsk /f schedules itself to run at the next reboot by setting the dirty bit on the drive. Chkdsk /x disables the checking for this bit. Chkdsk /f can never run on volumes that are excluded from dirty bit checking by chkntfs.
In order to run a chkdsk /f on a drive that has been excluded by the chkntfs utility, you must run the chkntfs /d option to return the system to its normal state or edit the BootExecute value in the registry and remove the applicable drive letter from the /k parameter.
Posted 01 March 2009 - 10:52 AM
Posted 01 March 2009 - 12:02 PM
Posted 01 March 2009 - 07:52 PM
just be sure to unplug the computer from the wall before removing the drive...
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users