Drive Error Checking in Windows 10  

Page 7 of 7 FirstFirst ... 567

  1. Posts : 41,475
    windows 10 professional version 1607 build 14393.969 64 bit
       #60

    What information or reference is available for automatic or manual chkdsk without using command line?

    When using the properties menu what is the equivalent command line switch when Windows runs chkdsk?
    And when using fsutil dirty set C: what is the equivalent command line switch when Windows runs chkdsk?

    For example what are the equivalent chkdsk /x /y
    Which methods are using these switches: a, b, c, f, i, r, v, scan, spotfix, etc.?

    https://docs.microsoft.com/en-us/win...ommands/chkdsk
      My Computer


  2. Posts : 68,988
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #61

    zbook said:
    When using the properties menu what is the equivalent command line switch when Windows runs chkdsk?
    I believe it's the /f switch for "scan", and /r switch for "repair".

    zbook said:
    And when using fsutil dirty set C: what is the equivalent command line switch when Windows runs chkdsk?
    This would be the /markclean switch, but not available for NTFS. For NTFS, you will need to schedule an offline scan and repair at boot using the /r switch to hopefully clear it.

    Manually Reset or Clear Dirty Bit in Windows without using CHKDSK • Raymond.CC

    How to Manually Clear or Set Dirty Bit on Windows Volume | Password Recovery
      My Computers


  3. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #62

    Hello @Brink,

    Just to add to the above.

    I have a program that I wrote that performs all sorts of operations. One of them is to check if the OS drive is configured to run on the next reboot, and another is to cancel the run if it is. The below is taken from my program which I thought I would share.

    The below assumes that the OS Drive is C:.

    [1] Check if chkdsk has been configured [ scheduled ] to run on the next reboot.

    If chkdsk IS configured to run on the next reboot, you will see a message saying that it has been scheduled manually to run on the next reboot. This basically means that it has been flagged as DIRTY.

    If chkdsk is NOT configured to run on the next reboot, you will see a message saying that OS Drive is NOT dirty.

    Code:
    C:\Users\System-Admin>chkntfs C:
    
    The type of the file system is NTFS.
    C: is not dirty.

    [2] Cancel configured [ scheduled ] chkdsk to run on the next reboot.

    Code:
    C:\Users\System-Admin>chkntfs /x C:
    
    The type of the file system is NTFS.

    I don't know if this will be a useful addition to the Tutorial?
    Last edited by Paul Black; 02 Oct 2020 at 10:41.
      My Computer


  4. Posts : 68,988
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #63
      My Computers


  5. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #64

    Brink said:
    Ah, OK @Brink.
    My fault, I should have looked before I posted.
      My Computer


  6. Posts : 68,988
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #65

    UPDATE 12/20:

    KB4592438 CU Windows 10 v2004 build 19041.685 and v20H2 19042.685

    A small number of devices that have installed this update have reported that when running chkdsk /f, their file system might get damaged and the device might not boot.

    This issue is resolved and should now be prevented automatically on non-managed devices. Please note that it can take up to 24 hours for the resolution to propagate to non-managed devices. Restarting your device might help the resolution apply to your device faster. For enterprise-managed devices that have installed this update and encountered this issue, it can be resolved by installing and configuring a special Group Policy. To find out more about using Group Policies, see Group Policy Overview.

    To mitigate this issue on devices which have already encountered this issue and are unable to start up, use the following steps:

    1. The device should automatically start up into the Recovery Console after failing to start up a few times.
    2. Select Advanced options.
    3. Select Command Prompt from the list of actions.
    4. Once Command Prompt opens, type: chkdsk /f
    5. Allow chkdsk to complete the scan, this can take a little while. Once it has completed, type: exit
    6. The device should now start up as expected. If it restarts into Recovery Console, select Exit and continue to Windows 10.

    Note After completing these steps, the device might automatically run chkdsk again on restart. It should start up as expected once it has completed.
      My Computers


 

Tutorial Categories

Drive Error Checking in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 04:03.
Find Us




Windows 10 Forums