Repairing a Damaged File System Using Check Disk in the Windows Rescue System (Dedicated Server)

A dirty bit set in damaged file systems (a.k.a. dirty file systems) means that the file system's state is inconsistent. For example, the dirty bit is set if there are outstanding modifications to the volume pending and the server is restarted before these modifications were saved. If a dirty bit is set, the checkdisk utility runs after each restart. In order to check and repair the file system, you must prevent checkdisk from starting automatically. After the server has been booted to rescue mode, you can then repair the file system. Proceed as follows:

Prerequisites:

You have created a backup.

You have selected the desired keyboard language.

Step 1

To check whether a dirty bit has been set in the file system, enter the following command in the Administrator: X:\WINDOWS\system32\cmd.exe window:

C:\>chkntfs C:
Step 2

To prevent checkdisk from starting automatically during the next reboot, enter the following command:

C:\>chkntfs C: /x
Step 3

Boot the server to the Windows rescue system.

Step 4

Select the desired keyboard language.

Step 5

Click Troubleshoot.

Step 6

Click Microsoft ® Diagnostics and Recovery.

Step 7

Click Windows Server 2012 R2 or Windows Server 2016.

Step 8

To check and repair the file system, enter the following command in the Administrator: X\WINDOWS\system32\cmd.exe window.

C:\>chkdsk C: /F
Step 9

After repairing the file system, check whether the dirty bit was removed. If so, the following message will be displayed:

C:\>chkntfs C: 
The type of the file system is NTFS.
C: is not dirty.

C:\>