LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Dealing with External HDDS/Permissions (https://www.linuxquestions.org/questions/linux-newbie-8/dealing-with-external-hdds-permissions-4175678210/)

varaonaid 07-06-2020 12:24 AM

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 OpenSUSE 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 on that distro/WM. 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 download 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

Do I need to manually edit FSTAB? oST is mounting at /run/username/media/drive. Is there a program like Disks on Cinnamon/Gnome that will work on KDE at least for some of the mounting setup?

Thanks so much in advance! Looking forward to learning more and better understanding how to use oST. :) I’m not to new Linux but new to oST and haven’t use KDE for awhile. If this should be posted elsewhere, please let me know and I’ll move it over. :)

business_kid 07-06-2020 12:45 PM

I use the user option in /etc/fstab, and hand mount my solitary external drive as a user on /mnt/hd.
/mnt/ is root only
/mnt/hd is root only
As root:root I have changed the permissions of all subdirs on /mnt/hd (except lost+found) to user:group so user:group can write to all subdirs, but not the disk itself
I found the automount thing messed all that up. I advise leaving it out.

JZL240I-U 07-06-2020 01:21 PM

Umm. I know you know a lot more about linux than I do. But. On my system (tumbleweed) it all works like the OP wants it to. In particular when I plug in my backup USB-drives. So it is possible. I just don't know how to tweak it.

quickbreakfast 07-06-2020 04:02 PM

Quote:

Originally Posted by varaonaid (Post 6141978)
Hi,

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

If you change the label of your drives they should appear in an order. ie. call one apple, the next bat, the third cat, etc, etc.

varaonaid 07-06-2020 04:07 PM

Quote:

Originally Posted by quickbreakfast (Post 6142325)
If you change the label of your drives they should appear in an order. ie. call one apple, the next bat, the third cat, etc, etc.

Well, I actually did that already for that very reason and it doesn’t mount that way. Using your example it’s all random like cat, apple, bat, dog. No rhyme or reason. That’s what so frustrating. I wanted it in some sort of easy to sort out order.

business_kid 07-07-2020 03:40 AM

Read up on mount and fstab.conf. They have good man pages. Also, find the permissions of everything relevant & post them.


All times are GMT -5. The time now is 12:55 PM.