Ubuntu系统下,有的时候发现,挂载的NTFS文件系统硬盘无法访问。点击弹出类似问题:
Error mounting /dev/sda1 at /media/root/新加卷: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=0,gid=0" "/dev/sda1" "/media/root/新加卷"' 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/sda1': 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.
解决办法:
打开终端,输入下面命令:
sudo ntfsfix /dev/sda1
(其中 /dev/sda1 是上面标红位置,代表你无法访问的硬盘分区,终端输入sudo fdisk -l 查看!)
大多数情况下,NTFS分区是在win系统下压缩的卷,然后存完东西,拿来挂载ubuntu系统上了。ubuntu是etx4文件系统。