我刚进入
chkdsk d: /f /r
Run Code Online (Sandbox Code Playgroud)
磁盘检查立即开始。由于多种原因,我希望它在下次重新启动时运行:
现在,在我写完这个问题后,我要盯着屏幕看一两个小时,当 ETA 开始爬升时每五分钟摇动一次鼠标,因为一些预定的任务正在尝试开始。
fsutil dirty set d:
Run Code Online (Sandbox Code Playgroud)
与 chkdsk 尝试检查正在使用的卷时不同,它无法设置在重新启动时执行的检查类型。
reg*_*gex 10
要安排chkdsk下次重新启动,必须锁定要检查的驱动器,例如,将命令提示符的当前驱动器设置为同一驱动器。 打开驱动器上的文件是不够的。 此外,不得提供/x开关。
C:\Windows\system32>d:
D:\>chkdsk d: /f /r
The type of the file system is NTFS.
Cannot lock current drive.
Chkdsk cannot run because the volume is in use by another
process. Chkdsk may run if this volume is dismounted first.
ALL OPENED HANDLES TO THIS VOLUME WOULD THEN BE INVALID.
Would you like to force a dismount on this volume? (Y/N) n
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) y
This volume will be checked the next time the system restarts.
D:\>
Run Code Online (Sandbox Code Playgroud)
如果同时安排对系统驱动器和其他驱动器的检查,请最后请求对系统驱动器进行检查,以便对其他驱动器的检查仅执行一次。
感谢@Iain 和@peter-hahndorf。
| 归档时间: |
|
| 查看次数: |
16742 次 |
| 最近记录: |