天天看點

Linux挂載NTFS硬碟錯誤解決辦法

工作中挂在windows硬碟的時遇到錯誤,記錄下來以供學習的人參考。

下載下傳ntfs-3g軟體:

<code>yum </code><code>install</code> <code>ntfs* -y</code>

挂在ntfs硬碟:

<code>[root@iZ28wzpkmmqZ ~]</code><code># mount -t ntfs-3g /dev/xvdb1 /opt/</code>

<code>NTFS signature is missing.</code>

<code>Failed to </code><code>mount</code> <code>'/dev/xvdb1'</code><code>: Invalid argument</code>

<code>The device </code><code>'/dev/xvdb1'</code> <code>doesn't seem to have a valid NTFS.</code>

<code>Maybe the wrong device is used? Or the whole disk instead of a</code>

<code>partition (e.g. </code><code>/dev/sda</code><code>, not </code><code>/dev/sda1</code><code>)? Or the other way around?</code>

提示硬碟錯誤,修複一下:

<code>[root@iZ28wzpkmmqZ ~]</code><code># ntfsfix /dev/xvdb1</code>

<code>Mounting volume... NTFS signature is missing.</code>

<code>FAILED</code>

<code>Attempting to correct errors... NTFS signature is missing.</code>

<code>Failed to startup volume: Invalid argument</code>

<code>Trying the alternate boot sector</code>

<code>Unrecoverable error</code>

<code>Volume is corrupt. You should run chkdsk.</code>

磁盤還是錯誤,錯誤提示建議用chkdsk修複:

因為硬碟是别人在阿裡雲上打的快照然後發給我的,我也沒在windows上測試是否正常。現在不得不把這塊硬碟挂到windows上了,檢查果然有問題,然後修複了一下。

重新挂到linux下,正常。

本文轉自 王家東哥 51CTO部落格,原文連結:http://blog.51cto.com/xiaodongge/1845547

繼續閱讀