Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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????
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.
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.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.