Stopping autochk.exe on bootup

G

Guest

--
I'm sorry tht this is so long but I’ve spent days on this and it’s driving
me up the wall.

I used to defrag my hard disc regularly (using the XP Defragmenter) but some
weeks ago I started to get this error message:

"Disk Defragmenter has detected that Chkdsk is scheduled to run on the
volume HDD (C:).

Please run Chkdsk /f. "

When I run Chkdsk /f I get this DOS-type message:

" The type of the file system is NTFS.
Cannot lock current drive.
Chkdsk cannot run because the volume is in use by another process. Would you
like to schedule this volume to be checked the next tine the system restarts?
<Y/N> "

I bring up the Command Line. The prompt comes up as 'c:\Documents and
Settings\Adrian>_'
I would have preferred a plain 'C:\' but could find no way of changing it.

‘fsutil_query_dirty’ answers with “…is dirty“
So first I need to stop autochk.exe running on bootup.

I enter the command ‘chkntfs_/x_c:’ it answers with “The type of the file
system is NTFS"

I reboot but on trying ‘Chkdsk_/f_/r_c:’ (as advised in the ‘Computeracive’
forum). it brings up the old familiar screen.........."This volume is in use
by another process. Would you like to schedule this volume to be checked the
next time the system restarts? <Y/N> ".
Pressing "Y"or"N" makes no difference on rebooting and Chkdsk brings up this
screen every time.

It's as if Windows is ignoring ‘chkntfs_/x_c:’ and is still running
autochk.exe on bootup.

Today I took a deep breath and for the first time edited the Registry and on
advice (from this forum) did:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet
\Control\Session Manager and found BootExecute.

I found two autochk.exe files and deleted them (having saved them to put
them back) but after rebooting on trying ‘chkdsk I still get the:
"This volume is in use by another process. Would you like to schedule this
volume to be checked the next time the system restarts? <Y/N> ".
Trying ‘Y’ or ‘N’ makes no difference.

If I’ve taken autochk.exe out of ‘BootExecute in the Registry I don’t know
where else XP could be getting it from.

It seems so simple:
‘fsutil_dirty_query’
‘chkntfs_/x_c:’
reboot
chkdsk_/f_/r_c:
and done

But as I said I have spent literally whole days on this with commendable
patience but increasing frustration but no positive result.
 
W

Wesley Vogel

Check Disk runs on every boot.

Open a command prompt...
Start | Run | Type: cmd | Click OK |
Type or paste the following line:

chkntfs /d

Hit the Enter key.

Chkntfs displays or modifies the checking of disk at boot time.

The /d switch restores the machine to the default behavior; all drives are
checked at boot time and chkdsk is run on those that are dirty.

Autochk.exe is a version of Chkdsk that runs only before Windows XP
starts. Autochk runs in the following situations:

Autochk runs if you try to run Chkdsk on the boot volume.
Autochk runs if Chkdsk cannot gain exclusive use of the volume.
Autochk runs if the volume is flagged as dirty.

This can happen if the drive's dirty bit is set.
When a drive's dirty bit is set, autochk automatically
checks the volume for errors the next time the computer is restarted.

This will report whether the dirty bit is set.

Start | Run | Type: cmd | Click OK |
Type or paste the following line:

fsutil dirty query C:

Hit the Enter key.

Volume C: is not dirty
Volume C: is dirty

[[If a volume's dirty bit is set, this indicates that the file system may be
in an inconsistent state. The dirty bit can be set because the volume is
online and has outstanding changes, because changes were made to the volume
and the computer shutdown before the changes were committed to disk, or
because corruption was detected on the volume. If the dirty bit is set when
the computer restarts, chkdsk runs to verify the consistency of the volume.

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.]]
-----

This will also report whether the dirty bit is set.

Start | Run | Type: cmd | Click OK |
Type or paste the following line:

chkntfs c:

Hit the Enter key.

C: is not dirty.
-----

If this is not the problem.....

Go here:
http://www.kellys-korner-xp.com/xp_tweaks.htm

Read the instructions at the top of the page.
Scroll down to:
82. Disable or Enable Check Disk Upon Boot
Click on Disable.
-----

Additional information...
Chkdsk.exe or Autochk.exe starts when you try to shut down or restart your
computer
http://support.microsoft.com/kb/831426

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
G

