I have an internal SSD that mounts automatically on my F41 KDE but, in order to access it I have to enter my su password everytime I log in.
Is there a way to remove that password step?
I’ve checked everything in the Automount option in the Settings so I’m assuming I have to work with the /etc/fstab config file but I’m not experienced enough to change anything there…
I expect it is an ownership & permissions issue.
What are the permissions if you use ls -ld <mount point> for that file system.
What are the permissions of the content of that file system? ls -ld <mount point>/*
What type file system is on that device? NTFS, ext4, vfat, or ?
Please also show us the content of /etc/fstab – especially the line that mounts that device. cat /etc/fstab
The second command should have been ls -ld /run/media/admin/Medias/*. It appears you may have run that with a space preceding the ‘/*’ at the end.
However, since you are mounting an ntfs file system you should add some options in the fstab line. Note that with this I am assuming that your user has uid of 1000 and you might need to adjust the options for whatever your actual uid is. I also assume that you are the only user and you want full access for the admin user only. The id command will show your user uid and gid which are used below.
The options I would suggest are to change the line in fstab to read as follows.
I just noticed an error in that path (I had copied what you had above and I fixed my suggestion).
It should be (on most fedora systems) /run/media/admin/<directory>
There was an error in the /etc/fstab in that respect.
Probably correcting that will fix it.
/etc/fstab
# Created by anaconda on Sun Dec 29 16:43:32 2024
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
UUID=6ecbcde0-c453-4a3b-9030-cf530c851b40 / btrfs subvol=root,compress=zstd:1 0 0
UUID=386675e3-afa6-4ea2-9332-937c79688a0e /boot ext4 defaults 1 2
UUID=2156-F9B2 /boot/efi vfat umask=0077,shortname=winnt 0 2
UUID=6ecbcde0-c453-4a3b-9030-cf530c851b40 /home btrfs subvol=home,compress=zstd:1 0 0
/dev/nvme0n1p1 /run/media/admin/Medias ntfs nofail,shortname=winnt,umask=0027,uid=1000,gid=1000,nosuid 0 0
After a little bit of pondering, it seems that /run/media/admin may not exist until after the admin user has logged in. Probably the cause of the failure. The /run file system exists only in RAM and is created during boot.
The final solution probably would be to create a directory in your home directory named media then mount that file system there where you are certain the mount point exists at boot time. mkdir ~/Medias
Then edit the line in /etc/fstab to mount that device at /home/admin/Medias instead of /run/media/admin/Medias.
After playing with KDE Partition Manager, I realized that for some reason the system kept changing the device node of the partition /dev/nvme0n1p1 (alternating between 0 / 1 / 2).
So I removed the mounting point and creating a new one, this time using the UUID instead of the device node.
Now, whether I’m rebooting or shutting down the system, the partition mounts automatically in /home.
Thanks a lot @computersavvy for your time and all your recommendations!