#Ubuntu不能进入NTFS分区(error mounting)
装了Windows10与Ubuntu双系统后,在Ubuntu系统下想进入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.
可以使用ntfsfix这个命令解决,在软件包ntfs-3g中,因此需要先安装此软件包:
sudo apt-get install ntfs-3g
安装成功后,修复对应的ntfs分区(即错误中报出的分区名称):
sudo ntfsfix /dev/sda2
可以在终端输入如下命令查看分区的情况
sudo fdisk -l
显示如下,查找对应的ntfs分区
Disk /dev/sda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders, total 62914560 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000bb362
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 60817407 30407680 83 Linux
/dev/sda2 60819454 62912511 1046529 5 Extended
/dev/sda5 60819456 62912511 1046528 82 Linux swap / Solaris