Windows optimize

How do I ... use the Vista Check Disk tool for hard disk analysis?

Greg Shultz shows you how to use the GUI version of Vista's Check Disk tool to perform two hard disk analysis operations.

While not as common as they once were, file system and sector errors do occasionally occur in Microsoft Windows Vista. These types of errors can be the result of faulty hardware, power failures, or even software errors. In most cases, Vista will recognize hard disk problems and automatically schedule Check Disk to run the next time the computer is restarted.

However, if you're the proactive type, you might want to keep tabs on the status of your hard disk's health yourself rather than wait for Vista to recognize a problem. If so, you'll be glad to know that you can use the GUI version of Check Disk to perform a hard disk analysis operation at any time. If during the analysis you discover problems, then you can use Check Disk to fix those problems.

In this edition of the Windows Vista Report, I'll show you how to use the GUI version of Vista's Check Disk tool to perform two hard disk analysis operations.

This blog post is also available in PDF format as a TechRepublic download.

Launching the Check Disk GUI

While Check Disk is essentially a command-line tool, you don't have to open a Command Prompt Window to run it. In fact you can launch it from within Computer. Once you have Computer open, simply right-click the hard disk that you want to check and select the Properties command from the context menu. When the Properties dialog box appears, select the Tools tab. Then, in the Error Checking panel, shown in Figure A, click the Check Now button.

Figure A

To launch the GUI version of Check Disk, click the Check Now button.
When the UAC appears, you'll need to respond appropriately. As soon as the UAC closes, you'll see a Check Disk dialog box similar to the one shown in Figure B.

Figure B

You'll use the option in this dialog box to configure how you want Check Disk to run.

Typically, when you go to run Check Disk from the GUI, you select both the Automatically Fix File System Errors check box and the Scan For And Attempt Recovery Of Bad Sectors check box and click Start. When you do, the Check Disk GUI will schedule the DOS version to run at startup and prompt you to restart. Check Disk will then fix any problems it finds.

However, to run Check Disk in analysis mode, you'll use other combinations of settings. Let's take a closer look.

Performing a basic analysis

If you want to get a quick look at the state of your hard disk, clear both the check boxes and click Start. This method of running Check Disk is relatively quick and is completed in read-only mode, which means that it runs right from within the GUI interface. As it proceeds, you'll see status messages appear in the center of the Check Disk dialog box that let you know what is happening at each stage of the operation, and, of course, the progress bar lets you know how long the operation will take, as shown in Figure C.

Figure C

As the analysis operation proceeds, you'll see status messages appear in the center of the Check Disk dialog box.
When the operation is complete, you'll see a dialog box that contains a brief summary of the operation. However, if you click the See Details arrow, you'll see a fairly detailed report of the operation, as shown in Figure D. As you can see, in this operation Check Disk goes through three stages as it examines your disk. (More on the stages in a moment.)

Figure D

When you click the See Details arrow, you'll see a fairly detailed report of the operation, which in the case of a basic analysis runs through three stages.
In addition to the report shown onscreen, Check Disk saves the report in the Application Event Log with a source code of Chkdsk and an Event ID of 26212, as shown in Figure E. The Event Log entry will contain the entire report as well as details about any changes that Check Disk made.

Figure E

Check Disk will save its report in the Application Event Log with a source code of Chkdsk and an Event ID of 26212.

Performing a more thorough analysis

If you would like to perform a more thorough analysis of your hard disk, clear the Automatically Fix File System Errors check box and just select the Scan For And Attempt Recovery Of Bad Sectors check box, and then click Start.

Selecting just the Scan For And Attempt Recovery Of Bad Sectors check box will run this operation in read-only mode, which means that Check Disk will only scan for and identify bad sectors, it will not attempt to recover them. Read-only mode will also mean that Check Disk runs right from within the GUI interface, as shown in Figure F.

Figure F

When you run Check Disk in this configuration, it will only scan for and identify bad sectors, it will not attempt to recover them.
When the operation is complete, Check Disk will save the report in the Application Event Log as well as display the report in the dialog box, as shown in Figure G. As you can see, when performing a thorough analysis Check Disk goes through four of its five stages as it examines your disk.

Figure G

When performing a thorough analysis, Check Disk goes through the first three stages and then skips to the fifth stage.

