AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 798944
Accepted
regregex
regregex
Asked: 2016-08-25 13:52:04 +0800 CST2016-08-25 13:52:04 +0800 CST 2016-08-25 13:52:04 +0800 CST

如何安排表面扫描(chkdsk)以进行下一次重启,而不是现在?

  • 772

问题

我刚进

chkdsk d: /f /r

磁盘检查立即开始。我希望它在下次重新启动时运行,原因有很多:

  • 我可以根据需要收拾行装
  • 它会在发货后立即运行
  • 运行进程复合现有错误的机会更少
  • 没有竞争的磁盘活动(在任何分区上),硬盘不会抖动

现在,在我写完这个问题后,我面临着一两个小时的时间看屏幕,当 ETA 开始爬升时,每五分钟摇晃一下鼠标,因为一些计划的任务正在尝试开始。

错误的答案

fsutil dirty set d:

与尝试检查正在使用的卷时的 chkdsk 不同,这不能设置重新启动时要执行的检查类型。

windows chkdsk
  • 2 2 个回答
  • 19240 Views

2 个回答

  • Voted
  1. Best Answer
    regregex
    2016-08-25T14:44:54+08:002016-08-25T14:44:54+08:00

    要安排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:\>
    

    如果同时安排对系统驱动器和其他驱动器的检查,请最后请求对系统驱动器的检查,以便对其他驱动器的检查仅执行一次。

    感谢@Iain 和@peter-hahndorf。

    • 11
  2. user9517
    2016-08-25T14:02:15+08:002016-08-25T14:02:15+08:00

    如果您添加/x开关,它应该做您想做的事情,因为它将在下次重新启动时运行。

    C:\WINDOWS\system32>chkdsk /x /f /r c:
    The type of the file system is NTFS.
    Cannot lock current drive.
    
    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) 
    
    • 1

相关问题

  • 知道任何适用于 Windows 的快速可编写脚本的 ftp 客户端吗?[关闭]

  • 如果 Windows 服务崩溃,如何自动重新启动它?

  • 无法安排任务(访问被拒绝)

  • 物理机重启时自动重启虚拟机(VMWare)

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve