[SOLVED] Small / partition on OpenSUSE Tumbleweed with LVM+LUKS full disk encryption
Linux - GeneralThis 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
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.
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.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by HowOriginal
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 ?
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.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by HowOriginal
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
When you say "FDE", I assume you mean "Full disk encryption" ?
Yes.
Quote:
Originally Posted by jsbjsb001
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
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.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by HowOriginal
...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
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.