无法挂载NTFS驱动器“磁盘包含一个不干净的文件系统”

我尝试从ubuntu访问我的NTFS驱动器时收到错误。

Unable to access “My Drive” Error mounting /dev/sda6 at /media/ubuntu/Media Center: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda6" "/media/rolindroy/Media Center"' 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/sda6': 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/sdXY 

其中XY是分区

例如sda2sdb1

然后,安装:

 sudo mount -o rw /dev/sdXY 

我通过cmd解决了关闭Windows的问题

 shutdown /s 

这是因为Windows 8和10提供了“快速启动”选项,该选项取决于“非完整”关闭

您可以按照“电源选项”下的这些步骤禁用快速启动

https://itsfoss.com/solve-ntfs-mount-problem-ubuntu-windows-8-dual-boot/

如果您有权在Windows下启动和安装驱动器, 请执行消息指示并将其从hibernate或快速重新启动或任何其他特殊状态中删除。 您必须通过启动到Windows来执行这些操作。

您也可以从Windows上运行chkdsk 。

如果您没有在Windows下为驱动器立即启动访问,请按照消息说明并将其挂载为只读。

然后访问驱动器并复制重要数据。 然后,您可以通过重新格式化分区并恢复备份数据来修复Ubuntu下的驱动器。

将驱动器安装为只读:

 $ sudo mount -o ro /dev/[partition /media/[mounting point] 

另一种选择是使用ntfsfix修复Ubuntu下的磁盘:

 $ ntfsfix /dev/[partition] 

这是因为您的“Windows”系统处于中间状态,可能处于hibernate模式或未完全关闭,尝试在Windows上重启系统并完全关闭系统并检查Ubuntu上的挂载,它应该可以正常工作。

登录到Windows,然后重新启动到Ubuntu。 适合我! 但严重的是,我不知道是否有永久解决方案。

这应该是因为您的“Windows”系统处于中间状态(不是在关闭硬盘驱动器之前完全关闭系统,例如使用hibernate模式)。

在Windows上重新启动,完全关闭系统,它应该工作。

如果在命令行术语会话中尝试此操作,则应该有这种解释

做:

 sudo mount -o ro /dev/[partition /media/[mounting point] 

输出将是:

 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.