this post was submitted on 02 Sep 2024
76 points (98.7% liked)

Linux

48152 readers
618 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
 

My laptop isn't under my supervision most of the time. And I'd hate it if someone were to steal my SSD, or whole laptop even, when I'm not around. Is there a way to encrypt everything, but still keep the device in sleep, and unclock it without much delay. It's a very slow laptop. So decryption on login isn't viable, takes too long. While booting up also takes forever, so it needs to be in a "safe" state when simply logged out. Maybe a way that's decrypt-on-demand?

I'm on Arch with KDE.

you are viewing a single comment's thread
view the rest of the comments
[–] bruhbeans@lemmy.ml 20 points 2 months ago (2 children)

How old are we talking? If the CPU is >10 years old and/or some kind of ARM, it may not have hardware encryption acceleration, which means it'll happen in software. I did that once, it was horrible. lscpu |grep -i aes should probably tell you what you need to know.

[–] chevy9294@monero.town 5 points 2 months ago

If you don't have hardware encryption you can use --cipher xchacha20,aes-adiantum option when running cryptsetup to make it way faster than standard aes cipher in software.

[–] UnRelatedBurner@sh.itjust.works 3 points 2 months ago (4 children)

It does give me a result so I do have "aes". How can I use it?

We're talking an Intel i5-8350U. it has 16GBs of ram and 500GB of SSD.

[–] deafboy@lemmy.world 5 points 2 months ago (1 children)

That's not a slow laptop. I've been daily driving worse for years.

To protect the data from random thief just browsing through the files I still use ecryptfs. It only encrypts the home directory, and the keys are derived from my accounts password, so no extra hassle.

The encryption is weak by the current standards, and wouldn't stop a determined attacker, but it's 100% better than nothing, and I've never noticed any performance problems.

[–] UnRelatedBurner@sh.itjust.works 1 points 2 months ago

I'm not planning on putting information on my laptop that I don't have to. Speed for a bit of security sounds good. I'll look into ecryptfs. And also into boot time, lots of you are screaming at me that it's a fast laptop. what how

[–] bruhbeans@lemmy.ml 4 points 2 months ago

You said you're on Arch, you'll want to go through their docs which are solid: https://wiki.archlinux.org/title/Dm-crypt/Encrypting_an_entire_system

[–] bjoern_tantau@swg-empire.de 2 points 2 months ago

That is absolutely not a slow laptop. If it takes a long time to boot there must be something wrong. I have a similar system that takes about ten seconds to boot.

Anyways, like others said, LVM with LUKS is the simplest. It uses your hardware to quickly decrypt the drive on boot. While it is running access to your data is protected by your login manager or lock screen.

[–] VeganCheesecake@lemmy.blahaj.zone 2 points 2 months ago* (last edited 2 months ago) (1 children)

That's pretty much my ThinkPad's Specs. Fine for almost all stuff I have to do on the go (expect CAD, don't try to run BricsCAD on the thing, it'll make you go crazy.)

I use full disk encryption on it, as on all my other devices, and it's fine, speed-wise. The SSD is NVME, not SATA, but I doubt the performance impact would be noticeable on a SATA SSD if that's what you've got.

[–] UnRelatedBurner@sh.itjust.works 1 points 2 months ago (1 children)

mine's m.2 too. I tried systemd-homed, as of now it doesn't work as it should. Next I'll try disk/partition one but it'd be great to encrypt when sleeping, it's fine if it's hibernation

Full disk encryption always seemed the most sensible to me, but I'm not sure whether that needs to be decrypted after hibernation.