ntfsfix 无法结束

ntfsfix 无法结束

执行后:

ntfsfix /dev/sda1

它被卡住了。

终端中的最后一行输出是:

Going to empty the journal ($LogFile)... OK

还有一个闪烁的光标。

可以安装 ro,文件系统似乎正常,但 Windows 无法启动。

root@sysresccd /root % ntfsfix /dev/sda1
Mounting volume... The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Failed to sync device /dev/sda1: Input/output error
FAILED
Attempting to correct errors... 
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition... OK
Going to empty the journal ($LogFile)... OK
Failed to sync device /dev/sda1: Input/output error
Failed to fsync device /dev/sda1: Input/output error
Checking the alternate boot sector... OK
NTFS volume version is 3.1.
NTFS partition /dev/sda1 was processed successfully.
Failed to sync device /dev/sda1: Input/output error
Failed to fsync device /dev/sda1: Input/output error
Failed to unmount partition
root@sysresccd /root %

启动 Windows 救援 CD 并执行某些操作会导致错误。Chkdsk 出现 I/O 错误。

该磁盘是 SSD,状况良好(CrystalDiskInfo)

答案1

ntfsfix /dev/sdX用于修复驱动器上的任何潜在错误,该命令的完整输出应类似于以下内容:

Mounting volume... The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
FAILED
Attempting to correct errors...
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition... OK
Going to empty the journal ($LogFile)... OK
Checking the alternate boot sector... OK
NTFS volume version is 3.1.
NTFS partition /dev/sdc1 was processed successfully.

如果您被困住了Going to empty the journal ($LogFile)... OK,这可能意味着命令仍然在Checking the alternate boot sector... OK,我建议您等待,这个任务可能需要一些时间,具体取决于您的硬盘。

此外,如果您知道您的硬盘可能有坏扇区,那么答案如下:损坏的 NTFS 文件系统导致 ntfsfix 挂起

chkdsk另一种选择是使用Windows 机器的命令检查您的硬盘。

希望这可以帮助。

相关内容