I just installed Cachyos and I’m having trouble with mount points I think. At boot, I need a password to mount sata drives, and whatever permissions I change don’t stay after rebooting. From what I can tell, it has to do with the drives mounting on /run/media, and apparently /run is a temp folder or something.

I think I need to change the mount points to something else, like /media (which doesn’t exist and I’m hoping I can just create the folder and use it as a mount point?)

fstab is confusing me, can anyone help me with a quick rundown?

Edit: Think I’ve got it using gnome disk utility. I switched the mounts, everything boots up connected now. Had an issue where I couldn’t read or write to the drives tho haha, but seems to have corrected after a reboot ( I think I may have installed ntfs-3g before the reboot). The owner and group for all of them are now root for some reason, but it seems to be working anyway.

  • Jack_Burton@lemmy.caOP
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    4 hours ago

    Haha I didn’t 777 anything, that’s how they mounted as root after changing the mount point. But you’re totally right, Cachy gave me the impression it would be a simple setup.

    That said, I’m hoping you can answer a quick question. I’ve reinstalled again, changed mount points with gnome disk utility to /mnt/drivename, and they mount at boot but they’re all owned by root now. I’m able to access everything (I’m assuming due to 777) and my server can see everything using sudo setfacl -m user:emby:rwx /mnt (but this doesn’t stay after reboot and I have to do it again).

    The server has an option to auto organize files, but it can’t access the folder I use for it, it says the drive is read only (I can create/delete in it so it must be rw).

    After everything I’ve learned, I think I need to dive into learning fstab and permissions properly, but honestly I’m pretty overwhelmed. At this point, would you say permissions and fstab are where I need to focus? Fstab because drives mount as root and permissions for, well, permissions? I’m just looking for guidance on where to start to solve this myself.

    EDIT: I think the issue is that the drives are ntfs so they mount as root automatically. Does this sound right? Unmount in gnome disk utility and change mount options back to auto. Then mount -t ntfs3 /dev/sdxY /mnt/drivename

    If this is correct, I’m still unsure about the fact that gnome disk utility made changes to fstab and I don’t know if that will cause issues?