I have setup a Hyper-V VM with fedora 41 xfce, with 2 hard drives. When I log, I can see the 2nd hard drive but when I try to access it, I get prompted to enter my password and then get mounted.
I need to make the 2nd hard drive get mounted as the 1st one and give read write access to all users or specific group.
I was able to change owner to my user and give read/write to all users using
sudo chown…
sudo chmod 777…
In gnome-disks, I see it is not mounted before accessing the data disk
Since the disk is not present in /etc/fstab, it is not mounted at startup.
This is confirmed by the fact that in GNOME Disks, the Use Session Defaults toggle switch is on (irrespective of the settings grayed out). You can switch it off, then edit the flags, mount points etc. After hitting OK, an entry should be created in etc/fstab.
Make sure to keep the nofail flag, as otherwise possible errors might bring the system to an unbootable state (emergency mode).
Is the disk formatted to a native Linux file system? If not (e.g. NTFS), and still having issues with access rights, you might want to replace the nosuid flag with uid=/gid=/umask= ones, adding the appropriate values.
You’ll have to change the mount point in /etc/fstab, or by using GNOME Disks if you prefer. See the screenshot from your post above, where the mount point used by default can be noticed. You can change that to /mnt/data or another folder to your liking.