chkdsk (检查硬盘驱动器状态是否有任何交叉链接的文件)

舞夕之 发表于 2020-06-29 11:42
浏览次数:
在手机上阅读

chkdsk命令打开一个实用程序,该实用程序检查计算机的硬盘驱动器状态是否存在任何交叉链接的文件或其他错误。

查看英文版

目录

1 chkdsk 运行系统环境

2 chkdsk 语法

3 chkdsk 示例

chkdsk 运行系统环境

Windows 95

Windows 98

Windows xp

Windows vista

Windows 7

Windows 8

Windows 10

Windows NT

Windows ME

All Versions of MS-DOS

chkdsk 语法

Windows 8和Windows 10语法

检查磁盘并显示状态报告。

CHKDSK [volume[[path]file name]]] [/F] [/V] [/R] [/X] [/I] [/C] [/L[:size]] [/B] [/scan] [/spotfix]
volume 指定驱动器号(后跟冒号),安装点或卷名。
file name 仅FAT / FAT32:指定要检查碎片的文件。
/F 修复磁盘上的错误。
/ V 在FAT / FAT32上:显示磁盘上每个文件的完整路径和名称。
在NTFS上:显示清除消息(如果有)。
/ R 找到坏扇区并恢复可读信息(implies /F)。
/ L:size 仅限于NTFS:将日志文件的大小更改为指定的千字节数。如果未指定大小,则显示当前大小。
/X 如有必要,强制先卸除该卷。然后,该卷的所有打开的句柄都将无效(implies/ F)。
/I 仅适用于NTFS:对索引条目执行不太严格的检查。
/C 仅限于NTFS:跳过文件夹结构中的循环检查。
/ B 仅适用于NTFS:重新评估卷上的不良群集(implies /R)。
/scan 仅适用于NTFS:在卷上运行联机扫描。
/ forceofflinefix 仅限于NTFS :(必须与“ / scan”一起使用)绕过所有在线修复;找到的所有缺陷都将排队等待离线修复(即“ chkdsk / spotfix”)。
/perf 仅限于NTFS :(必须与“ / scan”一起使用)使用更多的系统资源来尽快完成扫描。此选项可能会对系统上运行的其他任务产生负面的性能影响。
/ spotfix 仅限于NTFS :(必须与“ / scan”一起使用)使用更多的系统资源来尽快完成扫描。此选项可能会对系统上运行的其他任务产生负面的性能影响。
/ sdcleanup 仅限于NTFS:垃圾收集不需要的安全描述符数据(implies/ F)。
/ offlinescanandfix 运行脱机扫描并修复该卷。

/ I or / C开关通过跳过对卷的某些检查来减少运行chkdsk所需的时间。

Windows Vista和Windows 7语法

检查磁盘并显示状态报告。

CHKDSK [volume[[path]file name]]] [/F] [/V] [/R] [/X] [/I] [/C] [/L[:size]] [/B]
volume 指定驱动器号(后跟冒号),安装点或卷名。
file name 仅FAT / FAT32:指定要检查碎片的文件。
/F 修复磁盘上的错误。
/ V 在FAT / FAT32上:显示磁盘上每个文件的完整路径和名称。
在NTFS上:显示清除消息(如果有)。
/ R 找到坏扇区并恢复可读信息(implies/ F)。
/ L:size 仅限于NTFS:将日志文件的大小更改为指定的千字节数。如果未指定大小,则显示当前大小。
/X 如有必要,强制先卸除该卷。然后,该卷的所有打开的句柄都将无效(implies/ F)。
/I 仅适用于NTFS:对索引条目执行不太严格的检查。
/C 仅限于NTFS:跳过文件夹结构中的循环检查。
/ B 仅适用于NTFS:重新评估卷上的不良群集(implies/ R)。

/ I or / C开关通过跳过对卷的某些检查来减少运行chkdsk所需的时间。

Windows 2000和Windows XP chkdsk语法

检查磁盘并显示状态报告。

