LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-09-2018, 06:22 AM   #1
HowOriginal
LQ Newbie
 
Registered: Sep 2016
Posts: 7

Rep: Reputation: Disabled
Small / partition on OpenSUSE Tumbleweed with LVM+LUKS full disk encryption


Hi,

Yesterday I installed OpenSUSE Tumbleweed on my laptop. During partitioning, I had turned on full disk encryption with what was presumably LVM+LUKS. Afterwards, I was shown a screen with all the things I set during partitioning. I noticed only 50 and 8 Gigabytes were allocated to the / and swap partitions respectively. The SSD in my laptop has 120 Gigabytes of storage space available.

Is this loss of space inherent to full disk encryption with LVM+LUKS on GNU/Linux? I had never noticed it before. And if it is, is there anything I can do about it? I also remember leaving a box for Btrfs snapshots checked during the install. If encryption isn't the culprit, could that be it?

Thanks.

Last edited by HowOriginal; 06-10-2018 at 06:31 AM. Reason: The title was based on an assumption of what the problem was, not the actual problem.
 
Old 06-09-2018, 06:43 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by HowOriginal View Post
Hi,

Yesterday I installed OpenSUSE Tumbleweed on my laptop. During partitioning, I had turned on full disk encryption with what was presumably LVM+LUKS. Afterwards, I was shown a screen with all the things I set during partitioning. I noticed only 50 and 8 Gigabytes were allocated to the / and swap partitions respectively. The SSD in my laptop has 120 Gigabytes of storage space available.
Sounds about right - if your machine has 8GB of RAM then an 8GB SWAP partition would be appropriate.

Quote:
Is this loss of space inherent to full disk encryption with LVM+LUKS on GNU/Linux? I had never noticed it before. And if it is, is there anything I can do about it? I also remember leaving a box for Btrfs snapshots checked during the install. If encryption isn't the culprit, could that be it?...
Depending on how many "snapshots" you have, well then, yes, they are going to take up space. I don't understand how you're saying that "because of full disk encryption", that means you lose space.

I'm really not understanding what the problem here is ?
 
Old 06-09-2018, 07:18 AM   #3
HowOriginal
LQ Newbie
 
Registered: Sep 2016
Posts: 7

Original Poster
Rep: Reputation: Disabled
I don't think I formulated my problem right. The problem is that when I have FDE turned off I can use about 110 Gigabytes of my SSD for my / partition, but when I turn it on the system seems to only be able to allocate 50 Gigabytes to my / partition. So my question was where those 60 Gigabytes get "lost" and what I can do about it.
 
Old 06-09-2018, 07:24 AM   #4
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by HowOriginal View Post
I don't think I formulated my problem right. The problem is that when I have FDE turned off I can use about 110 Gigabytes of my SSD for my / partition, but when I turn it on the system seems to only be able to allocate 50 Gigabytes to my / partition. So my question was where those 60 Gigabytes get "lost" and what I can do about it.
When you say "FDE", I assume you mean "Full disk encryption" ?

What exactly do you mean when you say "when I have FDE turned off I can use about 110 Gigabytes of my SSD for my / partition..." ?

When you encrypt a partition, it's not encrypted when it's mounted. It's only encrypted when it's not mounted. The only way I could think of when you say "turning it off", would be to format the partition and re-format it - thus removing the encryption altogether.

Is that what you're asking ?

Last edited by jsbjsb001; 06-09-2018 at 07:34 AM. Reason: typo
 
Old 06-09-2018, 08:08 AM   #5
HowOriginal
LQ Newbie
 
Registered: Sep 2016
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jsbjsb001 View Post
When you say "FDE", I assume you mean "Full disk encryption" ?
Yes.

Quote:
Originally Posted by jsbjsb001 View Post
What exactly do you mean when you say "when I have FDE turned off I can use about 110 Gigabytes of my SSD for my / partition..." ?
I meant that when I do a fresh install without turning full disk encryption on, a significantly larger portion of the available space gets allocated to the / partition by the installer. I assumed that everything the installer doesn't allocate to swap it allocates to the / partition when I specify I don't want a seperate /home partition.

Quote:
Originally Posted by jsbjsb001 View Post
Is that what you're asking ?
Not really. I was asking what happened to the 60 Gigabytes it could allocate to the / partition in an install when I did not "turn on" full disk encryption but it could not allocate to the / partition when I did "turn on" full disk encryption.
 
Old 06-09-2018, 08:16 AM   #6
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by HowOriginal View Post
...I meant that when I do a fresh install without turning full disk encryption on, a significantly larger portion of the available space gets allocated to the / partition by the installer. I assumed that everything the installer doesn't allocate to swap it allocates to the / partition when I specify I don't want a seperate /home partition...
It's up to the installation program as to how much space gets allocated to where. YaST (for openSUSE) gives you the option to manually allocate partition sizes as well as a number of other options. While I can't say for sure, it may well be that YaST decides that if you don't select full disk encryption, that you must want a bigger "root" partition. It's certainly something in YaST that's doing it. I can't really say anymore than that.

Last edited by jsbjsb001; 06-09-2018 at 08:22 AM. Reason: correction
 
1 members found this post helpful.
Old 06-09-2018, 10:25 AM   #7
HowOriginal
LQ Newbie
 
Registered: Sep 2016
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hmm, well I think it's time to fire up YaST again then and see what it is doing, exactly.

Thanks for taking the time to post in this thread.
 
Old 06-10-2018, 04:04 AM   #8
HowOriginal
LQ Newbie
 
Registered: Sep 2016
Posts: 7

Original Poster
Rep: Reputation: Disabled
I just installed OpenSUSE again and the problem, as jsbjsb001 suspected, was YaST. YaST apparently just allocated a small, custom amount of space to the / partition, I just had to set the right amount of storage space for it.

jsbjsb001, I'm marking the thread as solved. Would it make sense to rename it as well?
 
Old 06-10-2018, 04:20 AM   #9
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Well it's up to you if you want to rename the thread, although maybe adding a more descriptive title may help future readers. Up to you.

I would suggest you mark what you have found helpful, so future readers know exactly which of my responses helped.
 
Old 06-10-2018, 06:32 AM   #10
HowOriginal
LQ Newbie
 
Registered: Sep 2016
Posts: 7

Original Poster
Rep: Reputation: Disabled
Done, thanks.
 
1 members found this post helpful.
  


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
How to have luks encryption with keyfile OR passphrase (efi full disk encryption including boot)? byroncollege Linux - Security 2 03-30-2017 07:45 AM
Mint 18 Full disk encryption VS Veracrypt Full Disk encryption: Help a Noob Decide Please ! APeacefulRig Linux - Security 2 11-11-2016 08:10 AM
Disk space full, and can't remove files because it's full? Legend of Ron Slackware 16 07-01-2016 09:08 PM
[SOLVED] Full disk encryption Crippled Linux - Security 7 05-27-2016 09:34 PM

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

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