this post was submitted on 16 Jan 2025
149 points (98.7% liked)

Linux

49059 readers
964 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I was recently intrigued to learn that only half of the respondents to a survey said that they used disk encryption. Android, iOS, macOS, and Windows have been increasingly using encryption by default. On the other hand, while most Linux installers I've encountered include the option to encrypt, it is not selected by default.

Whether it's a test bench, beater laptop, NAS, or daily driver, I encrypt for peace of mind. Whatever I end up doing on my machines, I can be pretty confident my data won't end up in the wrong hands if the drive is stolen or lost and can be erased by simply overwriting the LUKS header. Recovering from an unbootable state or copying files out from an encrypted boot drive only takes a couple more commands compared to an unencrypted setup.

But that's just me and I'm curious to hear what other reasons to encrypt or not to encrypt are out there.

(page 3) 50 comments
sorted by: hot top controversial new old
[–] BrianTheeBiscuiteer@lemmy.world 21 points 1 day ago* (last edited 1 day ago) (5 children)

I don't think I encrypt my drives and the main reason is it's usually not a one-click process. I'm also not sure of the benefits from a personal perspective. If the government gets my drives I assume they'll crack it in no time. If a hacker gets into my PC or a virus I'm assuming it will run while the drive is in an unencrypted state anyway. So I'm assuming it really only protects me from an unsophisticated attacker stealing my drive or machine.

Please educate me if I got this wrong.

Edit: Thanks for the counter points. I'll look into activating encryption on my machines if they don't already have it.

[–] PrefersAwkward@lemmy.world 17 points 1 day ago (6 children)

A big benefit of encryption is that if your stuff is stolen, it adds a lot of time for you to change passwords and invalidate any signed in accounts, email credentials, login sessions, etc.

This is true even if a sophisticated person steals the computer. If you leave it wide open then they can go right in and copy your cookies, logins, and passwords way faster. But if it's encrypted, they need to plug your drive into their system and try to crack your stuff, which takes decent time to set up. And the cracking itself, even if it takes only hours, would be even more time you can use to secure your online accounts.

On Linux, my installs always had a checkbox plus a password form for the encryption.

load more comments (6 replies)
[–] boredsquirrel@slrpnk.net 6 points 1 day ago

It is a one click process if you use user friendly distros

load more comments (3 replies)
[–] mholiv@lemmy.world 3 points 1 day ago* (last edited 1 day ago) (10 children)

I would strongly encourage people to encrypt their on site data storage drives even if they never leave the house and theft isn’t a realistic thing that can happen.

The issue is hard drive malfunction. If a drive has sensitive data on it and malfunctions. It becomes very hard to destroy that data.

If that malfunctioning hard drive was encrypted you can simply toss it into an e-waste bin worry free. If that malfunctioning drive was not encrypted you need to break out some heavy tools tool ensure that data is destroyed.

load more comments (10 replies)
[–] 9488fcea02a9@sh.itjust.works 1 points 22 hours ago

All my important files are on a NAS, so if someone steals my laptop, there's nothing of value there without being able to log in and mount the remote file systems

[–] cow@lemmy.world 6 points 1 day ago

Almost everything that can be is: laptops, desktop, servers (LUKS), phone (grapheneos)

[–] Uiop@lemmy.dbzer0.com 11 points 1 day ago (1 children)

i'd really like to. but there is ONE big problem:

Keyboard layouts.

seriously

I hate having to deal with that. when I set up my laptop with ubuntu, I tried at least 3 thymes to make it work, but no matter what I tried I was just locked out of my brand-new system. it cant just be y and z being flipped, I tried that, maybe it was the french keyboard layout (which is absolutely fucked) or something else, but it just wouldnt work.

On my mint PC I have a similar problem with the default layout having weird extra keys and I just sort of work around that, because fuck dealing with terminals again. (when logged in it works, because I can manually change it to the right one.)

Now I do have about a TerraByte of storage encrypted, just for the... more sensitive stuff...

While dealing with the problems I stumbled across a story of a user who had to recover their data using muscle-memory, a broken keyboard, the same model of keyboard and probably a lot of patience. good luck to that guy.

[–] herrvogel@lemmy.world 2 points 1 day ago (1 children)

Have you tried peppermint or maybe coriander?

Jokes aside, I believe the password entry stage is before any sort of localization happens, meaning what your keyboard looks like doesn't matter and the input language defaults to English. You have to type as if you're using an English keyboard. That's hardly a good solution if you're unfamiliar with that layout of course.

[–] fossphi@lemm.ee 1 points 22 hours ago

