`
huangjun_mail
  • 浏览: 117648 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

解决‘$MFTMirr does not match $MFT (record 0)’

阅读更多

最近在ubuntu上COPY 文件到移动硬盘上(NTFS),中途挂掉,结果无法访问NTFS移动硬盘,

按照在墙外的某wordpress blog,解决了这个问题~

 

How to fix ‘$MFTMirr does not match $MFT (record 0)’

Sometimes, when you are executing a file transfer between your computer hard drive and an external drive and your computer shutdown for some reason (in my case, no battery/ac power) it’s pretty common to get some errors on external drives that uses NTFS as they file system.

The most common message is:

Error mounting: mount exited with exit code 13: $MFTMirr does not match $MFT (record 0).
Failed to mount ‘/dev/sdb3′: 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.

One workaround for this issue is to do as the message says, boot on Windows and try to use the awesome NTFS tool that Windows offer. But a perfect solution for a Linux users is to use the ntfsprogs utility.

UPDATE: On some recent Linux releases, you need to install ntfs-3g utilties.  Try sudo apt-get install ntfs-3g or download from http://www.tuxera.com/community/ntfs-3g-download/

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 !

With ntfsprogs installed (sudo apt-get install ntfsprogs) you should execute the following commands in a terminal:

sudo ntfsfix /dev/partitionName

After this command you should expect the following output:

~$ 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.

After this step you should be able to access your external drive partition as usual, mount or use nautilus to access your files.

Source:  http://gnuwin32.sourceforge.net/packages/ntfsprogs.htm

分享到:
评论

相关推荐

    NTFS文件系统元文件.pdf

    $MFT自身用0号MFT项描述,其中包含一个$BITMAP属性,用于标记哪些MFT项已被分配使用。$MFT文件会随着文件系统中文件和目录的增加而增长,并且有可能发生碎片化,但NTFS会预留空间以适应其扩展需求。需要注意的是,$...

    手工修复NTFS DBR

    重建DBR时,需要将一个健康的NTFS分区的DBR复制到损坏分区的0号扇区,然后修改复制过来的DBR中的参数,包括每簇扇区数、扇区总数、$MFT和$MFTMirr的起始簇号。这些参数必须根据实际的磁盘情况进行精确计算,因为错误...

    手工恢复文件系统的DBR.

    DBR,即DOS Boot Record(DOS引导记录),是磁盘上的一个重要区域,它包含了启动信息以及文件系统的关键元数据。在文件系统出现故障或损坏时,恢复DBR能够帮助恢复数据和文件系统的正常运行。 在这个实验中,我们以...

    NTFS数据恢复实验的实验原理 2003.pdf

    每个文件在MFT中对应一个或多个文件记录(MFT File Record)。记录大小通常是1KB,不随簇大小变化。文件记录中包含文件的属性、位置信息等。MFT记录按照顺序编号,从0开始,且物理上连续存储。其中的前6个记录是系统...

    mft.rar_For the Record_MFT

    《NTFS Linux内核驱动中的MFT记录处理详解》 在Linux系统中,NTFS(New Technology File System)是微软Windows操作系统广泛使用的文件系统之一。为了在Linux环境下支持NTFS,Linux-NTFS项目应运而生,它提供了一个...

    NTFS元数据文件表.pdf

    **$MFTMirr** 是$MFT的备份,它保存了$MFT前几个记录的副本,用于提高系统的容错性。当$MFT损坏时,可以利用$MFTMirr恢复部分信息。 **$LogFile** 是NTFS的日志文件,记录了对文件系统的所有更改操作,确保在系统...

    NTFS文件系统介绍.ppt

    - **元文件**:元文件是NTFS中的特殊文件,它们管理文件系统的基础结构,如$MFT用于存储文件信息,$MFTMirr用于备份$MFT,以防止主MFT损坏时恢复。 **MFT记录详解** MFT记录包含以下关键部分: - **文件记录号...

    NTFS:解读NTFS

    $MFTMirr是$MFT的镜像副本,用于在$MFT损坏时恢复数据。每MFT记录的簇数和每索引簇数等参数决定了MFT的存储策略,以确保数据的可靠访问。卷标则是用于标识卷的8字节字段,它有助于用户识别不同的磁盘分区。 NTFS...

    NTFS数据恢复实验的实验原理win2003.pdf

    MFT自身也是一个文件,且在MFT记录数组中占有特殊位置,编号从0开始。 NTFS分区的结构包括分区引导扇区、主文件表、系统文件和文件区域。分区引导扇区负责启动操作系统,主文件表(MFT)存储文件系统的关键元数据,...

    $mft_80属性生成工具

    标题中的“$mft_80属性生成工具”是指针对NTFS文件系统中主文件表(Master File Table, MFT)的一种特殊属性处理工具。在NTFS文件系统中,MFT是核心组件,它记录了文件系统中所有文件和目录的信息。每个MFT条目包含...

    能在WINDOWS下使用的GHOST

    标题中的“能在WINDOWS下使用的GHOST”指的是在Windows操作系统环境下运行的Ghost软件,这是一个非常知名的系统备份和恢复工具。Ghost,全称为Ghost System Imaging Technology,最初由赛门铁克(Symantec)公司开发...

    NTFS Cheat Sheet-计算机科学

    Sector Sect/clustres10 0x000000 unused Mediadesc0x0000 Sect /trackNumberheadsHidden Sectors20 unused Total Sectors30 Logical Cluster of $MFT Logical Cluster of $MFTMirr40 Clust / File record segment ...

    NTFS_and_boot_code

    2. **$MFTMirr (Mirror of Master File Table)**:$MFT 的镜像备份,通常包含了前四个 MFT 记录单元的信息。 3. **$LogFile**:记录了对分区的所有更改操作的日志信息,有助于恢复损坏的数据。 4. **$Volume**:保存...

    MFT与OFT简介MFT与OFT简介

    **MFT(Master File Table)与OFT(Object File Table)是两个在计算机文件系统中至关重要的概念,尤其是在NTFS(New Technology File System)中。本文将深入探讨这两个概念,帮助读者理解它们的工作原理和重要性。...

    Windows MFT表文件结构

    【Windows MFT表文件结构详解】 Windows 操作系统的文件系统NTFS(New Technology File System)在设计时,特别强调了安全性和稳定性。其中,MFT(Master File Table)是NTFS的核心组成部分,它存储了卷上的所有...

    NTFS文件系统内核分析与数据安全

    这些元文件对于文件系统的正常运行至关重要,包括但不限于$MFT、$MFTMirr、$LogFile等。 - **$MFT**(Master File Table,主文件表):这是NTFS文件系统的核心,包含有关文件系统中所有文件的信息。每个文件都有一...

    ParseNTFS(看雪)

    NTFS的核心组成部分包括MFT(主文件表)、VFT(Volume File Table)、$Bitmap、$Boot、$MFTMirr等关键元数据文件。MFT记录了文件和目录的所有信息,VFT则用于映射MFT中的记录。$Bitmap跟踪磁盘上的簇是否被占用,而...

    011-WINHEX之从数据恢复到删盘跑路.pdf

    NTFS文件系统具有特定的存储规则,其中的元文件(如$MFT、$MFTMIRR、$BOOT、$DBR)用于管理存储介质的内容。$MFT是主文件表,存储文件名和文件区间索引等信息,是数据恢复的重点关注对象。$MFTMIRR是$MFT的备份,但...

    Ghost11.02极限压缩

    Ghost11.02极限压缩虽然不是最新的,但是很稳定, 解压后打开"Ghost11.02.bat"就能以最高的压缩比备份,切勿更改文件名!

Global site tag (gtag.js) - Google Analytics