The stages

When you run Check Disk in fix-and-recovery mode, it performs its operation in five stages -- three major stages and two optional stages. However, when you run the basic analysis, Check Disk goes through only the three main stages. When you run the thorough analysis, Check Disk goes through the three main stages and the second optional stage.

(Note: My description of these stages is based on information culled from the Windows Vista Resource Kit.)
  • Stage 1: Check Disk 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.
  • Stage 2: Check Disk 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. Check Disk 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. Check Disk 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.
  • Stage 3: Check Disk 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.
  • Stage 4 (optional): Check Disk verifies all clusters in use. Stage 4 runs only when you select the Automatically Fix File System Errors check box.
  • Stage 5 (optional): Check Disk verifies unused clusters. Stage 5 runs when you select the Scan For And Attempt Recovery Of Bad Sectors check box. (Keep in mind that in the thorough analysis mode described in this article, stage 5 will only scan for bad sectors.)

What's your take on Check Disk?

Now that you know how it works, are you likely to use the GUI version of Vista's Check Disk tool to perform hard disk analysis operations? As always, if you have comments or information to share about this technique, please take a moment to drop by the Discussion area and let us hear from you.

About

Greg Shultz is a freelance Technical Writer. Previously, he has worked as Documentation Specialist in the software industry, a Technical Support Specialist in educational industry, and a Technical Journalist in the computer publishing industry.

11 comments
falcon5678
falcon5678

I ran Check Disk in Vista Home 32bit to fix a corrupted SD card with lots of pictures on it. I accidentally clicked auto fix and now I don't know where the pictures have gone. I believe it said that it would place recovered files somewhere but I can't for the life of me find them anywhere. Can anyone tell me where any recovered file might be? Thanks so much in advance.

s.r.k
s.r.k

sir/madam, my harddisk detected in bios setup but not install the windows xp .so what ill do steps .kindly send the my mail id:ramkumars11@gmail.com Thanking you Regards Ramkumar.s

tattooman
tattooman

i have already know how to check disk,but i don't realy know ,what would happen if something was wrong.would the computer fix it self?

GreyTech
GreyTech

I see nothing here that picks up the S.M.A.R.T. attribute report from the drives. I would have thought this to be a obvious feature to be built in if there are S.M.A.R.T. drives in the system.

cscapitanu
cscapitanu

Why so complicated ,even howevwr basic will be the same old DOScommand.All others producing socalled "check disk utilities" rfinally return to old DOS type check disk.Nobody even "Symantec "succesor of "Peter Norton"company don't produced like "Norton Disk Doctor Utilities"

amj2010
amj2010

never, because those drives don't need them, yeh in the old days....

TonyF2013
TonyF2013

I have used check disk to rescue a system many a time with close to a 70% success rate. Sometimes a repair install is needed, but rarely. I have to say, from a tech standpoint, the new GUI interface with all the details of the scan is a nice touch, if only for aesthetic purposes. However, I've always thought the Check Disk program could be so much more. Obviously one of the first things they could build into it would be a hard disk lifeline scan, sort of like what Apple has in the Disk Utility. I've heard of programs that can tell you approximately when your hard drive is going to crash, and it would seem only natural to put this into your Disk Management. I also think they should add a feature that lets you create a disk image (also like Apple) to a CD or backup hard drive.

Mark W. Kaelin
Mark W. Kaelin

Now that you know how it works, are you likely to use the GUI version of Vista?s Check Disk tool to perform hard disk analysis operations? Do you prefer to let Vista decide when to run Check Disk?

FXEF
FXEF

To fix errors, "Automatically fix file system errors" must be checked. This option can not be run in GUI mode. You must reboot then Check Disk will run on the file system before it is mounted. Check Disk can scan a mounted file system, however it can not repair a mounted file system. I personally don't see much need for the GUI mode. Kinda like going to the doctor, then going home with no treatment.... you may know what's wrong but still sick.

AllGeek2Me
AllGeek2Me

There is a program called SpinRite, offered by Gibson Research that gives you a complete disk check, and lets you know the status of the disk. I'm not in sales or anything, just a program that's saved a few crashes for me. my 2? CDN

Craig_B
Craig_B

I typically do not run chkdsk unless I'm experiencing some sort of problem. These days that seems quite rare.