如何从以前的Ubuntu安装中恢复加密数据?

我试图从10.10升级到11.04,但它崩溃了。 它无法安装磁盘驱动器,因此我在不删除以前的驱动器的情况下进行了新的安装。 现在我无法访问您的私人数据访问权限。

我有同样的问题,并从Dustin Kirkland的博客中发现了ecryptfs-recover-private 。 该实用程序交互式地询问您的登录密码,然后将我的旧主目录安装在/tmp/ecrypt.hAsHeD中,我现在可以复制出我需要的所有内容。

来自@ shapr的回答 :

我有同样的问题,并从Dustin Kirkland的博客中发现了ecryptfs-recover-private 。 该实用程序交互式地询问您的登录密码,然后将我的旧主目录挂载到/tmp/ecrypt.hAsHeD

我必须添加我的/.Private目录才能使它工作:

 sudo ecryptfs-recover-private /home/.ecryptfs/david/davidgb/.Private [sudo] Mot de passe de david : INFO: Found [/home/.ecryptfs/david/davidgb/.Private]. Try to recover this directory? [Y/n]: y INFO: Found your wrapped-passphrase Do you know your LOGIN passphrase? [Y/n] y INFO: Enter your LOGIN passphrase... Passphrase: Inserted auth tok with sig [83f90551aa14b856] into the user session keyring INFO: Success! Private data mounted at [/tmp/ecryptfs.Gko7hLsl].