CHKDSK [volume[[path]file name]]] [/F] [/V] [/R] [/X] [/I] [/C] [/L[:size]]
volume 指定驱动器号(后跟冒号),安装点或卷名。
file name 仅FAT:指定要检查碎片的文件。
/F 修复磁盘上的错误。
/ V 在FAT / FAT32上:显示磁盘上每个文件的完整路径和名称。
/ R 找到坏扇区并恢复可读信息(implies/ F)。
/ L:size 仅限于NTFS:将日志文件的大小更改为指定的千字节数。如果未指定大小,则显示当前大小。
/X 如有必要,强制先卸除该卷。然后,该卷的所有打开的句柄都将无效(implies/ F)。
/I 仅适用于NTFS:对索引条目执行不太严格的检查。
/C 仅限于NTFS:跳过文件夹结构中的循环检查。

/ I or / C开关通过跳过对卷的某些检查来减少运行chkdsk所需的时间。

具有NTFS的 Microsoft Windows 2000和Windows XP用户还应考虑使用chkntfs命令。

Windows 2000和Windows XP故障恢复控制台语法 

注意:以下选项仅在故障恢复控制台中可用。

检查磁盘并显示状态报告

CHKDSK [drive:] [/ p] | [/ r]
[drive:] 指定要检查的驱动器。
/ p 即使驱动器未标记为脏,坏,也要检查。
/ r 找到坏扇区并恢复可读信息(implies/ p)。

Chkdsk可以不带任何参数使用,在这种情况下,无需任何开关即可检查当前驱动器。您可以指定列出的开关。

Chkdsk需要Autochk.exe文件。Chkdsk会自动在启动(引导)目录中找到Autochk.exe。如果在启动目录中找不到它,则chkdsk会尝试查找Windows 2000安装CD。如果找不到安装CD,则chkdsk会提示您输入Autochk.exe的位置。

Windows 98和更早版本的语法

检查磁盘并显示状态报告。

CHKDSK [drive:][[path]file name] [/F] [/V]
[drive:] [path]  指定要检查的驱动器和目录。
file name 指定要检查碎片的文件。
/F 修复磁盘上的错误。
/ V 显示磁盘上每个文件的完整路径和名称。

键入不带参数的chkdsk以检查当前磁盘。

Windows 8 and Windows 10 syntax

Checks a disk and displays a status report.

CHKDSK [volume[[path]file name]]] [/F] [/V] [/R] [/X] [/I] [/C] [/L[:size]] [/B] [/scan] [/spotfix]
volume Specifies the drive letter (followed by a colon), mount point, or volume name.
file name FAT/FAT32 only: Specifies the files to check for fragmentation.
/F Fixes errors on the disk.
/V On FAT/FAT32: Displays the full path and name of every file on the disk.
On NTFS: Displays cleanup messages if any.
/R Locates bad sectors and recovers readable information (implies /F).
/L:size NTFS only: Changes the log file size to the specified number of kilobytes. If size is not specified, displays current size.
/X Forces the volume to dismount first if necessary. All opened handles to the volume would then be invalid (implies /F).
/I NTFS only: Performs a less vigorous check of index entries.
/C NTFS only: Skips checking of cycles in the folder structure.
/B NTFS only: Re-evaluates bad clusters on the volume (implies /R).
/scan NTFS only: Runs an online scan on the volume.
/forceofflinefix NTFS only: (Must be used with "/scan") bypass all online repair; all defects found are queued for offline repair (i.e., "chkdsk /spotfix").
/perf NTFS only: (Must be used with "/scan") uses more system resources to complete a scan as fast as possible. This option may have a negative performance impact on other tasks running on the system.
/spotfix NTFS only: (Must be used with "/scan") uses more system resources to complete a scan as fast as possible. This option may have a negative performance impact on other tasks running on the system.
/sdcleanup NTFS only: Garbage collect unneeded security descriptor data (implies /F).
/offlinescanandfix Runs an offline scan and fix on the volume.

The /I or /C switch reduces the amount of time required to run chkdsk by skipping certain checks of the volume.

