Apps optimize

Pop Quiz: Windows chkdsk command

Do you know which chkdsk stage verifies indexes or which switch fixes errors? Test your knowledge of the Windows chkdsk command.

Answers to our TR Dojo pop quiz on the Windows chkdsk command (correct answers indicated in bold):

1. When run without any parameter, chkdsk will do which of the following? Verify files, indexes, security descriptors, and the Usn Journal then display the results Verify only files and display the results Verify files, indexes, and security descriptors and attempt fixes any errors Verify files and indexes attempt to fix any errors 2. Which of the following chkdsk stages verifies files? Stage 1 Stage 2 Stage 3 Stage 4 3. Which of the following chkdsk stages verifies security descriptors and the Usn Journal? Stage 1 Stage 2 Stage 3 Stage 4 4. Which of the following chkdsk switches would you use to fix any errors discovered on the disk? /f /i /l /e 5. Which of the following chkdsk switches would you use to run chkdsk in verbose mode? /f /v /m /l 6. Which of the following chkdsk switches will force a check of a drive even if it is being used by another process? /f /v /x /d 7. True or false: You can force a check of the boot partition using the appropriate chkdsk switch? True False 8. Which of the following chkdsk switches would you use to locate bad sectors and attempt to recover any readable data? /f /r /b /i 9. Which of the following chkdsk switches would you use to locate and mark bad clusters? /f /r /b /c 10. Which of the following chkdsk switches can reduce the time required to run chkdsk by skipping some checks? /f and /b /i and /c /x and /r /l and /v

About

Bill Detwiler is Managing Editor of TechRepublic and Tech Pro Research and the host of Cracking Open, CNET and TechRepublic's popular online show. Prior to joining TechRepublic in 2000, Bill was an IT manager, database administrator, and desktop supp...

33 comments
EarlK
EarlK

Oh well, I got 70% - That was JUST passing when I was in school.

ceridgac
ceridgac

This is fine and dusts the cobwebs a bit. But, my issue running CHKDSK under Windows 7 is bigger. For some reason, When CHKDSK runs after Win 7 files are loaded, CHKDSK output cannot be viewed. The "Files Loaded" screen remains and the only way I know that CHKDSK is running is via several tiny lines of colored pixels at the top of the screen. Does this happen to anyone else?

sholbrook
sholbrook

I've never been a fan of chkdsk /r on a system volume of a server. If you have to run chkdsk /r then it means you likely have bad sectors so it is best to just swap the drive. Hopefully you configured the system disks with RAID 1 for a DC.

trex0314
trex0314

Is it safe to run check disk with /r option on a domain controller?

NickNielsen
NickNielsen

That must be one of those new switches that only works in Vista or 7.

digital riverrat
digital riverrat

I knew the master boot record could be checked using the /mbr switch!

granniehoney
granniehoney

ran chkdsk on ERROR WIZ.COM....SAID TRIAL....TOOK OFF 8 ERRORS...NOW WON'T UNINSTALL FROM COMPUTER....any suggestions on uninstalling... ....no error wiz does not respond....thank you..granniehoney

howard48906
howard48906

I would like you or someone at TR to write a manual on "How to do Everything With the Command Line". I think it would be a valuable tool that TR could sell or make available to members.

allanelliott
allanelliott

Obviously too long since I've had to use this.

trcgwd
trcgwd

First time I took a quiz....what are the answers, Bill

Lomax007
Lomax007

I have never seen this tbh, I run Win7 pro an ultimate, cant say about Home Premium.

Who Am I Really
Who Am I Really

if winders vista / win7 did you run the CMD window as administrator? here's the list from XP C:\>chkdsk /? Checks a disk and displays a status report. CHKDSK volume filename /F /V /R /X /I /C /L:size [b]volume[/b] - Specifies the drive letter (followed by a colon), mount point, or volume name. [b]filename[/b] - FAT/FAT32 only: Specifies the files to check for fragmentation. [b]/F[/b] - Fixes errors on the disk. [b]/V[/b] - On FAT/FAT32: Displays the full path and name of every file on the disk. - On NTFS: Displays cleanup messages if any. [b]/R[/b] - Locates bad sectors and recovers readable information - (implies /F). [b]/L:size[/b] - NTFS only: Changes the log file size to the specified number of kilobytes. - If size is not specified, displays current size. [b]/X[/b] - Forces the volume to dismount first if necessary. - All opened handles to the volume would then be invalid - (implies /F). [b]/I[/b] - NTFS only: Performs a less vigorous check of index entries. [b]/C[/b] - NTFS only: Skips checking of cycles within the folder structure. The /I or /C switch reduces the amount of time required to run Chkdsk by skipping certain checks of the volume.

Who Am I Really
Who Am I Really

you don't need to go to a site to run it and you probably went to a malware site doing that

pctech326
pctech326

On XP anyway you sort of can force it with /f or /r, but it only schedules it to be done when the system is next (re)started. From the recovery console you can check the boot volume without a restart and have it fix errors with either /p or /r - yes, even when the recovery console is installed as a boot option and not being run from a CD.

NickNielsen
NickNielsen

Nor in any version of chkdsk before that, either. FDISK has an /mbr switch, but not CHKDSK.

Bill Detwiler
Bill Detwiler

They correct answers are located on the second page in bold.

Bill Detwiler
Bill Detwiler

Sorry about that. Something happened when I posted the second page and our blogging tool removed the bold formatting from the correct answer. I've fixed it.

ceridgac
ceridgac

I'm running Win 7 Ultimate, too. On the 'old' machine running Win XP, the display clears when CHKDSK starts, and the full output of CHKDSK fills the screen through its four or five steps of the process. However, under Win 7 Ultimate, the screen that displays all the loaded files remains, and the CHKDSK output does not appear, albeit for several miniature lines of garbled colored pixels at the top. Is there some magical formula for either clearing the loaded files screen so that I can view CHKDSK output as it runs, or do I need to change some setting to view it? This has been driving me nuts for almost 2 years, and I have no idea why it's different than the XP machine. To summarize, I am unable to address the CHKDSK questions in this forum because output of the CHKDSK command does not display. I'm sure it is probably a simple fix, but I'm running out of hair to scratch.

Lomax007
Lomax007

Didnt you know this already, at Microsoft they shout at you if you call it DOS!!

jfuller05
jfuller05

Nice to get the mind remembering things I haven't used in a while.

DBENSKIN
DBENSKIN

Thanks for the Quiz Bill. These things keep people on their toes.

izharaazmi
izharaazmi

C:\>chkdsk e: /b Invalid parameter - /b Is there something wrong? Actually I voted for all questions, and all (but this) answer went correct. In this question I voted [/r]. Plz let me know where I'm missing... Thnx anyways for encouraging IT knowledge! Cheerz....

NickNielsen
NickNielsen

is only valid in versions of Chkdsk that shipped with Windows Vista and Windows 7.