I installed a fresh Ubuntu 10.10 onto a new hard drive and want to mount the old home directory to a subdirectory of my new (also encrypted) home directory.
I tried this with sudo mount -t ecryptfs /mnt/oldhome/me/ /home/me/oldhome
, with /mnt/oldhome
being the /home partition of the old system.
Afterwards ~/oldhome contains a desktop link file (Access-Your-Private-Data.desktop) linking to ecryptfs-mount-private
and a README.txt
saying I should run ecryptfs-mount-private
. I do so, but as I don't know what is supposed to happen, I can't tell if it happens and if it brings me closer to accessing my old home.
Any hints?
update
I was able to mount my old encrypted home with the help of this script. Though, looking into it with ls
, I get alot of errors like this:
ls: cannot access /mnt/oldme/some_file: No such file or directory
Other information ls -l
should show, is replaced by question marks.
update 2
I mounted the old system to /mnt/oldroot and mount /dev, /sys, /proc and the old home partition into. Then I chrooted into /mnt/oldroot, su - me
and ecryptfs-mount-private
. Asked for the passphrase I put it in and got:
Error: Unwrapping passphrase and inserting into the user session keyring failed [-5]
Info: Check the system log for more information from libecryptfs
ERROR: Your passphrase is incorrect
ecryptfs-unwrap-passphrase
gives me the exact same passphrase I used, though.
sudo ecryptfs-recover-private --rw .ecryptfs/<YOUR_USER>/.Private
. No need to exhume the 32 bytes long passphrase, just a few attempts to guess the password of that old pc. – Avio Aug 14 '16 at 18:02Error: Unwrapping passphrase and inserting into the user session keyring failed [-5]
even though the passphrase is correct. As per https://unix.stackexchange.com/questions/285541/mount-no-such-file-or-directory-with-encrypted-recovery/395391#comment878481_395391, it's helpful to runsudo ecryptfs-manager
, then press 4 (exit), then runecryptfs-recover-private
again. – Turion Apr 03 '19 at 11:05ecryptfs-recover-private
seems to mount my current home dir also under /tmp/ecryptfs.xxx, but not the one I from my backup I passed to the script. Any idea? – Peter T. Jun 30 '21 at 13:54backup-dir/home/user/.Private
to my current home ... – Peter T. Jun 30 '21 at 13:58