How to automount partition

I searched it, including the forum and I’m aware it’s the default partition not to be automounted. But is there any way I could do it, so partition to be automatically mounted in thunar when attached from the block device widget?

USB devices are automatically detected as a removable media if you assign the device and not the partition.

Of course, thanks for reminding. But, for security reasons, I’m choosing always to attach partitions and not whole drives. That’s where my question came from. I read your comments on other topics but am not sure if there’s a workaround to this.

It’s u pure question of conformity, rare one on my side.

Don’t know if there is a Qubes way of doing it.

You can see the partitions getting attached with udevadm, maybe you can use that to auto mount the partition using a shell script.

Thanks. I found that for me eventually worked to add correspondent entry to template’s fstab, for example

/dev/disk/by-label/MY_LABEL /mnt/removable/MY_LABEL auto nosuid,nodev,nofail,x-gvfs-show 0 0

Obviously, I have to do this once for each disk/partition attached, but actually I don’t attach too many disks/partitions, and even less trust to auto attach them.

So, this only for trusted disks/partitions.

Edit: It is also possible to do this by-uuid, of course