Microsoft KB Archive/315265

= How to perform disk error checking in Windows XP =

Article ID: 315265

Article Last Modified on 12/1/2007

-

APPLIES TO


 * Microsoft Windows XP Home Edition
 * Microsoft Windows XP Professional
 * Microsoft Windows XP Professional x64 Edition

-



This article was previously published under Q315265





For a Microsoft Windows 2000 version of this article, see 156571.



SUMMARY
Chkdsk (Chkdsk.exe) is a command-line tool that checks volumes for problems. The tool then tries to repair any that it finds. For example, Chkdsk can repair problems related to bad sectors, lost clusters, cross-linked files, and directory errors. To use Chkdsk, you must log on as an administrator or as a member of the Administrators group.

You can also run Chkdsk from My Computer or from Windows Explorer.



MORE INFORMATION


Guided Help to check the hard disk for errors
Guided Help is available to use Chkdsk to check the hard disk for errors. Guided Help can guide you through the steps or Guided Help can automatically perform the steps for you.

The actions that this Guided Help performs cannot be undone after Guided Help is finished.

For more information about Guided Help, click the following article number to view the article in the Microsoft Knowledge Base:

915092 Description of Guided Help for Microsoft Knowledge Base articles

Requirements to install and to use this Guided Help

 * You must be logged on to Windows by using a computer administrator account to install and to use this Guided Help.
 * You must be running Windows XP Home Edition, Windows XP Professional, Windows XP Media Center Edition, or Windows XP Tablet PC Edition to install and to use this Guided Help.

You must first download Guided Help. To start, click the following link. Download Guided Help

Manual steps to run Chkdsk
Notes
 * Chkdsk requires exclusive access to a volume when it runs. Therefore, if one or more of the files are open on the disk that you want to check, Chkdsk displays a prompt asking if you want schedule the disk check for the next time that you restart your computer.
 * Chkdsk might take a long time to run, depending on the number of files and folders, the size of the volume, disk performance, and available system resources, such as processor and memory.
 * Chkdsk might not accurately report information in read-only mode.

Manual steps to run Chkdsk at the command prompt
 Click Start, and then Run. In Open, type cmd, and then press ENTER. Use one of the following procedures:  To run Chkdsk in read-only mode, at the command prompt, type chkdsk, and then press ENTER. To repair errors without scanning the volume for bad sectors, at the command prompt, type chkdsk /f, and then press ENTER.

Note If one or more of the files on the hard disk are open, you will receive the following message:

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, and then press ENTER to schedule the disk check, and then restart your computer to start the disk check.</li> To repair errors, locate bad sectors, and recover readable information, at the command prompt, type chkdsk /r, and then press ENTER.

Note If one or more of the files on the hard disk are open, you will receive the following message:

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, and then press ENTER to schedule the disk check, and then restart your computer to start the disk check.</li></ul> </li></ol>

Manual steps to run Chkdsk from My Computer or Windows Explorer
<ol> Double-click My Computer, and then right-click the hard disk that you want to check.</li> Click Properties, and then click Tools.</li> Under Error-checking, click Check Now. A dialog box that shows the Check disk options is displayed,</li> Use one of the following procedures: <ul> To run Chkdsk in read-only mode, click Start.</li> To repair errors without scanning the volume for bad sectors, select the Automatically fix file system errors check box, and then click Start.</li> To repair errors, locate bad sectors, and recover readable information, select the Scan for and attempt recovery of bad sectors check box, and then click Start.</li></ul>

Note If one or more of the files on the hard disk are open, you will receive the following message:

The disk check could not be performed because the disk check utility needs exclusive access to some Windows files on the disk. These files can be accessed by restarting Windows. Do you want to schedule the disk check to occur the next time you restart the computer?

Click Yes to schedule the disk check, and then restart your computer to start the disk check.</li></ol>

The following table lists the exit codes that Chkdsk reports after it has finished:

For more information about Chkdsk, visit the following Microsoft Web sites: <ul> Chkdsk:

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/chkdsk.mspx

</li> Running Chkdsk to repair file systems:

http://www.microsoft.com/technet/prodtechnol/winxppro/reskit/c28621675.mspx

</li></ul>

For more information about Chkdsk, click the following article number to view the article in the Microsoft Knowledge Base:

314835 An explanation of the new /C and /I switches that are available to use with Chkdsk.exe

Additional query words: check disk chkdsk scandisk

Keywords: kbacw kbhowto kbacwsurvey kbenv kbinfo kbsetup KB315265

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.