我正在尝试从外部驱动器(从损坏的机器上取下)恢复加密的主目录。我以前做过,但这次我无法让它解密文件名!
如果我能就我所犯的错误提供任何帮助,我将不胜感激...
恢复密码
root@t42:/mnt/se/home/hcooper# ecryptfs-unwrap-passphrase /mnt/se/var/lib/ecryptfs/hcooper/wrapped-passphrase <password>
Warning: Using default salt value (undefined in ~/.ecryptfsrc)
0eeeabd98b712xxxxxxxc99615aeed3
挂载 ~/.Private
root@t42:/mnt/se/home/hcooper# mount -t ecryptfs .Private priv-mount/
Passphrase: <Copy and paste>
Select cipher:
1) aes: blocksize = 16; min keysize = 16; max keysize = 32 (not loaded)
2) blowfish: blocksize = 16; min keysize = 16; max keysize = 32 (not loaded)
3) des3_ede: blocksize = 8; min keysize = 24; max keysize = 24 (not loaded)
4) twofish: blocksize = 16; min keysize = 16; max keysize = 32 (not loaded)
5) cast6: blocksize = 16; min keysize = 16; max keysize = 32 (not loaded)
6) cast5: blocksize = 8; min keysize = 5; max keysize = 16 (not loaded)
Selection [aes]:
Select key bytes:
1) 16
2) 32
3) 24
Selection [16]:
Enable plaintext passthrough (y/n) [n]:
Enable filename encryption (y/n) [n]: y
Filname Encryption Key (FNEK) Signature [355a8158f7263d73]:
Attempting to mount with the following options:
ecryptfs_unlink_sigs
ecryptfs_fnek_sig=355a8158f7263d73
ecryptfs_key_bytes=16
ecryptfs_cipher=aes
ecryptfs_sig=355a8158f7263d73
Mounted eCryptfs
但文件仍然加密!
root@t42:/mnt/se/home/hcooper# ls priv-mount/ | head
ECRYPTFS_FNEK_ENCRYPTED.FWbV5bgYtAXkGUQkHQDy-741RhF0Oj9RLat01azIzg2-Bmv09aTP.798yk--
ECRYPTFS_FNEK_ENCRYPTED.FWbV5bgYtAXkGUQkHQDy-741RhF0Oj9RLat02bjNe2K9A9yAtDtqVR2fKE--
ECRYPTFS_FNEK_ENCRYPTED.FWbV5bgYtAXkGUQkHQDy-741RhF0Oj9RLat03lQpO4z6uUwD9WsQiJJmN---
ECRYPTFS_FNEK_ENCRYPTED.FWbV5bgYtAXkGUQkHQDy-741RhF0Oj9RLat03Tdy2UfXOFXqg59QPgiufk--
ECRYPTFS_FNEK_ENCRYPTED.FWbV5bgYtAXkGUQkHQDy-741RhF0Oj9RLat03YCBiTiBPhUITveL61Ig5---
ECRYPTFS_FNEK_ENCRYPTED.FWbV5bgYtAXkGUQkHQDy-741RhF0Oj9RLat04U4m3v8nyfkYBzR0gIlurU--
ECRYPTFS_FNEK_ENCRYPTED.FWbV5bgYtAXkGUQkHQDy-741RhF0Oj9RLat05hOO7o-TwsvxYPcbsuFduk--
ECRYPTFS_FNEK_ENCRYPTED.FWbV5bgYtAXkGUQkHQDy-741RhF0Oj9RLat05IyxqDYKNvnaGQCucqCwR---
ECRYPTFS_FNEK_ENCRYPTED.FWbV5bgYtAXkGUQkHQDy-741RhF0Oj9RLat08Sn-h2I7Ve.H9QIQtJe3EE--
ECRYPTFS_FNEK_ENCRYPTED.FWbV5bgYtAXkGUQkHQDy-741RhF0Oj9RLat0aMjHBO9ledaiSZ6VMVYfJE--
更新:我设法让损坏的磁盘进入单用户模式,当我“su - hcooper”并运行ecrypt-mount-private它提示我输入登录密码,然后成功挂载 .Private!所以我手动挂载它的方法一定有问题。密码类型正确吗?嗯。