Author Topic: Run Check Disk from the Command Line to Find and Fix Errors  (Read 3269 times)

0 Members and 1 Guest are viewing this topic.

Offline Nick

  • Administrator
  • Platinum Member
  • *
  • Posts: 46028
  • Karma: +1000/-0
  • Gender: Male
  • NickCS
    • http://www.facebook.com/nickcomputerservices
    • http://www.twitter.com/nickcomputer
    • Computer Chiangmai

Run Check Disk from the Command Line to Find and Fix Errors

You can run Check Disk from the command line or within other utilities. At a command prompt, you can test the integrity of the E drive by typing these commands.

You can run Check Disk from the command line or within other utilities. At a command prompt, you can test the integrity of the E drive by typing the following command:

Code: [Select]
chkdsk E:

To find and repair errors that are found in the E drive, use the following command:

Code: [Select]
chkdsk /f E:

Note that Check Disk can’t repair volumes that are in use. If the volume is in use, Check Disk displays a prompt that asks if you want to schedule the volume to be checked the next time you restart the system. Click Yes to schedule this.

The complete syntax for Check Disk is this:

Code: [Select]
chkdsk [volume[[path]filename]]] [/F] [/V] [/R] [/X] [/I] [/C] [/L[:size]]

The options and switches for Check Disk are used as follows:
Volume Sets the volume to work with.
filename FAT/FAT32 only: Specifies files to check for fragmentation.
/F Fixes errors on the disk.
/V On FAT/FAT32, this displays the full path and name of every file on the disk. On NTFS, this displays cleanup messages, if any.
/R Locates bad sectors and recovers readable information (implies /F).
/L:size NTFS only. Changes the log file size.
/X Forces the volume to dismount first if necessary (implies /F).
/I NTFS only. Performs a minimum check of index entries.
/C NTFS only. Skips checking of cycles within the folder structure.


From the Microsoft Press book Microsoft Windows Server 2008 Administrator’s Pocket Consultant by William R. Stanek.

credit: technet.microsoft.com


 
Share this topic...
In a forum
(BBCode)
In a site/blog
(HTML)


Related Topics

  Subject / Started by Replies Last post
0 Replies
3538 Views
Last post June 11, 2010, 06:31:21 PM
by Nick
0 Replies
3791 Views
Last post June 11, 2010, 07:07:10 PM
by Nick
0 Replies
4368 Views
Last post June 11, 2010, 07:08:51 PM
by Nick
0 Replies
7630 Views
Last post June 16, 2010, 01:47:32 PM
by Nick
0 Replies
2897 Views
Last post June 16, 2010, 06:01:54 PM
by Nick
0 Replies
3419 Views
Last post June 16, 2010, 07:14:52 PM
by Nick
0 Replies
2974 Views
Last post June 16, 2010, 09:45:08 PM
by Nick
0 Replies
13203 Views
Last post July 03, 2010, 02:57:44 PM
by Nick
0 Replies
6646 Views
Last post July 02, 2012, 05:21:53 PM
by Nick
0 Replies
1899 Views
Last post June 11, 2015, 01:01:41 PM
by Nick