Windows Vista and Windows 7 syntax

Checks a disk and displays a status report.

CHKDSK [volume[[path]file name]]] [/F] [/V] [/R] [/X] [/I] [/C] [/L[:size]] [/B]
volume Specifies the drive letter (followed by a colon), mount point, or volume name.
file name FAT/FAT32 only: Specifies the files to check for fragmentation.
/F Fixes errors on the disk.
/V On FAT/FAT32: Displays the full path and name of every file on the disk.
On NTFS: Displays cleanup messages if any.
/R Locates bad sectors and recovers readable information (implies /F).
/L:size NTFS only: Changes the log file size to the specified number of kilobytes. If size is not specified, displays current size.
/X Forces the volume to dismount first if necessary. All opened handles to the volume would then be invalid (implies /F).
/I NTFS only: Performs a less vigorous check of index entries.
/C NTFS only: Skips checking of cycles in the folder structure.
/B NTFS only: Re-evaluates bad clusters on the volume (implies /R).

The /I or /C switch reduces the amount of time required to run chkdsk by skipping certain checks of the volume.

Windows 2000 and Windows XP chkdsk syntax

Checks a disk and displays a status report.

CHKDSK [volume[[path]file name]]] [/F] [/V] [/R] [/X] [/I] [/C] [/L[:size]]
volume Specifies the drive letter (followed by a colon), mount point, or volume name.
file name FAT only: Specifies the files to check for fragmentation.
/F Fixes errors on the disk.
/V On FAT/FAT32: Displays the full path and name of every file on the disk.
/R Locates bad sectors and recovers readable information (implies /F).
/L:size NTFS only: Changes the log file size to the specified number of kilobytes. If size is not specified, displays current size.
/X Forces the volume to dismount first if necessary. All opened handles to the volume would then be invalid (implies /F).
/I NTFS only: Performs a less vigorous check of index entries.
/C NTFS only: Skips checking of cycles in the folder structure.

The /I or /C switch reduces the amount of time required to run chkdsk by skipping certain checks of the volume.

Microsoft Windows 2000 and Windows XP users who have NTFS should also consider using the chkntfs command.

Windows 2000 and Windows XP Recovery Console syntax 

Note:The following options are only available in the Recovery Console.

Checks a disk and displays a status report.

CHKDSK [drive:] [/p] | [/r]
[drive:] Specifies the drive to check.
/p Check even if the drive is not flagged dirty, bad.
/r Locates bad sectors and recovers readable information (implies /p).

Chkdsk may be used without any parameters, in which case the current drive is checked with no switches. You can specify the listed switches.

Chkdsk requires the Autochk.exe file. Chkdsk automatically locates Autochk.exe in the startup (boot) directory. If it's not found in the startup directory, chkdsk attempts to locate the Windows 2000 setup CD. If the installation CD cannot be found, chkdsk prompts for the location of Autochk.exe.

Windows 98 and earlier syntax

Checks a disk and displays a status report.

CHKDSK [drive:][[path]file name] [/F] [/V]
[drive:][path] Specifies the drive and directory to check.
file name Specifies the file(s) to check for fragmentation.
/F Fixes errors on the disk.
/V Displays the full path and name of every file on the disk.

Type chkdsk without parameters to check the current disk.

查看英文版

查看中文版

chkdsk 示例

chkdsk

显示上述所有信息,并报告所有交叉链接的文件。

chkdsk /f

将修复任何交叉链接的文件; 但是,在Windows 95或Windows 3.x中不要运行此命令。

chkdsk

Displays all information described above and also report any crossed linked files.

chkdsk /f

Will fix any crossed linked files; however, do not run this command while you are in Windows 95 or Windows 3.x.

查看英文版

查看中文版

其他命令行

cacls | call | CD | chcp | chdir | ctty | copy | convert | control | compact | chkntfs | choice | comp | command/cmd | cls | cipher | clip | color |

如此好文,分享给朋友
发表评论
验证码:
评论列表
共0条