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!
Generally: Disks with Luks have to be opened first before being able to be mounted. After opening, a virtual blockdev is created, with the UUID you put into fstab. As the Luks disk is not unlocked at boot, the virtual blockdev doesn’t exist yet, so systemd hangs for 3 mins or so trying to find/wait for it to mount it
Usually, it should continue to boot after timeout. If it does not, you need a USB Stick with Linux, boot that, mount the root partition and edit the fstab
Ayyyy why didn’t I think of that?! Thank you!
Booted off a stick, deleted that line and saved, rebooted and we’re back in action!
Would there possibly be any chance you could point me to the correct way to do what I’m trying to?
Basically I’m trying to make it so that when I click the drive to mount it, it still prompts me for the luks pass but not root.
Idk why it needs root, none of my externals do, you’d think it would require root for unknown externals, not the internal secondary!
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:
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.
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.
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.
Ah my bad dude. Hope you figure it out.
No idea about most of your question, but I think you entered the wrong UUID.
nvme0p1is the name of the partition.Use
blkidin the Terminal, the output will be something like:/dev/sda3: UUID="a7d71686-0a65-4402-b6e6-b58430ef8351" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="0ea90c96-1b56-4c51-b07a-02e09285f291" /dev/sr0: BLOCK_SIZE="2048" UUID="2020-10-22-14-30-30-00" LABEL="Ubuntu 20.10 amd64" TYPE="iso9660" PTTYPE="PMBR"This is how a valid UUID looks like:
a7d71686-0a65-4402-b6e6-b58430ef8351Well tarnation. I thought it had to be the one I used because when I go to mount the first part of that drive in nnn it says no, then when I try to mount that partition it says “yes but oh wait permission denied cause root.”



