Skip to content

Here is my blkid and lsblk output--did I configure my system correctly?

Not downloaded yet

blkid and lsblk output

For gummiboot, I need to add the kernel parameters next to "options" for a LVM on LUKS (UEFI) system with hibernation support. I thought I set up my system correctly but now I'm confused with what to add after "cryptdevice=", "resume=", and "root=". Arch Wiki says I should use PARTUUID instead of UUID but I only have the PARTUUID for cryptdevice (UUID only for root and swap). I read somewhere on the Wiki (I forgot where) that it is recommended I apply the same naming scheme across all parameters, so if I use PARTUUID for cryptdevice, I should use it for resume and root also.

Also, I'm not understanding why my swap and var logical volumes (labeled lvmpool-swap and lvmpool-var under lsblk) shows the mapper name (is it the mapper name?) as /dev/dm-1 and /dev/dm-2 rather than /dev/mapper/lvmpool-swap and /dev/mapper/lvmpool-root, which leads me to think I partitioned incorrectly.

Thanks.

P.S. Why does the Arch Wiki recommend ro as a parameter specifically for Encrypted root partitions and not rw like all other setups? During boot, I get some kind of warning about this.

Edited 27 May 2015. We only hold this version.

2 points5 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
2 · 100% up
Kind
Image
ID
37ferk

Author

176
posts
219
comments
4
media
View profile

5 comments

Someone may correct me, but I'm pretty sure you won't get hibernate to work on an encrypted swap partition (which is what you have)

I'd have 4 partitions. 1 EFI, 2 /boot, 3 LUKS (or lvm if you need to have /var separate from /), 4 swap. Stick the swap right at the end of your disc. I'm told this makes it slightly more efficient.

You probably need your kernel image to be outside of your encrypted volume. This is why you want /boot. A small partition that holds your image. Without it, your bios will not be able to read your kernel, because it will be encrypted, and it's a kernel module that decrypts your encrypted volume.

Why do you want /var separate? What's the advantage of Lvm for you?

1 points

Swap encryption with suspend-to-disk support

sda1 is my 512MB boot partition that is outside of my encrypted volume (sda2). I have /var separate because on a distro like Arch, I will need a significant amount of cache if I have a lot of packages installed and want to keep the package cache for downgrading in the event that there are bugs after an update. Without a /var partition, there would be no limit to how much /var would grow under /, and I read that users have experienced problems where their / partition was 100% used because /var was maxed out and that led to numerous problems (problems logging in, etc.). I would have to remember to periodically remove cache from a long time ago as well as old logs, while (I'm guessing) having a separate /var partition would confine all these problems to a single "oh, there is no more room for cache/logs to be created on /var, please empty it out." while there would still be room in / for the system to function. I'm a complete Linux newbie but I have done a lot of reading and not sure if what I'm doing justifies this and whether this is even remotely true.

LVM is just for easy setup of LVM on LUKS encryption and the ability to freely and easily resize logical volumes without problems. I'm confident I have 99% of it set up properly (I read 2 other guides and compared it to the Wiki) but I just need clarification on the blkid and lsblk output on why I am getting /dev/mapper/lvm-root (which I understand), but then I'm also getting /dev/dm-1 and /dev/dm-2 for the swap and var logical volumes respectively. Also, the Wiki recommends that I use PARTUUID for all the boot parameters (cryptdevice, root, and resume), but I only have the PARTUUID for the cryptdevice.

1 points

Personally, I use arch so that I have less packages. As in, only the packages I need. There's effectively no upper limit in /var. Most likely you've read about problems people had because they've put their /home on the biggest partition and everything else with minimal space. Some people like to put / on something like 100gb and give the rest to /home. This can cause the problems you mentioned. Since you haven't done this, your var has all the space it needs and more on the root partition. Your method is actually more restrictive. Entirely up to you though.

Not sure about your lvm labelling question. I'm pretty sure it doesn't give you partition UUIDs though. But the volume UUID is certainly sufficient for kernel params. I use the UUID of my root partition for the cryptdevice param, and the mapper label for the root param, since it's assigned by dm-crypt and won't change like a real disk label can.

I must not have looked properly before, I can see your /boot now. Didn't realise you have a 30gb disc. Your boot can probably shrink a bit if you need more space. I use 260mb on mine, and that's on a 1.5tb disc.

But then I don't keep old kernels for long.

Edit: also, just followed your link. It says to use a LUKS encrypted swap volume, separate from your lvm. To make this work, you need to follow the instructions to decrypt the swap volume at boot, before your main fs. If your swap is tied up with your root in an encrypted volume, as you have, it won't work. You could still have your /var and / in an lvm though, if you like.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.