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:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 

this is right after closing qemu-kvm

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 4 months ago

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.