Guest

--
Fighting XP


Wesley Vogel said:
Check Disk runs on every boot.

Open a command prompt...
Start | Run | Type: cmd | Click OK |
Type or paste the following line:

chkntfs /d

Hit the Enter key.

Chkntfs displays or modifies the checking of disk at boot time.

The /d switch restores the machine to the default behavior; all drives are
checked at boot time and chkdsk is run on those that are dirty.

Autochk.exe is a version of Chkdsk that runs only before Windows XP
starts. Autochk runs in the following situations:

Autochk runs if you try to run Chkdsk on the boot volume.
Autochk runs if Chkdsk cannot gain exclusive use of the volume.
Autochk runs if the volume is flagged as dirty.

This can happen if the drive's dirty bit is set.
When a drive's dirty bit is set, autochk automatically
checks the volume for errors the next time the computer is restarted.

This will report whether the dirty bit is set.

Start | Run | Type: cmd | Click OK |
Type or paste the following line:

fsutil dirty query C:

Hit the Enter key.

Volume C: is not dirty
Volume C: is dirty

[[If a volume's dirty bit is set, this indicates that the file system may be
in an inconsistent state. The dirty bit can be set because the volume is
online and has outstanding changes, because changes were made to the volume
and the computer shutdown before the changes were committed to disk, or
because corruption was detected on the volume. If the dirty bit is set when
the computer restarts, chkdsk runs to verify the consistency of the volume.

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.]]
-----

This will also report whether the dirty bit is set.

Start | Run | Type: cmd | Click OK |
Type or paste the following line:

chkntfs c:

Hit the Enter key.

C: is not dirty.
-----

If this is not the problem.....

Go here:
http://www.kellys-korner-xp.com/xp_tweaks.htm

Read the instructions at the top of the page.
Scroll down to:
82. Disable or Enable Check Disk Upon Boot
Click on Disable.
-----

Additional information...
Chkdsk.exe or Autochk.exe starts when you try to shut down or restart your
computer
http://support.microsoft.com/kb/831426

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
Adrianbear said:
--
I'm sorry tht this is so long but I’ve spent days on this and it’s
driving
me up the wall.

I used to defrag my hard disc regularly (using the XP Defragmenter) but
some
weeks ago I started to get this error message:

"Disk Defragmenter has detected that Chkdsk is scheduled to run on the
volume HDD (C:).

Please run Chkdsk /f. "

When I run Chkdsk /f I get this DOS-type message:

" The type of the file system is NTFS.
Cannot lock current drive.
Chkdsk cannot run because the volume is in use by another process. Would
you
like to schedule this volume to be checked the next tine the system
restarts? <Y/N> "

I bring up the Command Line. The prompt comes up as 'c:\Documents and
Settings\Adrian>_'
I would have preferred a plain 'C:\' but could find no way of changing it.

‘fsutil_query_dirty’ answers with “…is dirty“
So first I need to stop autochk.exe running on bootup.

I enter the command ‘chkntfs_/x_c:’ it answers with “The type of
the file system is NTFS"

I reboot but on trying ‘Chkdsk_/f_/r_c:’ (as advised in the
‘Computeracive’ forum). it brings up the old familiar
screen.........."This volume is in use
by another process. Would you like to schedule this volume to be checked
the
next time the system restarts? <Y/N> ".
Pressing "Y"or"N" makes no difference on rebooting and Chkdsk brings up
this screen every time.

It's as if Windows is ignoring ‘chkntfs_/x_c:’ and is still running
autochk.exe on bootup.

Today I took a deep breath and for the first time edited the Registry and
on advice (from this forum) did:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet
\Control\Session Manager and found BootExecute.

I found two autochk.exe files and deleted them (having saved them to put
them back) but after rebooting on trying ‘chkdsk I still get the:
"This volume is in use by another process. Would you like to schedule this
volume to be checked the next time the system restarts? <Y/N> ".
Trying ‘Y’ or ‘N’ makes no difference.

If I’ve taken autochk.exe out of ‘BootExecute in the Registry I
don’t know where else XP could be getting it from.

It seems so simple:
‘fsutil_dirty_query’
‘chkntfs_/x_c:’
reboot
chkdsk_/f_/r_c:
and done

