In Ubuntu 20.04 (as in previous versions), external USB drives are automatically mounted when they are plugged in, and an icon for each partition appears in the Dock.
How is that working? Which services take care of that, and where do they get the details for their configuration?
In particular, I would like to change mount options for NTFS and HFS+ partitions.
There are several similar questions, but they seem more focused on specific drives, and the answers send to /etc/fstab
, or using the Disks utility (gnome-disk-utility) to edit options which will only apply to one specific drive or partition.
The AutomaticallyMountPartitions page mentions udisks
, but only shows how to use it interactively and doesn't describe how it interacts with the other parts.
I can also find udev
rules with scripts to automount partitions, but the system already does that.