1. 程式人生 > >雙系統Ubuntu無法訪問windows磁盤

雙系統Ubuntu無法訪問windows磁盤

雙系統

雙系統:一個系統是Ubuntu 14.04,一個是win10;
使用Ubuntu時發現不能打開windows上面的磁盤分區,並報錯如下:

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

解決辦法:

利用ntfs-3g修復掛載

1 安裝ntfs-3g

sudo apt-get install ntfs-3g

2 修復掛載

sudo ntfsfix /dev/sda5

/dev/sda5: 我的磁盤/media/LX/study掛載到文件/dev/sda5

雙系統Ubuntu無法訪問windows磁盤