操作系统:centos5

今天想用下U盘,mount的时候出现故障:

[wyw@personal ~]$ sudo mount /dev/sdb1 /mnt
$MFTMirr does not match $MFT (record 0).
Failed to mount '/dev/sdb1': 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.
开始考虑是不是有什么RAID服务没启,因为前段时间在搞系统优化,是不是把什么服务down了,检查了一下,也没发现什么。老路子,google大神,好不容易找到篇介绍http://www.code007.org/?p=241(墙太厚了,呵呵),字太小了,我把主要的说下吧。主要是利用ntfsprogs utility包里的工具ntfsfix修理一下,感觉应该是把类似链接号什么的修理好,不愿继续查了,懒,呵呵。

[wyw@personal ~]$ sudo ntfsfix /dev/sdb1
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/sdb1 was processed successfully.
[wyw@personal ~]$ sudo mount /dev/sdb1 /mnt/u