Article 6MADD NVMe disk mounted by user but can't be accessed by user

NVMe disk mounted by user but can't be accessed by user

by
minuzed
from LinuxQuestions.org on (#6MADD)
I have an internal NVMe disk and when I mount it using a file manager it mounts to /media/<disk-id> which is fine. The problem is that after mounting the directory is owned by root:root and the permissions are 0700 which means that the user that just mounted the filesystem can't actually access it.

The system is a custom Yocto project using systemd so I suspect there is a udev rule somewhere that controls the mount options or falls back to some default values. The problem was evident after a semi-large update which might have updated systemd, polkit or any other software that is involved in managing the mounting of disks.

Is there a way to monitor what .rules-files are applied when I mount the filesystem? I seems to only affect the internal nvme-disk and not usb-sticks. USB-sticks are mounted (/media/<usb-device>) "correctly", owned by the user:usergroup with 0755 permissions.

EDIT:
After comparing with a different system that also contains an NVMe-disk it seems like it is also mounting it owned by root:root but with 0755 permissions, which at least lets the user read the filesystem. In my case I need the user to be able to test the disk so the user has to be able to write to the disk as well.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments