LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   How to recover my encrypted Home directory (http://www.linuxquestions.org/questions/linux-desktop-74/how-to-recover-my-encrypted-home-directory-799505/)

pazzport 04-01-2010 11:08 PM

How to recover my encrypted Home directory
 
Ok - I have created a serious train wreck with my kubuntu installation and I'm hoping someone can give me some insight on how to fix it. I performed the upgrade to Lucid Beta 1, which failed. In the end, I had to do a fresh reinstall. I still have my encrypted partitions, and I know the password, but I can not get them to mount. My home directory only has a few files in it plus a .Private directory and the rest of my stuff gives me "No key available with this passphrase." when I try to mount it. Any suggestions on where to start?

highfructose327 04-02-2010 12:55 AM

pazzport, check out this thread I think the last post from the OP might solve your problem

http://www.linuxquestions.org/questi...tition-765465/

if that did not do it this link from that thread may help at least recover your data. good luck

http://blog.dustinkirkland.com/2009/...home-from.html

Drakeo 04-02-2010 01:10 AM

try puppy linux and boot the live cd and use TrueCrypt 6.3 if not installed it should be. Use the program if you have the password.
or install the same program with puppy linux and use the password.
good luck.

jschiwal 04-02-2010 02:02 AM

Let's start by detemining the type of file you have. If it is a LUKS partition then you can use cryptsetup to attach a loop device.

Enter: file <filename>
and post the results

If it is an encrypted partition, then use: sudo file -s /dev/sd##
with your device, e.g. sudo file -s /dev/sda6.

pazzport 04-02-2010 04:37 PM

ok - for jschiwal:

file -s /dev/mapper/server-home returns:

/dev/mapper/server-home: Linux rev 1.0 ext4 filesystem data, UUID=.... (needs journal recovery)(extends)(large files)(huge files)

For Drakeo:

I'll give it a try but I don't think it will help since I didn't use truecrypt to create the encryption....


For highfructose327:

I tried both of those before I posted here. The commaand
ecryptfs-mount-private returns:

ERROR: Encrypted private directory is not setup properly


Thanks to all for the input and help......

jschiwal 04-03-2010 03:06 AM

I wanted you to use the file command on the partition itself and not how it was mapped. However, it looks like your encrypted partition was detected and mapped to /dev/mapper/server-home. Is there a corresponding /dev/dm-# device as well? Can you mount /dev/mapper/server-home?

Did you keep the partition untouched, create a backup or reformat it when you reinstalled?
Running "sudo /sbin/fdisk -l" and posting the results would help paint a fuller picture of your situation. Also the contents of the /etc/fstab file.

pazzport 04-04-2010 07:54 PM

Ok - file -s /dev/sda results in:

/dev/sda: x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, stage2 address 0x2000, stage2 segment 0x200; partition 1: ID=0x8e, active, starthead 1, startsector 63,976269987 sectors; partition2: ID=0x5, starthead 254, startsector 976270112, 497953 sectors, code offset 0x63


I did a fresh install, choosing to not use the former /home partition. I can see that the home directory is there with Access-Your-Private-Data.desktop. README.txt, and other hidden files, including .ecryptfs -> /var/lib/ecryptfs/pazzport. What worries me is that the /var/lib/ecryptfs/pazzport file was wiped out with the reload, but I know the encrypted home directory is still present and intact.

themrrobert 05-14-2012 11:30 PM

I am having exactly this issue.

Installed 12.04 over 11.04, the errors are the same, the files are the same. Only difference is my user is draco not pazzport.

Please Help :( I choose to use /dev/sdb6 as /home while installing but didnt format the partition as it has personal data on it.

I do know the password but have no idea how to access the data. Trying to run ecryptfs-private-mount (as suggested in README.txt) yields the same error pazzport had.

Quote:

Originally Posted by pazzport (Post 3924270)
Ok - file -s /dev/sda results in:

/dev/sda: x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, stage2 address 0x2000, stage2 segment 0x200; partition 1: ID=0x8e, active, starthead 1, startsector 63,976269987 sectors; partition2: ID=0x5, starthead 254, startsector 976270112, 497953 sectors, code offset 0x63


I did a fresh install, choosing to not use the former /home partition. I can see that the home directory is there with Access-Your-Private-Data.desktop. README.txt, and other hidden files, including .ecryptfs -> /var/lib/ecryptfs/pazzport. What worries me is that the /var/lib/ecryptfs/pazzport file was wiped out with the reload, but I know the encrypted home directory is still present and intact.



All times are GMT -5. The time now is 03:04 AM.