我有一个 NTFS 格式的 U 盘。当我将它连接到 Windows 系统时,它工作正常。但是,当我尝试在 Linux 机器上安装 USB 记忆棒时收到此错误输出:
Error mounting /dev/sdb1 at /media/: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000" "/dev/sdb1" "/media/sorin/LICENTA"' exited with non-zero exit status 13: $MFTMirr does not match $MFT (record 0).
Failed to mount '/dev/sdb1': 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.
Run Code Online (Sandbox Code Playgroud)
我该怎么做才能解决这个问题并使我的 U 盘再次在 Linux 上可用?
Tho*_*ard 16
您看到的错误表明文件系统不干净,需要由 Windows 检查chkdsk。有成分为NTFS文件系统($MFT以及$MFTMirr分别在这种情况下),这说的是在磁盘上。这些文件不再相互匹配,这表明可能存在某种类型的文件系统损坏。
但是因为它是 NTFS,所以真正修复 NTFS 的唯一方法是 Windows 的chkdsk实用程序。(有一个ntfsfix命令,但它的修复质量与 Windows 用于检查 NTFS 磁盘的实用程序的质量不同)。
当您下次将驱动器连接到 Windows 系统时,如果它要求您扫描和修复驱动器,请允许 Windows 扫描和修复驱动器。它将尝试修复文件系统中阻止您在 Linux 中安全挂载的错误。
Jad*_*eye 15
Linux 用户需要使用ntfsprogs实用程序。在最近的 Linux 版本上,您需要安装 ntfs-3g 实用程序,因此:
sudo apt-get install ntfs-3g或从ntfs-3g-download 下载
ntfsprogs是一套基于共享库的 NTFS 实用程序。
这些工具是免费提供的,并带有完整的源代码。
小心使用这些实用程序,它们可能会损坏文件系统或您的硬盘!
与ntfsprogs安装(sudo apt-get install ntfsprogs),
执行在终端以下命令:
$ sudo ntfsfix /dev/partitionName
执行此命令后,您应该会看到以下输出:
~$ sudo ntfsfix /dev/sdb3 Mounting volume... FAILED Attempting to correct errors... Processing $MFT and $MFTMirr... Reading $MFT... OK Reading $MFTMirr... OK Comparing $MFTMirr to $MFT... FAILED Correcting differences in $MFTMirr record 0...OK Processing of $MFT and $MFTMirr completed successfully. Setting required flags on partition... OK Going to empty the journal ($LogFile)... OK NTFS volume version is 3.1. NTFS partition /dev/sdb3 was processed successfully.
在这一步之后,您应该能够像往常一样访问您的外部驱动器分区,安装或使用 nautilus 来访问您的文件。
来源:http : //gnuwin32.sourceforge.net/packages/ntfsprogs.htm
| 归档时间: |
|
| 查看次数: |
17021 次 |
| 最近记录: |