How to force CHKDSK on reboot of FAT partition?

  • Thread starter Thread starter Rich C
  • Start date Start date
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.
 
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.
 
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.
 
Back
Top