I am working on a project, and for this I need to disable the aumounting of hard-drives in Ubuntu both at startup and when I plug an hard-drive.
I tried one solution with "edit-conf" disabling automount at org.gnome.desktop.media-handling but when I plug a hardrive ubuntu still mounts it an open a window even when I restart the computer in between.
There is also the fstab solution but the thing is I don't know in advance the UUID of the drive I don't want to mount automatically.
From want I understand there is the solution of editing an udev rule, but i'm not a specialist of that.