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.
  • MonkderVierte@lemmy.zip
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    3 hours ago

    This makes a world of difference

    Yep. Can’t recover /home if you fuck around.

    Keep it simple and stupid it is for me. I prefer to encrypt only my sensible files. And the browser runs in volatile memory.

  • Azenis@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    4 hours 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.

  • gi1242@lemmy.world
    link
    fedilink
    arrow-up
    10
    arrow-down
    1
    ·
    11 hours ago

    I found it better to just encrypt one folder with all my sensitive info (I use gocryptfs). i saw no reason to have my zshrc and init.lua encrypted 🙂 and I just encrypt data I don’t want in the hands of others…

    • monovergent@lemmy.ml
      link
      fedilink
      arrow-up
      16
      ·
      edit-2
      16 hours ago

      idk man, but I’d still much rather have encryption, even if I’m up against the alphabet boys:

      • They’ll be up a creek if I escape, die, or vanish into the woods first
      • If I hid a disk somewhere, I’d rather know they found it when they come to torture me, than have it inspected without hearing a word
      • If all else fails, they’ll at least have to expend a modicum of effort and resources to fight me
    • Billegh@lemmy.world
      link
      fedilink
      arrow-up
      36
      ·
      20 hours ago

      You know you’re fucked if they use a wrench. That means you don’t have to be seen publicly ever again. There’s a chance for you if they’re using a rubber hose…

      • notabot@piefed.social
        link
        fedilink
        English
        arrow-up
        31
        ·
        22 hours ago

        Encrypting your drives is a very sensible step to take, and it’s so low effort that it’s a no brainer in most cases. It’ll stop casual thieves stealing you machine and reading your files, and combining your password with a TPM encrypted one will mean your data isn’t readable on any machine except yours, even if the attacker has your password, which adds a little extra protection.

        Unfortunately, none of that protects you against an adversary who is willing to kidnap and torture you to get your files. At that point you have to make a choice, which is more important; your files or your life/not being tortured. Fortunately, most people will never be in that situation, so should encrypt their drives and accept they’ll reveal their encryption passphrase if taken hostage/arrested.

        • d-RLY?@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          9 hours ago

          If they are willing to torture you to get the data. Then there is also a very real chance that you would still get the same treatment or just killed even if you give the password.

          • notabot@piefed.social
            link
            fedilink
            English
            arrow-up
            2
            ·
            7 hours ago

            That’s absolutely possible, but there’s not much you can do about that really. My point was simply in response to OP’s assertion about encryption protecting your data from ‘alphabet agencies’. It wont because it is very unlikely you consider keeping your data confidential more important than your life.

        • fruitycoder@sh.itjust.works
          link
          fedilink
          arrow-up
          7
          ·
          20 hours ago

          A more common case I’ve heard of is law enforcement using face id without permission. They can also compel people to give up passwords too which is why duress passwords and panic buttons exist to wipe everything

          • Renohren@lemmy.today
            link
            fedilink
            arrow-up
            8
            ·
            edit-2
            18 hours ago

            This is in the US, in a lot of countries, even in EU ones, refusing to reveal your password is used as part of the case against you (not as proof but as a suspicious attitude that can, combined with other facts, bring a certainty of culpability).

            So be careful and check out your local laws before following US laws concerning this.

          • notabot@piefed.social
            link
            fedilink
            English
            arrow-up
            12
            ·
            20 hours ago

            You want to think very carefully before giving a duress password, or using a destructive panic button when dealing with law enforcement. If you do, you will be charged with, at least, destruction of evidence. You have to decide if your data is worth that. A duress password that only decrypts part of your data is probably safer if twinned with deniable encryption, although you still risk legal trouble.

        • Lunatique Princess@lemmy.mlOP
          link
          fedilink
          arrow-up
          5
          arrow-down
          2
          ·
          19 hours ago

          Yeah thanks pal. It helps you from someone who doesn’t know your password. You all give the most extreme examples. That example applies to biometrics, normal passwords without encryption, bank pins, etc. What was the point of saying it? What technology would help you from that

          • notabot@piefed.social
            link
            fedilink
            English
            arrow-up
            3
            ·
            edit-2
            19 hours ago

            I was actually largely agreeing with you, but responding to the bit where you said:

            It Protects your files in case your computer is ever stolen and prevents alphabet agencies from just brute forcing into your Laptop or whatever.

            It’ll stop alphabet agencies from brute forcing it, sure, but that’s not how they would approach extracting the information.

            I see ~you’ve~ the mod has deleted this comment thread though, so it’s unlikely anyone else will see it.

            As to your question about what technology would stop it, I think you may need to think differently as no technology will stop a determined enough opponent torturing you for a password, but they’re much more likely to attempt a malware style attack against you to skip all that bother. So countermeasures would involve a well locked down system (think about things like SELinux with MLS enabled and using VMs to isolate processes) and good information hygiene practices to reduce the risk of infection and the risk of it spreading if you are infected.

            • Lunatique Princess@lemmy.mlOP
              link
              fedilink
              arrow-up
              1
              arrow-down
              6
              ·
              18 hours ago

              I know this. Was never confused about it. You just came out of no where telling me. I don’t delete comments, look at how many people try to debate me, those comments are still up and still stupid lol. Also luckily the FBI or CIA or whatever demon inspired agency won’t just torture you as an everyday citizen doesn’t matter what they want on your top. If it was that bad the USA would be JUST like North Korea. Here they have some rules still they are just burning them away as the years go by.

              • notabot@piefed.social
                link
                fedilink
                English
                arrow-up
                4
                ·
                17 hours ago

                I edited my comment, it was the mod who deleted your comment.

                I don’t see many people debating you, but I do see a number of comments, including my own, that are pointing out things that need to be considered, or expanding on what you’d said. I don’t see much that could be called ‘stupid’, but you seem to be carrying a lot of pent up frustration and anger. You’ll probably find you have much more productiv£ and pleasant exchanges if you dump that on other people though.

                One need only read or watch the news to know that a disturbingly large number of people are being abducted, predominantly under the umbrealla of ICE, but also for political reasons. It seems likely that if an agency has interest in the data of someone like that, presure of various sorts will be brought to bear on them. Most people will hand over their passwords long before the threat of physical violence is manifested, but the threat is there none-the-less. As you say, this won’t apply to most everyday citizens, for now at least.

                Ultimately, it’s a case of setting up your security posture to match your own threat models. Encryption is an excellent step, but only addresses some threats, online attacks being the most obvious set that it does not help with.

  • Bigfishbest@lemmy.world
    link
    fedilink
    arrow-up
    18
    arrow-down
    5
    ·
    16 hours ago

    Dang, if those agencies ever see my Civilization 4 save games, I’ll be so royally embarrassed that I spent so much time on it that they could blackmail me to anything.

  • melfie@lemy.lol
    link
    fedilink
    arrow-up
    12
    arrow-down
    1
    ·
    16 hours ago

    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
      link
      fedilink
      arrow-up
      15
      arrow-down
      1
      ·
      16 hours 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!”

  • melfie@lemy.lol
    link
    fedilink
    arrow-up
    10
    ·
    16 hours ago

    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.

    • Spaz@lemmy.world
      link
      fedilink
      arrow-up
      4
      arrow-down
      5
      ·
      15 hours ago

      Pointless for gaming devices, nothing to hide on them, there will also be a small overhead for nothing.

      • NewNewAugustEast@lemmy.zip
        link
        fedilink
        arrow-up
        13
        ·
        14 hours ago

        I use mine as a computer often. When I travel it stores notes, has my email accounts, and is a productive tool.

        So yeah I would like to encrypt it. As it is I use vaults and back up encrypted to my own cloud. But it would be nice to simply do the whole thing.

        • Spaz@lemmy.world
          link
          fedilink
          arrow-up
          1
          arrow-down
          1
          ·
          11 hours ago

          Ok fair. But most of those tools are cloud based? Then wouldnt have to worry about an overhead lr encryption when the drive fails.

          • NewNewAugustEast@lemmy.zip
            link
            fedilink
            arrow-up
            3
            ·
            11 hours ago

            Encryption really is not much overhead with a modern processor.

            I do believe the steam deck uses a modern processor with hardware cryptology.

      • melfie@lemy.lol
        link
        fedilink
        arrow-up
        2
        ·
        14 hours ago

        Correct, nothing to hide because nobody gets their games from the high seas.

  • stupid_asshole69 [none/use name]@hexbear.net
    link
    fedilink
    English
    arrow-up
    18
    ·
    19 hours 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
    link
    fedilink
    arrow-up
    32
    ·
    24 hours ago

    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
      link
      fedilink
      English
      arrow-up
      9
      ·
      15 hours 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
      link
      fedilink
      English
      arrow-up
      5
      ·
      20 hours ago

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

    • pemptago@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      17 hours ago

      It’s easy-- if you install on a single drive. If you want home on a separate drive, encryption is not so easy, and you have to learn about cryptsetup, crypttab, etc. Quite a steep learning curve compared to the installer. I do hope distros provide better coverage of this in the future. Having home on a separate drive and encrypted is just good practice.

  • bruhbeans@lemmy.ml
    link
    fedilink
    arrow-up
    16
    ·
    21 hours ago

    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
      link
      fedilink
      arrow-up
      12
      ·
      21 hours ago

      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.

  • programmerlexi@sh.itjust.works
    link
    fedilink
    arrow-up
    13
    ·
    21 hours 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
    link
    fedilink
    arrow-up
    13
    ·
    24 hours ago

    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
      link
      fedilink
      arrow-up
      12
      ·
      edit-2
      24 hours ago

      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.

      • rinze@lemmy.ca
        link
        fedilink
        arrow-up
        2
        ·
        21 hours ago

        I used borg for my backups, but why do you say Cryptomator vaults are fragile?

        • floofloof@lemmy.ca
          link
          fedilink
          arrow-up
          4
          ·
          edit-2
          19 hours ago

          It’s not that they’re especially fragile. It’s really only when you combine them with a sync process. I once had a sync go wrong and it resulted in the contents of a vault being unreadable. Because all you have are a bunch of encrypted files with meaningless names and a flattish structure, which Cryptomator interprets and mounts as a different directory structure, when something goes wrong it’s not easy to know where in the vault files the problem lies. You can’t say “ah, I’m missing the documents folder so I’ll restore that one from backup” like you could with an unencrypted directory. And if you’ve made changes since the last vault backup you can’t just restore the whole vault either. You could mount a backup of the vault from a time when it was intact, and then copy files across into your live copy, but I feel safer having a copy in another format somewhere else. Not necessary, I guess, but it can make recovery easier.

          • rinze@lemmy.ca
            link
            fedilink
            arrow-up
            3
            ·
            19 hours ago

            Ok, I understand. In my particular use case that shouldn’t be an issue. My Cryptomator folder is local and I use it only locally. Then there’s a sync process to copy stuff to pCloud automatically, but that copy is never touched directly by my.

            But in any case as you said, backups.

          • Chewt@beehaw.org
            link
            fedilink
            arrow-up
            11
            ·
            23 hours ago

            AES-256 is just an encryption algorithm, it doesn’t do any compression on it’s own, so it’s not quite right to say its compressed with it. Really it was compressed, then afterwards encrypted with AES-256.

            • Lunatique Princess@lemmy.mlOP
              link
              fedilink
              arrow-up
              2
              arrow-down
              19
              ·
              23 hours ago

              Sigh. I said i compress with AES-256. I compress my files with the compression that encrypts it. Just as the screenshot shows. (Compression+AES-256) I’m the OP of this post. Give me more credit. I know they are two different things. I think you just didn’t get what I was trying to say

              • JohnnyCanuck@lemmy.ca
                link
                fedilink
                arrow-up
                21
                ·
                22 hours ago

                I said i compress with AES-256

                To avoid confusion you could say, “along with”, or fully say, “I encrypt with AES-256 as I compress, in one step”.

                It’s not necessarily about what you know, but about what readers will understand. (For example, someone who doesn’t know better might read what you wrote and think there is some way to compress using AES-256 and go down a rabbit hole.)

              • Chewt@beehaw.org
                link
                fedilink
                arrow-up
                4
                ·
                edit-2
                19 hours ago

                I understood what you meant, I was just pointing out that what you said was incorrect. Even in your reply you said

                I compress my files with the compression that encrypts it.

                Which is still not entirely correct. The compression is not doing any encrypting. They are two separate processes that the tool you are using is presenting as a single step for convenience. You seem to know what you are talking about, and I happen to know about cryptography, but as someone else in the thread mentioned not everyone knows how these things work. If we are trying to spread knowledge and tips in this community (like your post is doing) then I just saw this as an opportunity to clarify something that was incorrect. Not for your benefit, but for others.

        • JustARegularNerd@aussie.zone
          link
          fedilink
          English
          arrow-up
          1
          ·
          3 hours ago

          Obviously that would be a total compromise. However this all depends on your threat model and how you usually use your laptop, and if someone were to steal it, would they also mug you for your flashdrive?

          In my case, I just type the passphrase I have into the laptop, although my homelab server uses a USB so that it can unattended reboot, and I can put the USB in a secure location if it doesn’t need to reboot unattended.

          Otherwise, in my case I usually go out with a laptop that if stolen, is only worth about $150 AUD so not a big financial hit. While I have LUKS as a passphrase, I’m not likely to be a target of any individual or entity that, if they really wanted my data, would also mug me for a USB key, so I could live with either.

  • ☂️-@lemmy.ml
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    19 hours ago

    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
      link
      fedilink
      English
      arrow-up
      3
      ·
      19 hours 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.