cross-posted from: https://lemmy.ca/post/20291268

I recently acquired a Raspberry Pi 5, but I’ve been having a lot of difficulty in getting LUKS encryption to work. Has anyone had any luck?

Also, I am using an NVMe drive, so Raspbian is really the only OS that works well. NetBSD can see the disk, too, but I found it annoying to use; and FreeBSD ended up breaking itself. I have not yet tried Armbian.

  • Possibly linux@lemmy.zipM
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    6 months ago

    I would definitely avoid BSDs for Raspberry Pi.

    What you are trying to do is not going to work well as that’s not how the Raspberry Pis are designed to be used. To do what you are trying to do you will need strong Linux knowledge. I would build a custom Debian system if you are determined to make it work.

    You will need the Raspberry Pi kernel and firmware files. Once again, this is not something that’s going to be easy to do. I can’t really walk you though the process as there is simply not a process to follow.

    Could you share your use case?

    • Hellfire103@lemmy.caOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      6 months ago

      Desktop, for programming, homework, watching video, and some light gaming (I have the 8GB model). I use disk encryption as a matter of basic security.

      I previously got it working perfectly on my RPi 3B+; but when I flashed the old card across to the NVMe drive and tried to boot, I got some error about dm_mod being missing, which meant I couldn’t use cryptsetup in the initramfs shell, so I couldn’t unlock the encrypted volume.