如何从 Ubuntu 修复 NTFS?

use*_*607 2 format mount drive

问题陈述:我有一个无法安装的外部 USB 驱动器。

语境:

  1. 我既没有也不想访问 MS Windows。
  2. 见 1。
  3. 外部 USB 驱动器是 NTFS 格式。
  4. 没有RAID。
  5. 我多年来一直是 Linux 用户,并不害怕 CLI。
  6. 我宁愿不擦拭它并从头开始,但如果我无法避免它并不重要。

错误看起来像:

Error mounting /dev/sdc1 at /media/dude/External HD: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000" "/dev/sdc1" "/media/dude/External HD"' exited with non-zero exit status 13: $MFTMirr does not match $MFT (record 0).
Failed to mount '/dev/sdc1': Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details.
 (udisks-error-quark, 0)
Run Code Online (Sandbox Code Playgroud)

Tho*_*ard 8

您可以尝试使用ntfsfix以修复 NTFS 卷。这是一个“解决方案”,因为它可以修复简单的错误,例如 MFT 和 MFTMirror 不匹配,以及一些小的文件系统不一致。请注意,如果nftsfix不修复驱动器以使其可用,则您需要使用久经考验的“使用 Windows 系统修复 NTFS”解决方案。

sudo ntfsfix /dev/sdXY (其中 X 和 Y 是驱动器设备的字母,Y 是分​​区号,您可以关闭这些数据,sudo fdisk -l但在我看来这应该/dev/sdc1适用于您的特定情况)应该可以工作。

请注意,修复 NTFS 问题的仍然经过验证的“完整”解决方案是 Windows 系统或 Windows 启动盘(甚至是您将外部 USB 驱动器传递到的 Windows VM),并chkdisk从 Windows 系统使用。