如何从加密的主目录恢复数据


Answers:


7

或者,您可以使用ecryptfs-recover-privateUbuntu 11.04中现在包含的工具:

恢复您的加密私人目录


Error: Unwrapping passphrase and inserting into the user session keyring failed [-5]即使密码短语正确,有时也会给出提示。根据unix.stackexchange.com/questions/285541/…的说明,运行sudo ecryptfs-manager,然后按4(退出),然后ecryptfs-recover-private再次运行,会很有帮助。
Turion

7

这是从加密家庭中恢复数据的方法:(sdx应该是您的SATA驱动器)

sudo mkdir /recovery
sudo mount /dev/sdx /recovery
sudo mount -o bind /dev /recovery/dev
sudo mount -o bind /dev/shm /recovery/dev/shm
sudo mount -o bind /dev/pts /recovery/dev/pts
sudo mount -o bind /sys /recovery/sys
sudo mount -o bind /proc /recovery/proc
sudo mv /recovery/etc/resolv.conf /recover/etc/resolv.conf.orig
sudo cp /etc/resolv.conf /recovery/etc/resolv.conf

sudo mkdir /data-recovery
sudo mkdir /recovery/data-recovery
sudo mount --rbind /data-recovery /recovery/data-recovery
sudo chroot /recovery
su - user

ecryptfs-mount-private
cd /home/username

sudo mount -o bind /home/username /data-recovery

请记住,如果绑定了数据,请在完成数据处理后再关闭终端。绑定后,您应该能够/data-recovery(从LiveCD根目录)访问该文件夹,并使用GUI提取所有数据。如果最后一个绑定不起作用,则可以删除最后一个绑定,然后简单地cp -avr将所有内容从/home/usernamechroot 传输到chroot /data-recovery,它就会显示在liveCD中/data-recovery

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.