LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-16-2019, 11:08 AM   #1
SoumyaMahunt
LQ Newbie
 
Registered: Apr 2018
Posts: 20

Rep: Reputation: Disabled
Exclamation Encrypt linux root partition like windows provides with bitlocker


Windows provides bitlocker to encrypt its C drive, which asks for password upon boot. I want to know if any such options available with Linux. Ubuntu has full disk encryption option while installation, but what i want is only the root partition will be encrypted which will be helpful for dual booting. Also if the encryption can be applied after installation. Any specific distro provides this?? Or can I implement it with any distro??
 
Old 08-16-2019, 01:05 PM   #2
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,433

Rep: Reputation: 110Reputation: 110
Encrypting the root partition after installation may be possible (I don't know), but if it is then it certainly isn't easy. Several distros provide that on the installation stage, you just answer a few questions and it is done for you, so you should probably do it that way. I know Debian has it. Many others have it, but I wouldn't know which ones.

Note that full disk encryption can only apply if you choose full disk installation. If you're dual booting and install Linux on a separate partition, then only the Linux partition will be encrypted.

You sound very inexperienced so make sure you have backups of all your data before you go for it. It's very easy to lose data (even all of it) in formatting/installation operations.

Last edited by lucmove; 08-16-2019 at 01:07 PM.
 
Old 08-16-2019, 01:42 PM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by SoumyaMahunt View Post
Windows provides bitlocker to encrypt its C drive, which asks for password upon boot. I want to know if any such options available with Linux.
What you want is possible in Linux, but it's not "like Windows".
Quote:
but what i want is only the root partition will be encrypted which will be helpful for dual booting.
How do you figure this will be helpful for dual booting?

Quote:
Also if the encryption can be applied after installation. Any specific distro provides this?? Or can I implement it with any distro??
Yes. And you can implement it with any distro.

And before you ask, I'd start with the wiki of your chosen distro, e.g.: https://help.ubuntu.com/community/Ma...stemEncryption
 
Old 08-17-2019, 05:29 AM   #4
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Quote:
Originally Posted by SoumyaMahunt View Post
Windows provides bitlocker to encrypt its C drive, which asks for password upon boot. I want to know if any such options available with Linux. Ubuntu has full disk encryption option while installation, but what i want is only the root partition will be encrypted which will be helpful for dual booting. Also if the encryption can be applied after installation. Any specific distro provides this?? Or can I implement it with any distro??
Why do you want to encrypt the root partition? This isn't really very useful. To use the distro, you'd need to decrypt it anyways which makes the data available and viable in a non-encrypted form. To encrypt the root folder is mostly useful if you want to avoid tampering with content on the root folder while you are booted into another distro. This is mostly just useful protection of the distro against "evil maids" on an unsecure other distro.

So, what exactly is the reason you want to encrypt the root partition? And if you want to do this, why would you not do it during the installation?
 
Old 08-18-2019, 12:37 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
I'm not even sure what "only the root partition" is supposed to mean here, because most Linuxes are installed to only 1 partition anyhow, so "only the root partition" would entail the whole installation...

Maybe you meant the /boot partition?
 
Old 08-18-2019, 02:43 AM   #6
SoumyaMahunt
LQ Newbie
 
Registered: Apr 2018
Posts: 20

Original Poster
Rep: Reputation: Disabled
Exclamation

Quote:
Originally Posted by lucmove View Post
Encrypting the root partition after installation may be possible (I don't know), but if it is then it certainly isn't easy. Several distros provide that on the installation stage, you just answer a few questions and it is done for you, so you should probably do it that way. I know Debian has it. Many others have it, but I wouldn't know which ones.

Note that full disk encryption can only apply if you choose full disk installation. If you're dual booting and install Linux on a separate partition, then only the Linux partition will be encrypted.

You sound very inexperienced so make sure you have backups of all your data before you go for it. It's very easy to lose data (even all of it) in formatting/installation operations.
In ubuntu installer if i don't choose a clean installation the full disk encryption is grayed out, so i don't know about which distro you are talking. In my experience Fedora(or other distros based on it) only provides such option but I haven't tried it yet. And I don't think debian has it either as Ubuntu is basically based on it, but I could be wrong.
 
Old 08-18-2019, 05:12 AM   #7
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Quote:
Originally Posted by ondoho View Post
I'm not even sure what "only the root partition" is supposed to mean here, because most Linuxes are installed to only 1 partition anyhow, so "only the root partition" would entail the whole installation...

Maybe you meant the /boot partition?
Ok, well. First there are a few other things to consider when you install GNU/Linux on your computer. Not necessities but best practices:
1. always put /home on a separate partition, not the partition of root (/)
- consider a separate /boot partition
- consider a separate /tmp partition (ex. secure it with partition parameters (noexec,nodev etc) and encryption)
- consider a separate /usr partition (old school practices)
- consider a separate /var partition
- consider skipping SWAP partition on modern hardware (4gb+ RAM)
- consider using /opt and making it a separate partition (opt is good for things like firefox, skype, steam and other blobs/self contained software and binary style software packages), this partition can live beyond distro re-installations and be shared between distroes.

Having everything on the same partition doesn't make sense. Different parts of the filesystem will have different partition parameter needs, and some parts (not the whole) of the partition should ideally be encrypted (/home). If you WANT to encrypt the root partition, you'll probably want to go with a separate /boot partition and an appropriate initramfs to do that. Ideally when you install your distro, you will have these things planned out so that you can execute them correctly during the installation, not post-installation. Eventually you will work up some good routines that you will always use when you install a new distro, one of these MUST be to "manually partition your disks". Automation partitioning during distro installation is for newbies. I don't mean to hurt any feelings here, but it 100% is and should be avoided by everyone who knows anything about what they are doing, and if not, at least experiment with manual partitioning and learn it! For people with no idea and casual users, it is ok to use auto partitioning, no worries, just do it. Everyone else, don't!
 
1 members found this post helpful.
Old 08-18-2019, 05:15 AM   #8
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Quote:
Originally Posted by SoumyaMahunt View Post
In ubuntu installer if i don't choose a clean installation the full disk encryption is grayed out, so i don't know about which distro you are talking. In my experience Fedora(or other distros based on it) only provides such option but I haven't tried it yet. And I don't think debian has it either as Ubuntu is basically based on it, but I could be wrong.
Have a look into Mageia. It is a newbie friendly distro, but also friendly towards more experienced users (unlike ubuntu family). With this distro even a newbie can setup the partitioning correctly during the installation, and there aren't any unnecessary restrictions.

www.mageia.org
 
Old 08-18-2019, 10:09 AM   #9
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,433

Rep: Reputation: 110Reputation: 110
Quote:
Originally Posted by SoumyaMahunt View Post
In ubuntu installer if i don't choose a clean installation the full disk encryption is grayed out, so i don't know about which distro you are talking. In my experience Fedora(or other distros based on it) only provides such option but I haven't tried it yet. And I don't think debian has it either as Ubuntu is basically based on it, but I could be wrong.
I know Debian has it because I have it. It was setup that way on installation. I don't know how to do it post installation. I know how to do it on other partitions, but not on root.
 
  


Reply

Tags
encrypted partition



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
LXer: How to Access a Bitlocker-Encrypted Windows Partition from Linux LXer Syndicated Linux News 0 06-11-2019 03:40 PM
BitLocker Locked me out CloneEve Linux - Security 10 02-26-2018 03:40 PM
Permission isuues using dislocker for bitlocker encrypted drive on ubuntu 16.04 LTS darshit Ubuntu 1 02-05-2018 11:15 AM
Will activating Bitlocker on my jump drive prevent me from using Puppy Linux? Mr.Gump Linux - Newbie 1 04-30-2010 11:29 PM
Will Windows Vista (Bitlocker/Bitlocking) allow multi OS boot ? asimba Linux - General 5 01-28-2007 01:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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