How to force CHKDSK on reboot of FAT partition?

R

Rich C

Our XPe system has two partitions C and D. C is a FAT(FAT16) partition
and D is the NTFS boot partition. C is FAT because certain data must
be accessed from our bootable DOS installation CD during upgrades.

We want to schedule a CHKDSK for all partitions when the system is
rebooted. We can get the system to always check the NTFS partition by
first running "FSUTIL DIRTY SET D:" then running "CHKNTFS /C D:".

Microsoft documentation says CHKNTFS displays or specifies whether
automatic system checking is scheduled to be run on a FAT, FAT32, or
NTFS volume when the computer is started.

I can run "CHKNTFS /C C:", then run "CHKNTFS C:" and it will say it is
scheduled for a manual CHKDSK on next boot but it doesn't seem to do
it.

I assume it doesn't do a CHKDSK because it doesn't think that the FAT
C: drive is "dirty". Is there an equivalent of the "FSUTIL DIRTY SET"
for FAT partitions since FSUTIL only works on NTFS partitions?

Or is there some other way to force a CHKDSK on a FAT partition during
XPe startup?

Thanks.
 
G

Guest

Try chkdsk C: /F

or equivalently:
Hkey_local_machine\System\CurrentControlSet\Control\Session Manager
BootExecute REG_MULTI_SZ Autocheck autochk /p \??\C:

According to KB 160963:
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.

KS

This posting is provided "AS IS" with no warranties and confers no rights.
 
G

Guest

Reposting:

Try chkdsk C: /F

or equivalently:
Hkey_local_machine\System\CurrentControlSet\Control\Session Manager
BootExecute REG_MULTI_SZ Autocheck autochk /p \??\C:

According to KB 160963:
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.

KS

This posting is provided "AS IS" with no warranties and confers no rights.
 

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