I installed an additional SSD on my pc. Everything works ok, except I need to unlock it with my root password on every session so that it mounts.

I’ve tried formatting it to change the ‘owner’, tried adding it to the user group, and I can’t find any other solutions. Any ideas?

This happens irrelevant of DE (happens on KDE and hyprland). I’m running tumbleweed, though this looks like a config problem rather than a distro problem.

  • EskueroA
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    18 hours ago

    For automatically you need to add a keyfile to a slot in the luks device

    # openssl genrsa -out /root/keyfile.bin 4096

    # cryptsetup luksAddKey /dev/mapper/extra /root/keyfile.bin

    The entry in the crypttab would be like this

    extra UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX /root/keyfile.bin luks

    • 9tr6gyp3@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      18 hours ago

      And technically the key file can just be a plain text password and still work. Just as long as the key file matches the drive’s encryption password.