Chkntfs preceding command displays the status the and drives
Maintaining Hard Disks • Chapter 5 167
When defragmentation is complete, the summary report is displayed as follows:
|
8.73 GB (89%) Free, |
|
---|
8.73 GB (89%) Free, |
---|
Defrag D: /f /v
In the preceding code, the /v parameter is used to display a detailed analysis and defrag-mentation report. If you do not want to display the analysis and defragmentation report immediately, you can redirect the report to a text file, as shown in the following example:
Fsutil Dirty Query D:
One of the following results is displayed:
168 Chapter 5 • Maintaining Hard Disks
NOTE
Chkntfs [/d]
Chkntfs [/t[:Time]]
|
|
---|---|
Continued
Maintaining Hard Disks • Chapter 5 169
|
---|
The type of the file system is NTFS.
D: is not dirty.
The following command shows how to schedule automatic checking of the C: and D: drives on system startup:
Chkntfs /c C: D:When the system starts, the C: and D: drives will be automatically checked to determine whether they are dirty.
Chapter 6
Managing Hard
■ Diskpart Commands
■ Scripting with Diskpart
171