安装退出,退出代码 13

dea*_*arN 22 mount ntfs external-hdd gpt

我有一个 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, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details.
Run Code Online (Sandbox Code Playgroud)

我确实读过这个这个。但两者都没有帮助。

我尝试安装,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
Run Code Online (Sandbox Code Playgroud)

小智 41

这真的对我有用。

在某些最新的 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 !
Run Code Online (Sandbox Code Playgroud)

(来源:http : //gnuwin32.sourceforge.net/packages/ntfsprogs.htm

安装 ntfs-3g ( sudo apt-get install ntfs-3g) 后,您应该在终端中执行以下命令:

sudo ntfsfix /dev/partitionName
Run Code Online (Sandbox Code Playgroud)

执行此命令后,您应该会看到以下输出:

~$ 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.
Run Code Online (Sandbox Code Playgroud)

在这一步之后,您应该能够像往常一样访问您的外部驱动器分区,安装或使用 nautilus 来访问您的文件。

  • 这是最好的答案 (2认同)

Rod*_*ith 3

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

不过,GPT 与您的问题没有任何关系。安装错误消息指示 I/O 错误,这很可能指示硬件故障。gsmartcontrol您可以尝试使用(GUI)或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 仍然是支持最好的跨操作系统文件系统。不过,它在最大文件大小为 4GiB 时存在问题,如果您存储多媒体或其他大文件,这可能会成为问题。HFS+ 适合 Linux/OS X 使用,前提是您了解如何禁用日志并处理权限问题。(如果启用了日志,Linux 将不会写入 HFS+,除非您使用覆盖安装选项,这可能会降低安全性。)