But as I said I have spent literally whole days on this with commendable
patience but increasing frustration but no positive result.

Apologies for the delay in reply; I had to go to bed.

As you will see my post indicates that in my many days of trying I

have tried all this (including the Windows Support pages) with the

exception of:

1) " autocheck_autochk_* " in the BootExecute section of the

Registry. I had previously just deleted the " autochk "entry.
2) Kelly's Tweak no. 82.

Neither of these have any effect and I am still unable to get past the

" .........."This volume is in use
by another process. Would you like to schedule this volume to be

checked the next time the system restarts? <Y/N> "

screen to fix the Dirty Bit with " chkdsk_/f_/r_c: ".
 
W

Wesley Vogel

" .........."This volume is in use
by another process. Would you like to schedule this volume to be
checked the next time the system restarts? <Y/N> "

You did not include the whole message.

If you are getting one of these messages:

Cannot lock volume for direct access
or
Cannot open volume for direct access

Symantec AntiVirus Corporate Edition 9.0 can cause the problem.

Chkdsk.exe or ScanDisk fails to run on Windows XP or Windows 2003 after
installing Symantec AntiVirus Corporate Edition 9.0
http://service1.symantec.com/SUPPOR...6e22005026f1/52d79c84c363973488256ea600542b5a

A program called Hitman Pro can cause the problem.

A really old version of ZoneAlarm (a version from 2004) can cause the
problem.

BitDefender Internet Security 9 can cause the problem.

