1. 程式人生 > >解決linux系統無法開啟windows硬碟問題

解決linux系統無法開啟windows硬碟問題

使用ubuntu過程中,發現有時候一直打不開windows的盤,提示為不能訪問D盤:

Error mounting /dev/sda5 at /media/ljx/10DE17C410DE17C4: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda5" "/media/ljx/10DE17C410DE17C4"' 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/sda5': 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.

解決辦法如下:

       1,檢查linux有沒有安裝ntfsfix工具:ntfsfix -V

       2,如果沒有,使用sudo apt-get install ntfsprogs進行安裝

       3,執行sudo ntfsfix /dev/sdb5(指定硬碟,錯誤中可以看到)

即可完成修復!