How to decrypt home folder?
hi,
how can I access my encrypted home from a live cd ? I tried mounting the system (and binding proc, sys and dev) and then chrooting into it, but when I 'su kristenbb', it says: 'open: permission denied. error locking counter'. How to avoid that ? thx |
Welcome to LQ.
What did you do to open it, you need to be more specific. install lvm2: Quote:
Quote:
Quote:
Quote:
Quote:
Mount the partition: Quote:
Source |
Assuming you are using cryptsetup, you can type this as root from the liveCD
cryptsetup luksOpen /dev/sdxx myhome sdxx is the drive/partition where your home partition resides. myhome could be any name you want. it's used here as an example. Enter your passphrase. If done successfully you should get no error messages Next, mount the device mount /dev/mapper/myhome /mnt |
Quote:
|
If by using cryptsetup, you mean that I have full disk encryption, then the answer is no, I just have home encryption, which I set up using ubuntu 13.04.
And I don't think I have LVM. |
Quote:
Code:
cryptsetup luksOpen /dev/sdxx myhome After that just mount it, as annonyxxxx mention in his post Code:
mount /dev/mapper/myhome /mnt/xxx |
No this doesn't work, sorry. sudo "cryptsetup luksOpen /dev/sda2 myhome" (and I'm sure it's sda2, I've checked with gparted) returns Device /dev/sda2 is not a valid LUKS device.
I think cryptsetup is not what ubuntu uses to encrypt the home folder. It is rather ecryptfs. But for ecryptfs to work, I need to be able to chroot into the system from the live cd, and this doesn't seem to work, as I've said in my original post. |
May be this then from the Ubuntu docs -
https://help.ubuntu.com/community/En..._Data_Manually If you see in the page, I have linked there is more information regarding data recovery from the encrypted home directory which might also be useful in your case. |
Quote:
|
So what it is that I'm supposed to do actually ? I'm not an expert, just a regular user, and this is all a bit over my head. I'd just like to be able to access my home folder from a live cd, in case my system ever fails.
|
From the link I posted above, try this -
Quote:
|
Yes, this works, thank you. But this makes the accessible data read only, and my need is actually to restore an old home folder. I wasn't able to do it from the running system, because some files where in use, so I'd like to do it from the live cd, but if I use the command above, I only have read access to the files. How can I get write access too ?
|
So how to make it writable ? I'd just like to reuse my old home folder...
|
I would suggest copying the contents to new user home directory so that there are no issues with permissions. I am not sure if this is the best way though.
See this link. It is the same as above but I have specifically linked to topic about Live CD and might provide some help. Hope that helps. |
All times are GMT -5. The time now is 12:08 AM. |