Initrd has support to configure the keyboard layout used. Consult your initrd generator's documentation for this

[–] Flax_vert@feddit.uk 2 points 1 day ago (1 children)

I don't even know how to do it

[–] kylian0087@lemmy.dbzer0.com 1 points 1 day ago (1 children)

Tick a box when installing some distros. Like OoenSUSE.

[–] Flax_vert@feddit.uk 1 points 22 hours ago (1 children)

Never got it when installing Ubuntu. Any way of enabling it after install?

[–] kylian0087@lemmy.dbzer0.com 1 points 21 hours ago (3 children)

I dont believe it is possible to do after install

load more comments (3 replies)

Every endpoint device I use is using full disk encryption, yes.

[–] socphoenix@midwest.social 10 points 1 day ago (3 children)

I started encrypting once I moved to having a decent number of solid state drives as the tech can theoretically leave blocks unerased once they go bad. Before that my primary risk factor was at end of life recycling which I usually did early so I wasn’t overly concerned about tax documents/passwords etc being left as I’d use dd to write over the platters prior to recycling.

load more comments (3 replies)
[–] gandalf_der_12te@discuss.tchncs.de 1 points 1 day ago (2 children)

Only encrypt the home partition, for the root partition it just unnecessarily slows down the system.

Also, I think, there could be different approaches instead of encryption. AFAIK, android doesn't use encryption underneath, but uses a semi-closed bootloader (which means, if you install a different OS, all user data gets wiped). I'm currently investigating the feasibility of such an approach in the long term.

load more comments (2 replies)
[–] NauticalNoodle@lemmy.ml 4 points 1 day ago* (last edited 1 day ago) (1 children)

I used to, but then I nuked my install accidentally and I couldn't recover the encrypted data. I nuke my installs fairly regularly. I just did again this past week while trying to resize my / and my /home partitions. I've resigned myself to only encrypting specific files and directories on demand.

My phone is fully encrypted though.

[–] furrowsofar@beehaw.org 1 points 23 hours ago (1 children)

Your recovery problem was a backup issue not an encryption issue. Consider addressing the backup issue.

load more comments (1 replies)
[–] southsamurai@sh.itjust.works 5 points 1 day ago

It's one of those things where it depends on the computer. My old box that's running win 7 has nothing but music and backed up media files on it, isn't connected to the internet at all, and there's really no point to it being encrypted.

My laptop leaves the house, and is connected, so it gets the treatment. My general purpose PC is, though that was more just because of a random choice rather than a carefully chosen decision. I figured I'd try it for a few weeks, then nuke it if it was a problem. It hasn't been, and I haven't needed to do anything to it that would require a change.

The other people in the house have chosen not to.

I'm not certain I would encrypt my main desktop again, just because it's one more thing to do, and I'm getting lazy lol. I don't have any sensitive files at all, and if things in the world get so bad that some agency is after me, I'm going to be hiding out up in this holler I know, not worrying about leaving a computer behind. Won't be power anyway, and the only shit they'd find is some pirated files.

I'd be more worried about my phone and my main tablet than any of the PCs, and those would either go with me, or get melted down before I left. Thermite is cheap and easy.

[–] patatahooligan@lemmy.world 5 points 1 day ago

I encrypt all my filesystems, boot partitions excluded. I started with my work laptop. It made the most sense because there is a real possibility that it gets lost or stolen at some point. But once I learned how simple encryption is, I just started doing it everywhere. It's probably not gonna come into play ever for my desktop, but it also doesn't really cost me anything to be extra safe.

[–] BioMyth@lemmy.ml 6 points 1 day ago (3 children)

I don't for a pretty simple reason. I have a wife, if something ever happened to me then she could end up a creek without a paddle. So by not having it encrypted then, anyone kinda technical can just pull data off the drive.

[–] furrowsofar@beehaw.org 1 points 22 hours ago (2 children)

Give her and your personal representatives the keys or access to the keys. Problem solved.

Same problem as you passwords and password manager.

load more comments (2 replies)
load more comments (2 replies)
[–] Zorsith@lemmy.blahaj.zone 2 points 1 day ago

Of course, I'm paranoid and don't trust the US government. Or any government really. "First they came for _____" and all that; Id rather just tell them to pound sand immediately instead of get caught with my pants down.

[–] ocean@lemmy.selfhostcat.com 3 points 1 day ago

I encrypt my laptop and desktops and I think it’s worth it. I regret encrypting my servers because they need passwords to turn on.

load more comments
view more: ‹ prev next ›