I'm working on creating an Ubuntu variant that has a lot of forensic analysis tools etc installed. However I can't seem to find out how to disable auto-mounting at all..I want it to NEVER mount anything, I always want to mount something manually.
I've done some searching and found this: How can I use gsettings to disable device automount in Ubuntu 16.04?
However, if I use: gsettings set org.gnome.desktop.media-handling automount false
It still auto-mounts. Also the thread says something about
The reason it failed on this occasion seemed to be caused by the lack of environment variables being set, notably $DBUS_SESSION_BUS_ADDRESS.
Now I have now idea what this last part mean, anyone care to explain or have any other solution to fully disable auto-mounting cd/usb/sata etc.