So I have two SSDs in my laptop running FedoraKDE, and every time I mount the one used for storage, I have to type the luks password and then my root password. So, looking it up, I found that to not need root to mount the drive I need to add it to fstab.

I added (as was told by the internet since I’m flying by the seat of random stackoverflow help in absence of real knowledge):

UUID=uuid-string-goes-here   /path/to/directory ext4 defaults 0 0

To fstab (and forgot to chown the directory, oops!) and rebooted, aaaaaaand now I get booted into “emergency mode” with root disabled and have no clue what to do.

I think I used the right uuid, it was nvme0p1 (or whatever that drive said the right name was, can’t check now!) In any case, I didn’t use the uuid of the drive my system was running on, for sure.

Boot hangs on

job dev-disk-by\x2duuid- [Something something]

Edit: Still taking any advice on how to actually not have to use root to mount this drive, though my boot issue is solved and it looks like I have some links to peruse already!

  • Peffse@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    3 days ago

    so instead of defaults I think you want noauto,nofail

    Then it shouldn’t automatically mount, but at the same time won’t throw you into emergency mode if it fails to detect the drive.

    • ArcaneSlime@lemmy.dbzer0.comOP
      link
      fedilink
      arrow-up
      1
      ·
      2 days ago

      Thanks I might just try that! Worst case scenario “repeat step a” now that I know how to fix my dumbassery! And if that cuts my root pass out of the equation it’ll serve my purposes lol.