挂载以退出代码13退出。

我有一个1TB的外置硬盘,最近格式化为NTFS。直到现在,它一直可以正常挂载在我Ubuntu 11.10系统上。我没有对操作系统或外置硬盘做任何改动。
出现的错误是:
Error mounting: mount exited with exit code 13: $MFTMirr does not match $MFT (record 0).
Failed to mount '/dev/sdb2': 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.

我确实阅读了这个这个。但是两者都没有帮到我。

我尝试安装ntfsfix,但现在已经没有这个软件包了。 我从未在Windows机器上使用过这个硬盘。如果我需要用另一台机器来修复这个问题,我可以使用Mac。

有什么建议吗?

这是我的sudo fdisk -l输出: GPT到底是什么?我没有做过那个。它曾经是NTFS。

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000586fb

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2148   961320312   480659082+  83  Linux
/dev/sda2       961320313   976773167     7726427+   5  Extended
/dev/sda5       961320314   976773167     7726427   83  Linux

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xcfd88605

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1  1953525167   976762583+  ee  GPT
2个回答

这对我真的很有效。
在一些最近的Linux发行版中,你需要安装ntfs-3g工具。尝试使用sudo apt-get install ntfs-3g命令进行安装,或者从http://www.tuxera.com/community/ntfs-3g-download/下载。ntfs-3g包括ntfsprogs工具。
ntfsprogs is a suite of NTFS utilities based around a shared library. The tools are available for free and come with full source code.

mkntfs: Create an NTFS volume on a partition
ntfscat: Print a file on the standard output
ntfsclone: Efficiently backup/restore a volume at the sector level
ntfscluster: Given a cluster, or sector, find the file
ntfsfix: Forces Windows to check NTFS at boot time
ntfsinfo: Dump a file’s attributes, completely
ntfslabel: Display or set a volume’s label
ntfslib: Move all the common code into a shared library
ntfsls: List directory contents
ntfsresize: Resize an NTFS volume
ntfsundelete: Find files that have been deleted and recover them
ntfswipe: Write zeros over the unused parts of the disk
ntfsdefrag: Defragment files, directories and the MFT
ntfsck: Perform consistancy checks on a volume
nttools: Command-line tools to view/change an offline NTFS volume, e.g. ntfscp, ntfsgrep, ntfstouch, ntfsrm, ntfsrmdir, ntfsmkdir
ntfsdiskedit: Walk the tree of NTFS ondisk structures (and alter them)

Be careful with these utilities, they might damage the filesystem, or your hard disk !

(来源:http://gnuwin32.sourceforge.net/packages/ntfsprogs.htm
在安装了ntfs-3g之后(sudo apt-get install ntfs-3g),您应该在终端中执行以下命令:
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访问您的文件。


2这是最好的答案。 - vinni_f
1请注意,应该使用实际的分区名称而不是设备名称。因此,应该使用/dev/sdb1,而不仅仅是/dev/sdb - Ciprian Tomoiagă
这确实有效。 - Vijay Chavda
最简单的解决方案是......为什么会出现这个错误? - Silent Spectator

GPT是GUID分区表,是用于Mac、基于UEFI的PC和超过2TiB大小的磁盘上的下一代分区系统。即使在基于BIOS的系统上,也可以在较小的磁盘上使用它,只要您不打算从这些磁盘启动Windows。正如fdisk警告消息所指出的那样,fdisk不支持GPT,因此您不应该尝试在此磁盘上使用fdisk。相反,请使用gdisk(作为gdiskgptfdisk软件包的一部分,具体取决于您如何安装它)或parted
GPT与你的问题无关。挂载错误信息表示I/O错误,很可能是硬件故障。你可以尝试使用像gsmartcontrol(图形界面)或smartctl(文本模式)这样的工具在磁盘上运行SMART测试。这应该能发现任何硬件故障,但SMART测试的输出可能很难解释。由于你说它是一个外部驱动器,也有可能是松动或损坏的电缆,所以你可以尝试重新插拔或更换电缆。电缆故障不会在SMART测试中显示出来。
更一般地说,如果实际上不是硬件故障,你无法从Linux或OS X对NTFS进行充分的文件系统测试;只有Windows提供了这样的工具。如果需要对NTFS磁盘进行文件系统检查,你可能无法挂载它,因此你必须能够定期将NTFS磁盘连接到Windows系统以处理此类问题。如果你从不在Windows系统上使用该磁盘,那么NTFS就不适合用于它。
对于仅限Linux使用的情况,最好使用Linux原生文件系统,如ext2fs、ext3fs、ext4fs、ReiserFS、XFS、JFS或者Btrfs。(不过,我不会在1TB硬盘上使用ext2fs。)如果你要在Linux和OS X两个系统上使用同一硬盘,我会选择FAT或HFS+文件系统。尽管FAT有一定年龄,但它仍然是跨操作系统支持最好的文件系统。然而,FAT的最大文件大小限制为4GiB,这可能会成为存储多媒体文件或其他大文件时的问题。对于Linux/OS X使用来说,HFS+还算可以,前提是你要知道如何禁用日志系统并处理权限问题。(如果启用了日志系统,Linux就不能直接写入HFS+,除非你使用覆盖挂载选项,但这可能会降低安全性。)

感谢您的回答。然而,由于我计划在Linux/OsX/Win7上使用硬盘,所以我选择了NTFS系统。这个硬盘没有日志记录。在硬盘上写入访问时出现了问题。我不得不再次格式化它(为NTFS)并且chown所有文件夹。到目前为止这样做是有效的。 - dearN