我的希捷硬盘是320G的,我的台式机坏了之后,买了个ORICO的硬盘座裸奔。今天可能是没有umount就拔了数据线,导致我想把硬盘再mount到我笔记本时,报“$MFTMirr does not match $MFT (record 0)”错,把解决过程记录下来。

 

完整报错:

[root@CC systems]# mount /dev/sdc1 /mnt$MFTMirr does not match $MFT (record 0).Failed to mount '/dev/sdc1': Input/output errorNTFS is either inconsistent, or there is a hardware fault, or it's aSoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windowsthen reboot into Windows twice. The usage of the /f parameter is veryimportant! If the device is a SoftRAID/FakeRAID then first activateit and mount a different device under the /dev/mapper/ directory, (e.g./dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentationfor more details.
[root@CC systems]# fsck /dev/sdc1fsck from util-linux 2.21.2$MFTMirr does not match $MFT (record 0).

解决工具:

ntfsrpogs 工具箱
  • 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)

注意:以上工具请慎用,否则会导致数据丢失,甚至破坏硬盘

 

解决办法:

[root@CC systems]# yum install ntfsprogsLoaded plugins: fastestmirror, langpacks, presto, refresh-packagekit, remove-              : with-leavesLoading mirror speeds from cached hostfile * fedora: opensource.nchc.org.tw * rpmfusion-free: mirrors.163.com * rpmfusion-free-updates: mirrors.163.com * updates: mirrors.ustc.edu.cnPackage 2:ntfsprogs-2012.1.15-5.fc17.x86_64 already installed and latest versionNothing to do
[root@CC systems]# ntfsfix /dev/sdc1Mounting volume... $MFTMirr does not match $MFT (record 0).FAILEDAttempting to correct errors...Processing $MFT and $MFTMirr...Reading $MFT... OKReading $MFTMirr... OKComparing $MFTMirr to $MFT... FAILEDCorrecting differences in $MFTMirr record 0...OKProcessing of $MFT and $MFTMirr completed successfully.Setting required flags on partition... OKGoing to empty the journal ($LogFile)... OKNTFS volume version is 3.1.NTFS partition /dev/sdc1 was processed successfully.[root@CC systems]# mount /dev/sdc1 /mnt