in fase di installazione
----------- metodo A ----------- (montare partizione)
sudo chroot /media/xubuntu/c1ecb1af-7c15-470f-a777-48ed5eb60247/ root@xubuntu:/# ecryptfs-recover-private INFO: Searching for encrypted private directories (this might take a while)... INFO: Found [/home/.ecryptfs/pawel/.Private]. Try to recover this directory? [Y/n]: /usr/bin/ecryptfs-recover-private: 63: /usr/bin/ecryptfs-recover-private: cannot create /dev/null: Permission denied INFO: Found your wrapped-passphrase Do you know your LOGIN passphrase? [Y/n] n 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: INFO: Success! Private data mounted at [/tmp/ecryptfs.z7cibvV4].
----------- metodo B ----------- montare partizione
sudo ecryptfs-add-passphrase --fnek Passphrase: Inserted auth tok with sig [9b15cb67b475a9e1] into the user session keyring Inserted auth tok with sig [d06fa6176f780bdb] into the user session keyring
sudo mount -t ecryptfs /media/xubuntu/c1ecb1af-7c15-470f-a777-48ed5eb60247/home/.ecryptfs/pawel/.Private/ /mnt Passphrase: Select cipher: 1) aes: blocksize = 16; min keysize = 16; max keysize = 32 2) blowfish: blocksize = 8; min keysize = 16; max keysize = 56 3) des3_ede: blocksize = 8; min keysize = 24; max keysize = 24 4) twofish: blocksize = 16; min keysize = 16; max keysize = 32 5) cast6: blocksize = 16; min keysize = 16; max keysize = 32 6) cast5: blocksize = 8; min keysize = 5; max keysize = 16 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 Filename Encryption Key (FNEK) Signature [9b15cb67b475a9e1]: d06fa6176f780bdb Attempting to mount with the following options: ecryptfs_unlink_sigs ecryptfs_fnek_sig=d06fa6176f780bdb ecryptfs_key_bytes=16 ecryptfs_cipher=aes ecryptfs_sig=9b15cb67b475a9e1 Mounted eCryptfs
link: http://pfertyk.me/2017/05/recovering-encrypted-home-directory-in-ubuntu/ https://help.ubuntu.com/community/EncryptedPrivateDirectory |