在Linux修理損毀的NTFS格式檔案系統

很久很久之前家裡買了一台播放機然後買了一粒2TB的硬碟,之前都拿來下載BT種子,後來拿來備份家裡手機裡錄的影片,之前有一次硬碟就怪怪的,重format 一次之後,資料全消失就好了。但是現在存了太多重要的資料,所以要備份出來。

我家現在沒有Windows作業系統,透過VirtualBox 裡的 Windows 的 VM 無法讀取host (Mac OS X) 裡的 USB 裡 NTFS 格式硬碟。所以能直接在Ubuntu 裡去修復 NTFS 格式硬碟。

透過把 SATA 轉成 USB 插到NB上,Ubuntu 顯示這個錯誤訊息:

Error mounting: mount exited with exit code 13: $MFTMirr does not match $MFT (record 1).
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.

解法出乎意料的簡單,使用指令:

ntfsfix device

醬子就修理好了。


Install ntfs-3g with sudo apt-get install ntfs-3g. Then run the ntfsfix command on your NTFS partition.

ntfsfix v2.0.0 (libntfs 10:0:0)

Usage: ntfsfix [options] device

Attempt to fix an NTFS partition.

-h, --help             Display this help
-V, --version          Display version information

For example: ntfsfix /dev/hda6

Developers’ email address: [email protected] Linux NTFS homepage: http://www.linux-ntfs.org

Note: Whenever you’re dealing with partition, make sure that you have a complete backup just to be on the safe side.


sudo apt-get install testdisk

Then run it:

sudo testdisk

and follow the instructions. You must search for partitions and then write the changes.

Thanks to answerers here:


資料來源:

Unable to mount NTFS external hard drive
https://askubuntu.com/questions/500647/unable-to-mount-ntfs-external-hard-drive

相關文章

寫留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *