挂起退出,退出代码为13

我有一个1TB外置硬盘,我最近格式化为NTFS。 直到现在,我的Ubuntu 11.10罚款一直在增加。 我没有做任何改变来影响我的操作系统或我的exhdd。

我得到的错误是:

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, (eg /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 

GPT是GUID分区表,它是用于Mac,基于UEFI的PC和超过2TiB的磁盘的下一代分区系统。 即使在基于BIOS的系统上,它也可以用在较小的磁盘上,只要您不希望从这些磁盘启动Windows。 正如fdisk警告消息所述, fdisk不支持GPT,因此您不应尝试在此磁盘上使用fdisk 。 相反,使用gdiskgdiskgptfdisk包的一部分,具体取决于您的安装方式)或parted

但是,GPT与您的问题没有任何关系。 mount错误消息表示I / O错误,这很可能表示硬件故障。 您可以尝试使用gsmartcontrol (GUI)或smartctl (text-mode)等工具在磁盘上运行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仍然是最受支持的跨操作系统文件系统。 但是,如果您存储多媒体或其他大文件,则最大文件大小为4GiB时会出现问题。 如果你了解如何禁用日志和处理权限问题,HFS +可以用于Linux / OS X. (如果启用了日志,Linux将不会写入HFS +,除非您使用覆盖挂载选项,这可能会降低安全性。)

这真的对我有用。

在最近的一些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, eg 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来访问您的文件。