Home > How to determine whether Chkdsk is scheduled to run
Book Chapter:
EMAIL THIS LICENSING & REPRINTS

How to determine whether Chkdsk is scheduled to run

09 Oct 2007 | By Mitch Tulloch, Tony Northrup, Jerry Honeycutt with the MSWinVista Team, Microsoft Press

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   

Windows Vista  Resource Kit This chapter excerpt from the Windows Vista Resource Kit, by Mitch Tulloch, Tony Northrup and Jerry Honeycutt with the MSWinVista Team, is printed with permission from Microsoft Press, Copyright 2007.

Click here to purchase the entire book and find more expert advice on working with the Windows Vista operating system.


Windows Vista might also configure Chkdsk to automatically run at startup if it detects problems with a volume. Volumes that Windows Vista determines need to be checked are considered "dirty." To determine whether a volume is considered dirty, run the following command at a command prompt:

chkntfs volume:

For example, to determine whether drive C is considered dirty, run:

chkntfs C:

You can also use the Chkntfs tool to prevent a dirty volume from being checked at startup, which is useful if you want to avoid the time-consuming Chkdsk and will not be at the computer during startup to bypass Chkdsk. For more information, run the following at a command prompt:

Chkntfs /?

Chkdsk Process on NTFS Volumes

When you run Chkdsk on NTFS volumes, the Chkdsk process consists of three major stages and two optional stages. Chkdsk displays its progress for each stage with the following messages:

Windows is verifying files (stage 1 of 5)...
File verification completed.
CHKDSK is verifying indexes (stage 2 of 5)...
Index verification completed.
CHKDSK is verifying security descriptors (stage 3 of 5)...
Security descriptor verification completed.
CHKDSK is verifying file data (stage 4 of 5)...
File data verification completed.
CHKDSK is verifying free space (stage 5 of 5)...
Free space verification completed.

The following list describes each of the Chkdsk stages.

Stage 1: Chkdsk verifies each file record segment in the master file table During stage 1, Chkdsk examines each file record segment in the volume's master file table (MFT). A specific file record segment in the MFT uniquely identifies every file and directory on an NTFS volume. The percent complete that Chkdsk displays during this phase is the percent of the MFT that has been verified.

The percent complete indicator advances relatively smoothly throughout this phase, although some unevenness might occur. For example, file record segments that are not in use require less time to process than do those that are in use, and larger security descriptors take more time to process than do smaller ones. Overall the percent complete is a fairly accurate representation of the actual time required for that phase.

Stage 2: Chkdsk checks the directories in the volume During stage 2, Chkdsk examines each of the indexes (directories) on the volume for internal consistency and verifies that every file and directory represented by a file record segment in the MFT is referenced by at least one directory. Chkdsk also confirms that every file or subdirectory referenced in each directory actually exists as a valid file record segment in the MFT and checks for circular directory references. Chkdsk then confirms that the time stamps and the file size information associated with files are up-to-date in the directory listings for those files.

The percent complete that Chkdsk displays during this phase is the percent of the total number of files on the volume that are checked. For volumes with many thousands of files and folders, the time required to complete this stage can be significant.

The duration of stage 2 varies because the amount of time required to process a directory is closely tied to the number of files or subdirectories listed in that directory. Because of this dependency, the percent complete indicator might not advance smoothly during stage 2, though the indicator continues to advance even for large directories. Therefore, do not use the percent complete as a reliable representation of the actual time remaining for this phase.

Stage 3: Chkdsk verifies the security descriptors for each volume During stage 3, Chkdsk examines each of the security descriptors associated with each file and directory on the volume by verifying that each security descriptor structure is well formed and internally consistent. The percent complete that Chkdsk displays during this phase is the percent of the number of files and directories on the volume that are checked.

The percent complete indicator advances relatively smoothly throughout this phase, although some unevenness might occur.

Stage 4 (optional): Chkdsk verifies file data During stage 4, Chkdsk verifies all clusters in use. Chkdsk performs stages 4 and 5 if you specify the /r parameter when you run Chkdsk. The /r parameter confirms that the sectors in each cluster are usable. Specifying the /r parameter is usually not necessary because NTFS identifies and remaps bad sectors during the course of normal operations, but you can use the /r parameter if you suspect the disk has bad sectors.

The percent complete that Chkdsk displays during stage 4 is based on the percent of used clusters that are checked. Used clusters typically take longer to check than unused clusters, so stage 4 lasts longer than stage 5 on a volume with equal amounts of used and unused clusters.

For a volume with mostly unused clusters, stage 5 takes longer than stage 4.

Stage 5 (optional): Chkdsk verifies free space During stage 5, Chkdsk verifies unused clusters. Chkdsk performs stage 5 only if you specify the /r parameter when you run Chkdsk. The percent complete that Chkdsk displays during stage 5 is the percent of unused clusters that are checked.



How to Troubleshoot Disk Problems in Microsoft Windows Vista

 Introduction
 How to prepare for disk failures
 How to use Chkdsk
  How to use the graphical Chkdsk interface
  How to determine whether Chkdsk is scheduled to run
 How to use the Disk Cleanup Wizard
 How to disable non-volatile caching

Reprinted with permission from Microsoft Press. From Windows Vista Resource Kit (ISBN:9780735622838) Microsoft Press. All rights reserved.

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Managing Microsoft Windows Vista
Making sense of Vista's Windows Experience Index
Creating a custom control panel in Windows Vista
Microsoft's Windows Task Manager: What's new in Vista?
Migrating to Windows Vista: Should you go with 64-bit?
Vista tools provide Windows error reporting for the enterprise
Demystifying Microsoft's iSCSI Initiator for Windows Vista and Server 2008
Workarounds for Windows Vista compatibility issues
What are your OS migration plans?
Free tools bring enterprise compatibility testing to Windows Vista
Green computing for less with Vista and Windows Server 2008

Windows Vista Resource Kit
How to prepare for disk failures in Windows Vista
How to run the Chkdsk utility in Windows Vista
How to use the graphical Chkdsk interface in Vista
How to use the Disk Cleanup Wizard in Windows Vista
How to disable non-volatile caching in Windows Vista

Windows Desktop Management Tools
Making sense of Vista's Windows Experience Index
Microsoft's Windows Task Manager: What's new in Vista?
Vista tools provide Windows error reporting for the enterprise
Free tools bring enterprise compatibility testing to Windows Vista
More tips for troubleshooting Windows XP Device Manager error codes
How to create a Windows Vista boot CD with WinPE
Windows 2000 batch file command reference
Advanced Group Policy for Windows Vista
Advanced techniques for disabling Windows XP startup programs
TeraCopy beefs up Windows file copy operations

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
Windows Remote Management  (SearchWinComputing.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsWebcastsWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2004 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts