LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


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

Rep: Reputation: 1
Encrypting home partition


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, 07:10 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Hello,

It depends on how you decide to encrypt it. How exactly are you going about this? Are you planning on using TrueCrypt, encfs, LUKS, etc?

Cheers,

Josh
 
Old 09-28-2011, 07:52 PM   #3
Dave_P
LQ Newbie
 
Registered: Sep 2011
Posts: 24

Original Poster
Rep: Reputation: 1
I don't know which method Mint uses. During the installation there is only a checkbox to enable encrypting on the home folder.

If Mint uses LUKS, will the new distro detect this encrypted partition/folder and prompt me for the passphrase to open this partition/folder. Or do I need to do any prior backups before installing any new distro.

btw, /home is on it's own partition if this helps.
 
Old 09-28-2011, 07:56 PM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
If it is mint, it should prompt you for the password and all that jazz. Being on it's own partition definitely helps. Just make sure that if you do decide to go with a different distro, custom edit the partitioning within the setup so it doesn't delete your pre-existing encrypted partition.
 
Old 09-28-2011, 08:35 PM   #5
Dave_P
LQ Newbie
 
Registered: Sep 2011
Posts: 24

Original Poster
Rep: Reputation: 1
@ corp769

So, as long as I keep my encrypted partition intact, other distros will detect this and just prompt me for the passphrase. Am I correct about this?

I appreciate all the help you gave me
 
Old 09-28-2011, 09:01 PM   #6
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
The more modern ones should. If you use an older distro, it might not prompt you for a password, but will see it. Now, is this a complete seperate partition, or is it within an LVM?
 
Old 09-28-2011, 10:16 PM   #7
Dave_P
LQ Newbie
 
Registered: Sep 2011
Posts: 24

Original Poster
Rep: Reputation: 1
separate. It's a primary partition

no lvm, no raid nor a logical partition

Last edited by Dave_P; 09-28-2011 at 10:20 PM.
 
Old 09-28-2011, 10:36 PM   #8
snooly
Member
 
Registered: Sep 2011
Posts: 124

Rep: Reputation: Disabled
Are you going to encrypt your backups as well? If you encrypt your home directory but have plain text backups, well obviously the encryption is pointless.

If you have encrypted backups and you decide to install some other distro, you can presumably copy the data from the backup to your new encrypted home, for example. Or you can get the new distro to read your encrypted home directory, if the new distro can run the same encryption software as your current distro.
 
Old 09-29-2011, 05:21 AM   #9
Dave_P
LQ Newbie
 
Registered: Sep 2011
Posts: 24

Original Poster
Rep: Reputation: 1
Thanks to all who reply.

I solved it. If I want to install a new distro and have my /dev/mapper/home load and mount automatically, I just need to open my luks partition i.e cryptsetup luksOpen /dev/sda4 home before running the distro's installation program. But do not mount it. The installation program will do that for you.

The installation program will detect the mapped device in the partitioning section. I just needed to add the /dev/mapper/home to the file system, but NOT format it. I formatted the other partitions for boot and /

Note: Also, DO NOT FORMAT the device where luks resides. In my example, luks is on /dev/sda4

Lastly, I rebooted and was prompted for my passphrase for sda4

I went into my /home folder and I saw my files and folders were still intact. So, as long as you keep a separate partition for luks and not format it, everything will be great.

Last edited by Dave_P; 09-29-2011 at 04:58 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What are the benefits to encrypting your home folder? What are RAIDS? SSH? theif519 Linux - Newbie 2 05-26-2011 08:53 AM
Encrypting a FAT Partition Nemesissparadise Linux - Software 4 03-16-2011 05:44 PM
encrypting my xfs partition htamayo Debian 1 10-30-2010 12:58 PM
LXer: Encrypting /home and swap over RAID with dm-crypt LXer Syndicated Linux News 0 05-24-2006 04:54 AM
encrypting root partition joulupukki Linux - Security 13 05-12-2004 01:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:34 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