this post was submitted on 06 Nov 2025
17 points (90.5% liked)

Linux

10191 readers
742 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
 

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!

you are viewing a single comment's thread
view the rest of the comments
[–] sgibson5150@lemmy.dbzer0.com 3 points 2 weeks ago (4 children)

When you get your boot fixed, there's a nice way to automount volumes with systemd as an alternative to modifying fstab. I think this is how I did it on Bazzite:

https://www.golinuxcloud.com/mount-partition-using-systemd/

[–] ArcaneSlime@lemmy.dbzer0.com 2 points 2 weeks ago (3 children)

I'm back! Thanks for the help! Booted off the usb and deleted my shame from fstab haha.

Though, I actually specifically don't want it to auto-mount, as dumb as that sounds. I just want it so that when I click "1.9tb encrypted drive" in dolphin it only asks for the luks pass but not root, currently I have to type the luks pass and then root pass every time.

Also for nmount in nnn, which can only mount stuff as a normal non-root user.

Idk why my internal secondary requires root while I can mount a flash drive or encrypted external ssd just fine without it.

[–] sgibson5150@lemmy.dbzer0.com 2 points 2 weeks ago

Ah my bad dude. Hope you figure it out.

load more comments (2 replies)
load more comments (2 replies)