this post was submitted on 12 Oct 2025
316 points (98.2% liked)

Privacy

42526 readers
533 users here now

A place to discuss privacy and freedom in the digital world.

Privacy has become a very important issue in modern society, with companies and governments constantly abusing their power, more and more people are waking up to the importance of digital privacy.

In this community everyone is welcome to post links and discuss topics related to privacy.

Some Rules

Related communities

much thanks to @gary_host_laptop for the logo design :)

founded 6 years ago
MODERATORS
 

This makes a world of difference. I know many people may know of it but may not actually do it. It Protects your files in case your computer is ever stolen and prevents alphabet agencies from just brute forcing into your Laptop or whatever.

I found that Limine (bootloader) has the fastest decryption when paired with LUKS at least for my laptop.

If your computer isn't encrypted I could make a live USB of a distro, plug it into your computer, boot, and view your files on your hard drive. Completely bypassing your Login manager. If your computer is encrypted I could not. Use a strong password and different from your login

Benefits of Using LUKS with GRUB Enhanced Security

  • Data Protection: LUKS (Linux Unified Key Setup) encrypts disk partitions, ensuring that data remains secure even if the physical device is stolen.
  • Full Disk Encryption: It can encrypt the entire disk, including sensitive files and swap space, preventing unauthorized access to confidential information.

Compatibility with GRUB

  • Unlocking from Bootloader: GRUB can unlock LUKS-encrypted partitions using the cryptomount command, allowing the system to boot securely without exposing sensitive data.
  • Support for LVM: When combined with Logical Volume Management (LVM), LUKS allows for flexible partition management while maintaining encryption.
(page 2) 50 comments
sorted by: hot top controversial new old
[–] melfie@lemy.lol 16 points 2 days ago (1 children)

Seems a lot of distros put it under an advanced section in the installer, but I think the “advanced” option should be not enabling full-disk encryption, meaning you know what you’re doing and have assessed the risk.

[–] frongt@lemmy.zip 18 points 2 days ago

Ideally, yes. The problem is that the non-advanced users then get prompted for their encryption key and then it's "What are you talking about, I never set that up, what do you mean you can't recover the photos of my grandkids!"

[–] stupid_asshole69@hexbear.net 20 points 2 days ago

Set up full backups you can reliably recover with before doing this.

With Luks there are several situations you can end up in where you can’t just pop your disk out and pull files from it, removing a first response to many common hardware failures.

[–] anonfopyapper@lemmy.world 35 points 2 days ago (3 children)

Pretty much all beginner friendly distros have this thing (Fedora Debian Ubuntu Mint). You just have to enable it. Also make sure if you are using secure boot - remove Microsoft keys and generate your own. Also its nice to have bios password setup too.

[–] ElectricWaterfall@lemmy.zip 13 points 2 days ago

Watch out about removing Microsoft’s keys! Some video drivers (nvidia) will only work with Microsoft’s keys and you might brick your system. Only remove Microsoft’s keys if you know what you’re doing.

[–] jif@piefed.ca 6 points 2 days ago

I did not know this about secure boot, I always just disabled it.

load more comments (1 replies)
[–] melfie@lemy.lol 12 points 2 days ago (8 children)

Setting up full-disk encryption on a Steam Deck with an on-screen keyboard should definitely be an option during SteamOS installation, but it’s a pain as it stands. It’s my only Linux device not using LUKS.

[–] bjoern_tantau@swg-empire.de 1 points 1 day ago

That's one of the reasons why I installed OpenSUSE Tumbleweed on my Deck. I used unl0kr to put in my passphrase on boot. Unfortunately OpenSUSE removed the framebuffer device and the DRM backend doesn't work correctly at the moment.

load more comments (7 replies)
[–] bruhbeans@lemmy.ml 21 points 2 days ago (1 children)

Also: back in the day, you could wipe a drive with GNU Shred or just "dd if=/dev/zero of=/dev/hda". SSDs and NVMe drives have logic about where and what to overwrite that makes this less effective, leading to the possibility of data recovery from old drives. If the data is always encrypted at rest and the key is elsewhere (not on the drive, in a yubikey or TPM chip or your head), then the data is not recoverable.

[–] HakFoo@lemmy.sdf.org 12 points 2 days ago (1 children)

From what I understand, some modern drives effectively encrypt everything at rest, but have the key on file internally so it decrypts transparently. This allows for a fast "wipe" where it just destroys the key instead of having to overwrite terabytes.

[–] bruhbeans@lemmy.ml 23 points 2 days ago

that presumes trust in the drive manufacturer and their firmware

[–] programmerlexi@sh.itjust.works 15 points 2 days ago

I found that Limine (bootloader) has the fastest decryption when paired with LUKS at least for my laptop.

Limine does not have decryption, that's just the linux kernel.

[–] rinze@lemmy.ca 17 points 2 days ago (9 children)

Also: encrypt everything you upload to the cloud with Cryptomator or something like that. I amazes me I used to put stuff directly in my pCloud folder.

[–] floofloof@lemmy.ca 15 points 2 days ago* (last edited 2 days ago) (4 children)

Cryptomator is good but it's important also to keep backups of the unencrypted content of the Cryptomator vault that are not encrypted by Cryptomator. (You could encrypt the backups with another system.) Cryptomator vaults are more fragile than the underlying file system, and it's easier for a glitch in the sync process to corrupt them so they're unrecoverable. I have lost data due to this in the past. So it's best to make sure all the contents of your vaults also exist somewhere else, encrypted in another way.

load more comments (4 replies)
load more comments (8 replies)
[–] Azenis@lemmy.world 1 points 1 day ago

I wanna encrypt my BTRFS system, but not the FAT32 boot part. Only the Linux kernels are on FAT32 anyway, and I don’t care about encrypting those — they’re public stuff, not private files. I just let limine-entry-tool hash them to make sure they’re clean for booting, that’s totally fine for me.

I don’t like putting kernels on the Linux filesystem for GRUB — it just makes booting slower and causes random issues.

[–] Eheran@lemmy.world 7 points 2 days ago (3 children)

What about data safety, backups etc.? If someone has access to my PC, that is already pretty catastrophic.

[–] lunatique@lemmy.ml 9 points 2 days ago

They can't access your files, they just have your computer. They could delete your files by wiping your drive but they don't have your files, ensuring your privacy

[–] RotatingParts@lemmy.ml 6 points 2 days ago (4 children)

Good question. Along the same lines, if your disk is encrypted and you make a simple backup (say using cp) is the backup encrypted and if so, how do you restore from that?

[–] relativestranger@feddit.nl 10 points 2 days ago

if your system uses full disk encryption (such as via LUKS) and you simply copy files off to an external or a secondary drive for a 'backup', no. the copy is not encrypted unless the destination has encryption set up on it, too.

the alternative would be using a backup program, instead of a simply file copy, that encrypts its backups.

load more comments (3 replies)
load more comments (1 replies)
[–] TechnoCat@piefed.social 4 points 2 days ago
[–] umbrella@lemmy.ml 4 points 2 days ago (1 children)

how is the state of TPM unlocking atm? i don't do it because i use my computer remotely, and having to locally unlock it would break the setup. on my laptop sure, always encrypted.

[–] notabot@piefed.social 4 points 2 days ago

You can have your machine unencrypt using the TPM module, have a look at clevis for example. Once you've got it set up you can pretty much forget it's there.

load more comments
view more: ‹ prev next ›