[[Ok BitDefender live support told me yesterday that they are working on it
and
sending people analyse tools but she didn't send me one.....]]
from...
(e-mail address removed) 21 May 2006

Spyware Doctor can also cause the problem.

The /x switch doesn't work if Spyware Doctor is installed. Spyware Doctor
needs to be uninstalled or you can do this...

Quoted from *PCTools*, *Spyware* *Doctor*...
1. Exit from Spyware Doctor (to exit from Spyware
Doctor please right click on the Spyware Doctor icon in
the notification area (next to the clock on the Windows
taskbar) and select Exit from the menu that appears)

2. Delete the file
ikhlayer.sys from %windir%\system32\drivers\
or
from c:\windows\system32\drivers\

3. Restart Spyware Doctor

Chkdsk, defrag and error-checking should now work.
-----

[[There is currently no fix for this problem.]]
[[NOTE: You may have success if you schedule Chkdsk to run at startup and
use the /X switch, which will force a dismount. ]]
from...
JSI Tip 7079. You receive 'Cannot open volume for direct access' when Chkdsk
runs during Windows XP startup
http://www.jsifaq.com/subO/tip7000/rh7079.htm

To run chkdsk from a command prompt.

Start | Run | Type: cmd | Click OK |
In the command prompt, type:

chkdsk C: /x

Hit your Enter key.

The following error message appears:
Chkdsk cannot run because the volume is in use by another process. Would you
like to schedule this volume to be checked the next time the system
restarts? (Y/N)

Type Y, hit Enter and close the command prompt.

Reboot.

The /x switch: Use with NTFS only. Forces the volume to dismount first, if
necessary. All open handles to the drive are invalidated. /x also includes
the functionality of /f. The /F switch fixes errors on the disk.

Unable to run CHKDSK
http://support.microsoft.com/kb/555484

[[Message 1
Cannot lock volume for direct access
Message 2
Cannot open volume for direct access ]]
You receive an error message when you run the Autochk.exe utility on a
partition after you restart the computer or when you schedule the Chkdsk.exe
utility to run on a partition on a Windows 2000-based computer or a Windows
NT-based computer
http://support.microsoft.com/kb/160654

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
Adrianbear said:
--
Fighting XP


Wesley Vogel said:
Check Disk runs on every boot.

Open a command prompt...
Start | Run | Type: cmd | Click OK |
Type or paste the following line:

chkntfs /d

Hit the Enter key.

Chkntfs displays or modifies the checking of disk at boot time.

The /d switch restores the machine to the default behavior; all drives
are checked at boot time and chkdsk is run on those that are dirty.

Autochk.exe is a version of Chkdsk that runs only before Windows XP
starts. Autochk runs in the following situations:

Autochk runs if you try to run Chkdsk on the boot volume.
Autochk runs if Chkdsk cannot gain exclusive use of the volume.
Autochk runs if the volume is flagged as dirty.

This can happen if the drive's dirty bit is set.
When a drive's dirty bit is set, autochk automatically
checks the volume for errors the next time the computer is restarted.

This will report whether the dirty bit is set.

Start | Run | Type: cmd | Click OK |
Type or paste the following line:

fsutil dirty query C:

Hit the Enter key.

Volume C: is not dirty
Volume C: is dirty

[[If a volume's dirty bit is set, this indicates that the file system
may be in an inconsistent state. The dirty bit can be set because the
volume is online and has outstanding changes, because changes were made
to the volume and the computer shutdown before the changes were
committed to disk, or because corruption was detected on the volume. If
the dirty bit is set when the computer restarts, chkdsk runs to verify
the consistency of the volume.

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.]]
-----

This will also report whether the dirty bit is set.

Start | Run | Type: cmd | Click OK |
Type or paste the following line:

chkntfs c:

Hit the Enter key.

C: is not dirty.
-----

If this is not the problem.....

Go here:
http://www.kellys-korner-xp.com/xp_tweaks.htm

Read the instructions at the top of the page.
Scroll down to:
82. Disable or Enable Check Disk Upon Boot
Click on Disable.
-----

Additional information...
Chkdsk.exe or Autochk.exe starts when you try to shut down or restart
your computer
http://support.microsoft.com/kb/831426

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
Adrianbear said:
--
I'm sorry tht this is so long but I’ve spent days on this and
it’s driving
me up the wall.

I used to defrag my hard disc regularly (using the XP Defragmenter) but
some
weeks ago I started to get this error message:

"Disk Defragmenter has detected that Chkdsk is scheduled to run on the
volume HDD (C:).

Please run Chkdsk /f. "

When I run Chkdsk /f I get this DOS-type message:

" The type of the file system is NTFS.
Cannot lock current drive.
Chkdsk cannot run because the volume is in use by another process. Would
you
like to schedule this volume to be checked the next tine the system
restarts? <Y/N> "

I bring up the Command Line. The prompt comes up as 'c:\Documents and
Settings\Adrian>_'
I would have preferred a plain 'C:\' but could find no way of changing
it.

‘fsutil_query_dirty’ answers with “…is
dirty“
So first I need to stop autochk.exe running on bootup.

I enter the command ‘chkntfs_/x_c:’ it answers with
“The type of the file system is NTFS"

I reboot but on trying ‘Chkdsk_/f_/r_c:’ (as advised in the
‘Computeracive’ forum). it brings up the old familiar
screen.........."This volume is in use
by another process. Would you like to schedule this volume to be checked
the
next time the system restarts? <Y/N> ".
Pressing "Y"or"N" makes no difference on rebooting and Chkdsk brings up
this screen every time.

It's as if Windows is ignoring ‘chkntfs_/x_c:’ and is
still running autochk.exe on bootup.

Today I took a deep breath and for the first time edited the Registry
and
on advice (from this forum) did:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet
\Control\Session Manager and found BootExecute.

I found two autochk.exe files and deleted them (having saved them to put
them back) but after rebooting on trying ‘chkdsk I still get the:
"This volume is in use by another process. Would you like to schedule
this
volume to be checked the next time the system restarts? <Y/N> ".
Trying ‘Y’ or ‘N’ makes no difference.

If I’ve taken autochk.exe out of ‘BootExecute in the
Registry I don’t know where else XP could be getting it from.

It seems so simple:
‘fsutil_dirty_query’
‘chkntfs_/x_c:’
reboot
chkdsk_/f_/r_c:
and done

But as I said I have spent literally whole days on this with commendable
patience but increasing frustration but no positive result.

Apologies for the delay in reply; I had to go to bed.

As you will see my post indicates that in my many days of trying I

have tried all this (including the Windows Support pages) with the

exception of:

1) " autocheck_autochk_* " in the BootExecute section of the

Registry. I had previously just deleted the " autochk "entry.
2) Kelly's Tweak no. 82.

Neither of these have any effect and I am still unable to get past the

" .........."This volume is in use
by another process. Would you like to schedule this volume to be

checked the next time the system restarts? <Y/N> "

screen to fix the Dirty Bit with " chkdsk_/f_/r_c: ".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top