Dealing with external HDDs/Permissions

Hi,

I have a few external hard disk drives that I need to auto mount each time the system starts. I’m using latest Tumbleweed/KDE. I went to system settings and chose enable automatic mounting of removable media.

However, I cannot figure out where to deal with drive access permissions. I prefer using a GUI when possible to command line but so far, it’s not working. I’ve gone to the permissions of the drive in Dolphin and in Root file manager and each time, it allows me to add the user or group (under Advanced Permissions) I have it add to add sub folders, and click OK and each time, it doesn’t save the data. Whether I’m doing it in the root file manager or standard Dolphin or Krusader under root permissions. Also, some of the drives come up under my username and one of the drives comes up under root. I can’t add users/groups to either of these and make it stick.

What other options are there? I’m coming from Mint/Cinnamon and I used the GUI in the setup. But I don’t want to be there now, I want to use oST and I could really use some help figuring this out. Is there another program/app/software I need to accomplish this?

I’d like to accomplish three things:
Have all my drives mount in the same place under the same owner
Have all drives automatically mount each time (it would be nice if it would mount in a sane order like alphabetically or if I can change that order, I could do that myself)
Change the permissions for all my drives that that my media server can actually “see” the media

Thanks so much in advance! Looking forward to learning more and better understanding how to use oST. :slight_smile:

It is al a bit unclear to me what you mean.

What is on those devices? Partitions?. File systems. What type of file systems?

Are youi fluent with: https://en.opensuse.org/SDB%3ABasics_of_partitions,_filesystems,_mount_points

General:
When you want file sytems to be mounted on boot, they should be in /etc/fstab. You can create entries there either by editing, or with YaST > System > Partitioner (do NOT format them, just fill in the mount point and other options relevant to mounting).

I do not understand at all what you are talking about permissions. Ownership and permissions are important for the mount point (you may have to change them from the baulues set by YaST). Ownership and permissions are to be set in mount options when you use a non-Linux file system (because they have to be faked).

Using expressions like “external hard disk drives” is confusing IMHO. Linux only knows mass-storage devices, regardless if they are inside or outside of the metal case of your computer, if they are rotating disks or SSDs or if they are connecetd through different types of busses. Important is what is on them: partitions or not, usage of the partitions for e.g. swap, file systems, LVM physical volumes, etc.

Sorry for not making it more clear. These are external USB HDDs each with a partition that has media on it. These need to be viewable/writable by my media servers (emby/Plex). They two programs/apps each created a user and a group. These users/groups don’t have permission to view/read/write without manually adding it. Some of the drives are NTFS some are exFAT. I’m working to move them all the exFAT so it’s not seen as foreign by Linux (exFAT native support was added to the 5.4 kernel).

You misunderstand the expression “native support” here. Those file system types are still non-Linux. They do not support ownership/permissions like Linux. And thse thus are to be faked. On mounting (and thus also by specifying in /etc/fstab) such file systems you can use File System-Specific Mount options like uid= and gid=, which will fake that all files on such a file system are owned by that uid and gid and umask= dmask= that will fake the permission bits.

As the name already says, you have to cuncult the documentation of each file system type to see what it supports as Filesystem-specific mount options. A good starting point is

man mount

but it says there

FILESYSTEM-SPECIFIC MOUNT OPTIONS

You should consult the respective man page for the filesystem first. If you want to know what options the ext4 filesystem supports, then check the ext4(5) man page. If that doesn’t exist, you can also check the corresponding mount page like mount.cifs(8). Note that you might have to install the respective userland tools.

so it may be that you have to search further (but the ones mentioned by me above are in man mount for e.g. VFAT and NTFS ).