I’m on a Fedora Kinoite system that is entirely on one LUKS encrypted drive, I recently added a second drive to have more space and I’m wondering how I should make use of it.
For now I formatted it completely with a new btrfs partition encrypted with LUKS and to actually add I thought I could:

  1. automount it to some location, not sure where I should mount it though, I’ve seen many questions online that say to avoid /mnt for permanent drives and also /media (there are contrasting opinions on that, though), so I thought I could maybe sidestep this question by going with the second option which is the following
  2. extending the already existing btrfs /sysroot to span across the 2 partitions on the separate drives, but I didn’t find good information on this process when LUKS is involved. It seems like that kind of operation is heavily discouraged due to risking data loss

So I wonder, what is the best approach and the one that will give me fewer headaches? If it is the second, how do I do it?

Edit: going with the first option I had an issue where the drive wouldn’t be mounted automatically at boot, I then read through my /etc/crypttab more carefully and saw that the UUID was wrong, I had used the partition UUID (PARTUUID as seen with the blkid command) instead of the actual device UUID, after correcting that it works and mounts correctly. Just a small oversight, the hardest to notice sometimes.
References:

  • rtxn@lemmy.world
    link
    fedilink
    arrow-up
    15
    ·
    edit-2
    3 days ago

    If you have a specific purpose in mind for the drive, then mounting it statically is probably the easiest solution.

    My setup is:

    • 2 TB NVMe
      • 200 GB partition at /
      • The rest (~1.8 TB) mounted at /games
    • 1 TB SATA SSD mounted at /home
    • 3 TB HDD mounted at /hdd

    /mnt and /media are used differently based on the OS. /mnt is supposed to be used for temporary manual mounts, but you can use it (or a subdirectory) as a permanent mount point. /media is meant to contain mount points for dynamically mounted removable devices, but modern systems generally use /run/media/$USER for that purpose; I would personally avoid it nevertheless.

    • QuazarOmegaOPA
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      3 days ago

      (Solved, explained in the post)

      I’m trying that right now, but I can’t figure out how to decrypt and mount my drive at boot, I’ve read that simply giving the drive the same passphrase as that of the first drive would enable unlocking both at boot (reference), but it didn’t work for me, the drive remains encrypted and also not mounted despite me adding the entry to /etc/crypyttab and /etc/fstab