this post was submitted on 07 Apr 2024
374 points (97.2% liked)
linuxmemes
20463 readers
127 users here now
I use Arch btw
Sister communities:
- LemmyMemes: Memes
- LemmyShitpost: Anything and everything goes.
- RISA: Star Trek memes and shitposts
Community rules
- Follow the site-wide rules and code of conduct
- Be civil
- Post Linux-related content
- No recent reposts
Please report posts and comments that break these rules!
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I prefer swap files over swap partitions, because it makes it my partition layout simpler to manage.
If your using a swap partition, make sure it's located on an encrypted partition, else it exposes data stored in RAM (encryption keys etc). With SSD's it's difficult to make sure this data is actually deleted, even after overwriting.
My preferred setup for a long time was LUKS with btrfs on top. Then subvolumes for
/
,/home
and the swap file (+ /var/cache, /var/log etc.). This gives me peace of mind nothing is unencrypted except /boot.Nowadays I simply use zram, which allows for a small part of RAM to be compressed for swap. It's great, simple to setup and performs well. Imo it should be default for all desktops.