標籤:ubutu ntfs partion err ntfsfix uuid
5.12 為了給學生改論文,在UPC上登入了Windows 8.1,晚上順利關機。今日切換登陸Ubuntu 14.04分區,發現原來可以正常訪問的windows下的NTFS分區都被鎖死,提示如下錯誤:
Error mounting /dev/sda2 at /media/love/Mis Archiivos: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda2" "/media/love/Mis Archiivos"‘ exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount ‘/dev/sda2‘: Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the ‘ro‘ mount option.
google了下,得到的反饋資訊是可能由於Windows 未被正常關閉產生了錯誤,導致系統誤以為存在臨時快取檔案,禁止訪問所致。沒辦法,誰叫Linux.vs.Windows呢......
解決的方法也不難 原理就是在Ubuntu下運行ntfs fix 工具 把誤判錯誤銷掉,以下均在Terminal下完成:
1.sudo apt-get install ntfsprogs2.sudo ntfsfix /dev/sdb2
解釋下,第一條命令安裝ntfs命令包(要求連網狀態);第二條調用ntfsfix命令對指定硬碟(樣本當中UUID"/dev/sdb2"顯示的是裝置管理員下硬碟b的第二分區.....)進行修複。至於指定的硬碟盤符如何顯示:參照以下步驟(須在1.2步驟之前來完成)
sudo blkid
顯示效果
基本上可以解決上述問題.
做完這個,突然想起jjcao的名言:“一切問題都可在網路中解決”,搞不定只有兩種原因:1.incorrect keywords;2.your lazy style.