LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-28-2011, 04:36 PM   #1
Dave_P
LQ Newbie
 
Registered: Sep 2011
Posts: 24

Rep: Reputation: 1
disk encryption question


if I encrypt my home partition using Mint 11 and some time in the future I decide to install another linux distro will I lose access to my home partition????
 
Old 09-28-2011, 09:40 PM   #2
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Rep: Reputation: 91
Do you know for a fact your home directory is indeed on a different partition from that of the operating system? If I were you I'd just back up the entire home directory to a flash drive, external drive, something safe that the new install would not and could not mess with.
 
0 members found this post helpful.
Old 09-28-2011, 10:34 PM   #3
Dave_P
LQ Newbie
 
Registered: Sep 2011
Posts: 24

Original Poster
Rep: Reputation: 1
thx for the reply.

I posted a similar post in the security forum. Since I get a reply there first, you and anyone can follow the link there

http://www.linuxquestions.org/questi...tition-905505/
 
Old 09-29-2011, 08:12 AM   #4
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
I'm more interested in the actual answer to this question "yes" or "no" with sourcing information. It's easy to back up and you should have a backup already.

But I too want to know to you have to format the home partition or can you just include it in a new OS install.

I found some articles but none of them are a good solution to our question.

My guess would be the following.
  1. Install Ubuntu creating all of your desired partitions except a separate home partition and leave it unencrypted.
  2. Create a username and password that was the same as your previous system. Then mount the home partition like this article to test.

I'm still trying to figure out the semantics of decrypting while logging in but simply saying just back everything up and reinstall is lazy and not a solution to this problem. Linux wasn't made like that; it's not Windows.

Once you get the correct mount then modify /etc/fstab and add an entry by UUID. If you don't know how to do that then it should look something like the following.
Code:
UUID=34156147-5475-496e-a803-35f96d645fc8 /home           ext4    defaults        0       2
If you don't know how to get the UUID then you can figure it out with this command.
Code:
ls -l /dev/disk/by-uuid/
Which will list all of your UUIDs linked to your devices.

@Dave_P: Please do not mark this as solved yet. I'd like to see more input from other community members.

SAM

Last edited by sag47; 09-29-2011 at 08:19 AM.
 
Old 09-29-2011, 08:27 AM   #5
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Ah I finally figured it out. It's as easy as including the partition during install. The partition itself isn't encrypted. Just the users' directory contents. So you can mount it like a normal drive. On my system (Kubuntu 10.04LTS), I can list the following.
Code:
sam@farcry:~$ ls -lah | grep crypt
lrwxrwxrwx  1 sam  sam    29 2011-09-12 16:43 .ecryptfs -> /home/.ecryptfs/sam/.ecryptfs
lrwxrwxrwx  1 sam  sam    28 2011-09-12 16:43 .Private -> /home/.ecryptfs/sam/.Private
I think this needs to be tested more but it seems simple enough. Just remember for the decryption to work properly you need to have the exact same username and password as your previous system.

Here's some more information on the subject.
 
Old 09-29-2011, 04:59 PM   #6
Dave_P
LQ Newbie
 
Registered: Sep 2011
Posts: 24

Original Poster
Rep: Reputation: 1
@ sag47

I already solved it, here is my solution
http://www.linuxquestions.org/questi...5/#post4485401

As long as you have luks on a separate partition and use the same program to encrypt it i.e cryptsetup. you can open, mount it, or close it in any distro with cryptsetup installed.

Quote:
Originally Posted by sag47 View Post
@Dave_P: Please do not mark this as solved yet. I'd like to see more input from other community members.
SAM
Don't worry, people sometimes will reply and read SOLVED threads if they have something to share or add what worked for them and others will be curious on how something was solved.

Thanks for your input

Last edited by Dave_P; 09-29-2011 at 05:18 PM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux disk encryption <Ol>Origy Linux - Security 9 12-16-2011 08:15 PM
Disk Encryption vs. Performance CoderMan Linux - Server 1 01-29-2010 07:12 PM
dd and disk encryption Feeg Linux - Security 6 12-13-2008 05:55 PM
NAS + disk encryption Chris594 Linux - Networking 4 07-11-2006 12:31 PM
disk encryption ankscorek Linux - Security 5 05-03-2006 12:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:12 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration