Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux 伺服器

Ubuntu 掛不上 NTFS 硬碟?用 force 參數強制掛載

今天使用 Linux 時,發現一顆 160G 的硬碟無法自動掛載,彈出的訊息如下:

$LogFile indicates unclean shutdown (0, 0)
Failed to mount '/dev/sdb1': 操作不支援
Mount is denied because NTFS is marked to be in use. Choose one action:
Choice 1: If you have Windows then disconnect the external devices by
clicking on the 'Safely Remove Hardware' icon in the Windows
taskbar then shutdown Windows cleanly.
Choice 2: If you don't have Windows then you can use the 'force' option for
your own responsibility. For example type on the command line:
mount -t ntfs-3g /dev/sdb1 /media/sdb8 -o force
Or add the option to the relevant row in the /etc/fstab file:
/dev/sdb1 /media/sdb8 ntfs-3g force 0 0

核心問題是:NTFS 磁碟上一次關閉時沒有正常卸除,被標記為「使用中」,因此拒絕掛載。

Ubuntu 給了兩條路:第一種是回到 Windows 用「安全移除硬體」正常關閉;第二種是強制掛載。我採用後者。

強制掛載做法

先建立掛載點(數字寫多少都無妨):

sudo mkdir /media/sdb8

確認系統有 ntfs-3g,7.10 以上版本通常預設就有;若沒有:

sudo apt-get install ntfs-3g

然後掛載:

sudo mount -t ntfs-3g /dev/sdb1 /media/sdb8 -o force

這樣手動掛載就成功了。要讓它開機自動掛,可把對應那行寫進 /etc/fstab。

不過 force 是「自行負責」的選項:如果該磁碟其實還掛在另一個系統上並持續寫入,強制掛載有損壞資料的風險。能回到 Windows 正常關機,永遠是比較安全的选择。

Copyright © Linux教程網 All Rights Reserved