this post was submitted on 16 Jan 2025
160 points (98.2% liked)

Linux

49682 readers
865 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 4) 50 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 2 weeks ago

yes. if you live in a country without democracy. it is the only way to protect yourself and your data from nsa agent kicking your door.

[–] [email protected] 1 points 2 weeks ago (1 children)

Yes. Encrypting your entire hard drive has basically been a tickbox in the Fedora installer for a long time now. No reason why I wouldn't do it. It's, easy, doesn't give me any problems and improves my devices security with defence-in-depth. No brainer.

[–] [email protected] 1 points 2 weeks ago

It’s a smidge more difficult on Debian if you want to use a non-ext4 filesystem - granted for most people, ext4’s probably still fine. I use it on my desktop, which doesn’t have encryption.

[–] [email protected] 1 points 2 weeks ago

I have no significant private data on my disks. They can be wiped whether encrypted or not if they're stolen. And I like that in theory if my pc explodes I can recover the data with only the drive.

[–] [email protected] 1 points 3 weeks ago

I always encrypt my computer SSD as well as my external backup drive. I just wish that when installing a Linux distro and when selecting encryption that it would work with multiple drives

[–] [email protected] 1 points 2 weeks ago

My issue is that I can never remember "a couple more commands" for the life of me. And I use Arch BTW, so the likelihood of me needing those is a bit higher than usual.

[–] [email protected] 1 points 3 weeks ago (1 children)

No need as none of them are networked

[–] [email protected] 1 points 3 weeks ago (1 children)

Do you physically crush and grind your drives once they are end-of-life?

[–] [email protected] 1 points 3 weeks ago* (last edited 3 weeks ago) (1 children)
[–] [email protected] 1 points 3 weeks ago (1 children)
load more comments (1 replies)
[–] [email protected] 1 points 2 weeks ago

I made the mistake of not setting up encryption on my main 45TB zfs pool so I'm currently backing up everything on there to tape so I can recreate the pool (also need to change from mirrored to raidz) and then copying everything back to the drives. Although writing and reading each are around 6 days continuesly. Didn't want to bite the bullet and pay more then I absolutely had to and only got a LTO-4 drive and tapes.

[–] [email protected] 1 points 3 weeks ago (4 children)

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. I couldn’t figure out how to handle it when away.

[–] [email protected] 1 points 3 weeks ago (2 children)
[–] [email protected] 1 points 3 weeks ago (1 children)

I tried it. Wonder if I was doing something dumb…

[–] [email protected] 1 points 3 weeks ago (1 children)

Did you get it working, if your boot is encrypted (I think) then I think you may have a hard time. Its been about 7 years since I did it. But you can have fstab and crypttab setup to pass the password.

[–] [email protected] 1 points 3 weeks ago

That’s what I was trying to do. I think I encrypted everything as it was my second plain Linux server, not unraid or truenas. I didn’t get it working

[–] [email protected] 1 points 3 weeks ago
load more comments (3 replies)
[–] [email protected] 1 points 3 weeks ago (1 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 (1 replies)
[–] 9488fcea02a9 1 points 3 weeks 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

load more comments
view more: ‹ prev next ›