LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 04-01-2010, 11:08 PM   #1
pazzport
Member
 
Registered: Dec 2004
Posts: 47

Rep: Reputation: 16
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?
 
Old 04-02-2010, 12:55 AM   #2
highfructose327
Member
 
Registered: Mar 2008
Location: Ohio, USA
Distribution: Mint, Fedora
Posts: 64

Rep: Reputation: 21
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
 
Old 04-02-2010, 01:10 AM   #3
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,633
Blog Entries: 3

Rep: Reputation: 221Reputation: 221Reputation: 221
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.
 
Old 04-02-2010, 02:02 AM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
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.

Last edited by jschiwal; 04-02-2010 at 02:20 AM.
 
Old 04-02-2010, 04:37 PM   #5
pazzport
Member
 
Registered: Dec 2004
Posts: 47

Original Poster
Rep: Reputation: 16
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......
 
Old 04-03-2010, 03:06 AM   #6
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
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.

Last edited by jschiwal; 04-03-2010 at 03:08 AM.
 
Old 04-04-2010, 07:54 PM   #7
pazzport
Member
 
Registered: Dec 2004
Posts: 47

Original Poster
Rep: Reputation: 16
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.
 
Old 05-14-2012, 11:30 PM   #8
themrrobert
Member
 
Registered: Feb 2007
Distribution: Debian Sid
Posts: 47

Rep: Reputation: 16
Exclamation

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 View Post
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.
 
  


Reply

Tags
encryption, home, recover


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
using encrypted home directory with xubuntu 9.10 live usb joe2748 Ubuntu 1 02-23-2010 04:54 AM
LXer: Ubuntuís Encrypted Home Directory: A Canonical Approach to Data Privacy LXer Syndicated Linux News 0 10-22-2009 10:31 PM
Recover encrypted LUKS partition itinlopez Linux - General 3 11-30-2008 02:20 AM
contents of 'home' directory found at sda5: mounted as /home, and also on sda6:/home leswatson Linux - Newbie 4 04-18-2008 04:02 PM
recover home directory after userdel mr_sarge Linux - General 9 11-29-2007 08:43 AM


All times are GMT -5. The time now is 05:33 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration