无法在 Linux Mint 上挂载 Veracrypt 分区(元数据保存在 Windows 缓存中)

Pun*_*con 3 windows linux mount veracrypt

我收到以下错误消息:

Metadata kept in Windows cache, refused to mount.
Failed to mount '/dev/mapper/veracrypt8': 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.
Run Code Online (Sandbox Code Playgroud)

我知道这个问题与Windows的休眠/快速启动有关,类似于这个问答:https : //askubuntu.com/questions/145902/unable-to-mount-windows-ntfs-文件系统由于休眠/。但是,我已经尝试过这些解决方案,但没有成功。我可以在 Windows 中很好地挂载分区,我可以在 Linux 中以只读模式挂载它。

我安装了 Windows 10 和 Linux Mint 18。有问题的分区上没有操作系统,并且是其磁盘上的唯一分区。

我试过的:

  • 在 Windows 中禁用快速启动
  • 在 Windows 中挂载分区,然后触发从 Windows 重新启动并进入 Linux 而不是回到 W​​indows
  • 检查分区上是否没有设置 Windows 页面文件。
  • 使用powercfg /h off.
  • 检查hiberfile.sys分区上是否没有(来自显示系统文件的 Windows 和处于只读模式的 Linux)。
  • 告诉 Linux 中的 Veracrypt-t ntfs-3g -o remove_hiberfile用作其挂载选项。
  • 在 Linux 中使用 Veracrypt 解锁(但不挂载)分区,然后尝试命令sudo mount -t ntfs-3g -o remove_hiberfile /dev/mapper/veracrypt8 /media/veracrypt8.

小智 5

当 Windows 休眠数据存在于加密分区本身(而不是包含加密卷文件的分区)时,就会发生这种情况。

这个解决方案应该适用于每个发行版,只要确保你安装了 ntfsfix。

  1. 挂载 VeraCrypt 卷并选中“文件系统 -> 不挂载”选项(单击“选项”按钮以在要求输入密码时查看此选项)。 截屏
  2. 右键单击列表中的音量并选择“属性”。“虚拟设备”属性显示您需要使用 ntfsfix 修复的设备。
  3. 运行以下命令:

    sudo ntfsfix [虚拟设备]

其中 [virtual-device] 是您在“虚拟设备”下看到的路径,例如“/dev/mapper/veracrypt1”。

  1. 重新挂载 VeraCrypt 卷,取消选中“不挂载”选项。