Offers
Thanks for visiting www.technoexam.com. Stay connected with us for more latest programming updates...

You are here : Home >> Tutorials >> Dos

Go
DOS Tutorial

Contents
Introduction to DOS
MS-DOS History
Execute Commands
Assoc
At
Attrib
Cd / Chdir
Chkdsk
Cls
Color
Copy
Date
Del / Erase
Echo
Exit
Format
Help
Md / Mkdir
Move
Pause
Rd / Rmdir
Rem
Ren / Rename
Time
Title
Tree
Type
Ver
Vol

Contact Us

+91-8806583119

CHKDSK - DOS Command

It checks a disk and displays a status report. It checks for any errors or cross-linked with hard disk drive.

To view 'chkdsk' with its all possible parameters you can use following command. Its like help information to regarding that command.

chkdsk/?

Commands can be run using Microsoft Windows XP Command Prompt (cmd.exe)

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

where,

volume --> It specifies the drive letter (followed by a colon), mount point, or volume name.

filename --> FAT/FAT32 only: It specifies the files to check for fragmentation.

/F --> It fixes errors on the disk.

/V --> On FAT/FAT32: It displays the full path and name of every file on the disk.
On NTFS: It displays cleanup messages if any.

/R --> It locates bad sectors and recovers readable information (implies /F).

/L:size --> NTFS only: It changes the log file size to the specified number of kilobytes. If size is not specified, displays current size.

/X --> It forces the volume to dismount first if necessary. All opened handles to the volume would then be invalid(implies /F).

/I --> NTFS only: It performs a less vigorous check of index entries.

/C --> NTFS only: It 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.

Use :

chkdsk D: /F
- It fixes errors if found on D: drive.

Output :

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
D:\DINESH > chkdsk D: /F The type of the file system is NTFS. Volume label is Data.
CHKDSK is verifying files (stage 1 of 3)... File verification completed. CHKDSK is verifying indexes (stage 2 of 3)... Index verification completed. CHKDSK is verifying security descriptors (stage 3 of 3)... Security descriptor verification completed. Windows has checked the file system and found no problems.
25599545 KB total disk space. 5801964 KB in 36626 files. 11540 KB in 2211 indexes. 0 KB in bad sectors. 109549 KB in use by the system. 65536 KB occupied by the log file. 19676492 KB available on disk.
4096 bytes in each allocation unit. 6399886 total allocation units on disk. 4919123 allocation units available on disk.
D:\DINESH > _

Download PDF
Published on: 12th Nov 2010, Last Updated on: 18th Dec 2014

Mr. Dinesh Kudache
AUTHOR: Mr. Dinesh Kudache

Mr. Dinesh is the Founder and CEO of technoexam.com. He had 6+ years experience in Application Programming, System Programming, Web Design and Development, Google Expertise. He had written 5000+ various articles on programming. Browse more articles by this author.

Link this post on your Blog/Website :