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.

  • Oinks@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    23 hours ago

    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.

    Probably not. Yes /run is a tmpfs, but that doesn’t affect any other filesystems mounted inside of it - those have their own permissions (or don’t in the case of FAT).

    Since the drives are being mounted in /run/media they’re probably being mounted by your file manager, not via /etc/fstab. You could instead have them mounted on boot by the root user via /etc/fstab (the classic way) or systemd.mount (slightly friendlier), or configure polkit to allow mounting drives without a password (more reasonable if you’re talking about external or thumb drives).

    The permission issue is probably for a different reason. Are you sure the filesystem(s) you’re mounting supports POSIX style permissions? FAT doesn’t, and NTFS requires a special flag for it. The files might look like they have permissions, but they’re coming from the mount options and modifying them will either fail outright or not do anything.

    Edit: Run lsblk -f to see all connected drives, partitions and file systems and their file system type.

    • Jack_Burton@lemmy.caOP
      link
      fedilink
      arrow-up
      2
      ·
      23 hours ago

      Since the drives are being mounted in /run/media they’re probably being mounted by your file manager, not via /etc/fstab. You could instead have them mounted on boot by the root user via /etc/fstab (the classic way) or systemd.mount (slightly friendlier),

      This is where I’m stuck. I read that changing the mount via fstab requires the UUID, which I can see with lsblk -f. But /etc/fstab has the same UUID for every drive, I have no idea what to do with it. As it is the 3 internal sata drives don’t auto mount (even though they’re selected in settings) and require a password to mount, and revert pemissions after reboot. I read it’s due to /run but I’m stuck.

      The permission issue is probably for a different reason. Are you sure the filesystem(s) you’re mounting supports POSIX style permissions? FAT doesn’t, and NTFS requires a special flag for it. The files might look like they have permissions, but they’re coming from the mount options and modifying them will either fail outright or not do anything.

      They’re NTFS. I just switched from Ubuntu Studio to Cachyos and they worked fine with mounting and permissions on Studio. Studio had them mounted in /media, took me a while to find that they were under /run/media on Cachy.

      • Oinks@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        22 hours ago

        But /etc/fstab has the same UUID for every drive, I have no idea what to do with it.

        That would be because every entry (except /boot and /tmp) is a subvolume of the same btrfs volume. Your other drives just aren’t in there.

        You might want to read man fstab and maybe the Arch wiki pages for fstab and NTFS. It’s not that difficult as long as you make sure to not reboot with a broken fstab (using nofail is also a good idea). And yes you can just mount them to /media if you want, as long as the mount point is an empty directory.

        Ubuntu Studio might have achieved this in a different way but since you’re in Arch land now it’s probably better to do what the Arch documentation recommends.

        • Jack_Burton@lemmy.caOP
          link
          fedilink
          arrow-up
          2
          ·
          22 hours ago

          Haha yeah it’s been a journey. 5 months into Linux but I’ve learned a ton. I’ll start digging into this and in the mean time just settle for mounting at boot and changing the permissions to /run/media/USER every time so my server can get in. Appreciate the time, thank you.