ecryptfs 恢复加密主文件夹时出错

ecryptfs 恢复加密主文件夹时出错

我同时启动 Windows 和 Ubuntu。显然,我在安装 Ubuntu 时加密了我的主文件夹,尽管我不记得选择过这一点。我尝试在运行 Windows 时访问 Ubuntu 分区上的文件,但现在 ecryptfs 使我无法访问我的主文件夹。

有一个 README 文件,当我单击它时,我收到“无法使用此链接,因为其目标“\usr\share\ecryptfs-utils\ecryptfs-mount-private.txt”不存在。”

有一个名为 Access-Your-Private-Data.desktop 的文件,当我单击它时,出现“无法使用此链接,因为其目标“\usr\share\ecryptfs-utils\ecryptfs-mount-private.desktop”不存在。”

如果我导航到 \usr\share\ecryptfs-utils\,我会发现 ecryptfs-mount-private.desktop 就在那里。当我点击它时,一个窗口打开然后很快关闭,启动栏上出现一个问号框,一分钟后它消失了,似乎什么也没做。

在网上阅读其他帖子,我尝试了一下sudo ecrypt-recover-private,然后来到这里

chris@chris-M11xR3:~$ sudo ecryptfs-recover-private
INFO: Searching for encrypted private directories (this might take a while)...
INFO: Found [/home/.ecryptfs/chris/.Private].
Try to recover this directory? [Y/n]: y
INFO: Found your wrapped-passphrase
Do you know your LOGIN passphrase? [Y/n] nixie09
INFO: To recover this directory, you MUST have your original MOUNT passphrase.
INFO: When you first setup your encrypted private directory, you were told to record
INFO: your MOUNT passphrase.
INFO: It should be 32 characters long, consisting of [0-9] and [a-f].

Enter your MOUNT passphrase: 

现在的问题是我不知道密码。我见过一些建议使用 ecrypt-unwrap-passphrase 恢复密码的东西,但我得到了这个

chris@chris-M11xR3:~$ sudo ecryptfs-unwrap-passphrase
[sudo] password for chris: 
stat: No such file or directory
Usage:

ecryptfs-unwrap-passphrase [file]
or
printf "%s" "wrapping passphrase" | ecryptfs-unwrap-passphrase [file] -

我又陷入困境了。

请帮忙,我急需我今天早些时候处理的一些文件。

答案1

我觉得你放弃得太早了ecryptfs-recover-private,看起来当你问你

Do you know your LOGIN passphrase? [Y/n]

您无需按 Enter 键或按 y 然后按 Enter 键,而是输入以 开头的内容n,脚本会将其理解为“否”,然后要求您输入挂载密码。

因此,请再试一次,但在要求输入登录密码时输入 Y。


并且,如果您必须再次运行,请尝试在/周围的某个地方ecryptfs-unwrap-passphrase寻找该文件,然后告诉解包脚本它的具体位置。wrapped-passphrase/home/.ecryptfs/chris/.Private

相关内容