Sunday, March 19, 2017

mount - Repair broken encrypted home

I've ran into following problem. I have split my disk into two partitions, one for / and one form /home. I've also encrypted /home.



One beautiful day ubuntu reports upon boot some broken files, attempts to fix them, but still does not let me in - I enter my password, it is accepted, but I stay on the login screen.



I've downloaded the livecd and ran the disk check - it reports two broken files, but does not say which files nor offers any option to repair them.




Via nautilus I can see the contents of the drive, it contains two files:
Access-Your-Private-Data.desktop
README.txt



The README says to access my data I must run "ecryptfs-mount-private" but when I ran it:
ubuntu@ubuntu:~$ ecryptfs-mount-private
ERROR: Encrypted private directory is not setup properly



So I've looked up how to mount encrypted partitions and come to this Mount encrypted volumes from command line? but then I get this:
ubuntu@ubuntu:~$ sudo cryptsetup luksOpen /dev/sda7 home
Device /dev/sda7 is not a valid LUKS device.



I'm not exactly sure what the problem is and I'm not that familiar with ubuntu/linux administration. Can you please help me locate the problem and fix it. I just want to access my data and ssh keys.



Ubuntu version is 14.04.




Many thanks in advance.
Cheers

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...