After you type chkdsk /x /f /r and Hit Enter.You will be told that “Chkdsk cannot run because the volume is in use by another process. Would you like to schedule this volume to be checked the next time the system restarts? (Y/N)” when the prompt appears hit the Y key on the keyboard and reboot your computer.
Source: How to Run CHKDSK On Reboot
DevOps for IoT with Win10 IoT Core, UWP, and VSTS