Subscribe to How-To Geek

Guide to Using Check Disk in Windows Vista

Anytime somebody has hard drive errors, I always recommend that they run chkdsk… what geek wouldn’t? Then I realized that there’s no guide to using check disk on this site, so I decided to write one.

The chkdsk or “Check Disk” utility is used in Windows to scan through your entire hard drive and find problems… it’s like a lot like doing inventory… it’s boring, but it has to be done sometimes. I recommend that you run through a check disk every month or two.

Using CheckDisk the GUI Way

Open up Computer and then right-click on the drive you want to check, and choose Properties.

image

Then select the Tools tab, and click the “Check Now” button.

image

A little dialog will pop up to allow you to choose the options you want for the disk check. You should check both options if you want to really check the disk properly, but if you just want to do a quick check you could select only the first one.

image

The only problem with that is that Windows can’t check a drive that’s being used, such as the system drive, but Windows will let you schedule a disk check for the next reboot.

image

You should keep in mind that running through a full check disk takes quite a while, sometimes hours depending on how big the drive is and how many files you have.

Cancelling the Scheduled Disk Check

If you had scheduled a disk check but decided you would like to cancel it, you can run a command to

Open up an administrator mode command prompt by right-clicking on the item in the start menu and choosing “Run as Administrator”. Type in the following command, substituting the drive letter if necessary.

chkntfs /x c:

image 

Seems like they could have a better command line output… something like “canceled!” would have even worked… oh well.

How to Tell if a Manual Disk Check is Scheduled

Open an admin mode command prompt, and then type in the following command:

chkntfs c:

image

How to Tell if an Automatic Disk Check is Scheduled

Sometimes if your computer has not shut down correctly, Windows will mark the drive as “dirty” basically as a reminder to itself that the drive probably has filesystem errors and should be checked. When the flag is set, you’ll be told the disk requires checking during the next bootup.

You can easily see the state of this flag by using two different command line options. The first is the same command as above, but you can see the output is different if the drive is set to be automatically checked.

chkntfs c:

image

You could also use this command to just query the dirty bit:

fsutil dirty query c:

Using CheckDisk from the Command Line

Open up an administrator mode command prompt, and then type in the following command to do an exhaustive check of your drive. Substitute C: for whatever drive you want to check.

chkdsk /f /r C:

If the drive is a system drive or has files in use, you’ll be asked to schedule the check for the next reboot:

image

The above command is the recommended way to perform a disk check, but if you want to do a less exhaustive check, you could remove the /R option from the command.

Here’s the full list of parameters for your geeky enjoyment:

C:\>chkdsk /?
Checks a disk and displays a status report.

CHKDSK [volume[[path]filename]]] [/F] [/V] [/R] [/X] [/I] [/C] [/L[:size]] [/B]

  volume          Specifies the drive letter (followed by a colon),
                  mount point, or volume name.
  filename        FAT/FAT32 only: Specifies the files to check for fragmentation.
  /F              Fixes errors on the disk.
  /V              On FAT/FAT32: Displays the full path and name of every file
                  on the disk.
                  On NTFS: Displays cleanup messages if any.
  /R              Locates bad sectors and recovers readable information
                  (implies /F).
  /L:size         NTFS only:  Changes the log file size to the specified number
                  of kilobytes.  If size is not specified, displays current
                  size.
  /X              Forces the volume to dismount first if necessary.
                  All opened handles to the volume would then be invalid
                  (implies /F).
  /I              NTFS only: Performs a less vigorous check of index entries.
  /C              NTFS only: Skips checking of cycles within the folder
                  structure.
  /B              NTFS only: Re-evaluates bad clusters on the volume
                  (implies /R)

The /I or /C switch reduces the amount of time required to run Chkdsk by
skipping certain checks of the volume.

Hopefully this guide will help somebody!

| More
This article was originally written on 02/29/08 Tagged with: System Administration, Windows Vista

Daily Email Updates

You can get our how-to articles in your inbox each day for free. Just enter your name and email below:


Name:
Email:

Comments (12)

  1. rbailin

    With modern hard disks that detect and remap bad physical sectors on the fly, there’s no real need to use the option (/R) to scan the disk for bad sectors. It could take hours on a several-hundred GB partition, and won’t accomplish anything useful. If you truly suspect something is physically wrong with your disk, run the manufacturer’s disk analysis/testing utility instead.

  2. ukion

    Yes, it help to me. Your detailed explanation help me a lot. Thank you and keep a good and valuable posting.

    Regards,
    Ukion

  3. pipo

    when i try to schedule a check disk for my primary (C:) drive and i reboot, i get a blank/black screen. i waited for about 10 mins, but the screen didn’t change, was that the check disk or does that mean that something’s wrong?

  4. Desi

    Thank you for posting this, it was really clear and helped a lot, but I ran into some problems once I got to the disk check on startup. All was fine, until the check got stuck on 7-8%. It didn’t change or anything- I can’t get to my desktop! This of course, is a huge problem. Any advice?

  5. DR

    Was helpful. Thanks for doing this..

  6. Sarah

    What if you schedule the disk check and when you start up it says the disk check is recommended and then it says it is cancelled? There is obviously something wrong because when I open I.E. about a hundred pages open and same with microsoft outlook.

    I’ve actually got Windows XP, though.

  7. Carrie

    My disk check is stuck at stage 4! I am having major problems with a just 2 day old laptop! Do I just let it sit, or cancel? could it be a manufacturer issue with the driver? An suggestions… please e-mail me.

  8. nancy floyd

    I also have the problem that it says cant scan when the disc is in use…..do you want to schedule? so i schedule …but then when i reboot…..nothing happens….it doesnt scan…if there a way to force a scan or what do you do next?

  9. Gerard Espinas

    Great Article and very informative.Thanks!

  10. Elmer Homero

    Thank you for taking the time to do this.
    Very helpful.

  11. Chep K

    I log in as an admin but cannot carry out simple tasks such as chkdsk. This problem started the day i had a new anti-virus installed. Please hep.

  12. leah

    Hi,

    I have the same problem as Nancy Floyd. I’ve tried doing the scannow in the cmd prompt and only get to about 69% before it stops. I can’t do a system restore, i only have 2 restore dates to choose from and both of them have corrupted files and then i’m told to do a check disk, but can’t get my computer to do the check disk. How do i force my computer to do the check disk?

    thanks,

    Leah


Leave a Comment




Leave your friendly comment here.

If you have a computer help question, click here to leave it on the forums instead.

Note: Your comment may not show up immediately on the site.

Our Friends
Getting Started


About How-To Geek
What Is That Process?
svchost.exe
jusched.exe
dwm.exe
ctfmon.exe
wmpnetwk.exe
mDNSResponder.exe
wmpnscfg.exe
rundll32.exe
wfcrun32.exe
Ipoint.exe
Itype.exe
Wfica32.exe
Mobsync.exe
conhost.exe
Dpupdchk.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. All Rights Reserved.