Disable auto-mounting
15 Aug 2023
Configuring Automounting
To enable or disable automount open a terminal and type dconf-editor followed by the [Enter] key.
Browse to org.gnome.desktop.media-handling.
The automount key controls whether to automatically mount media. If set to true, then Nautilus will automatically mount media such as user-visible hard disks and removable media on start-up and media insertion.
There is another key org.gnome.desktop.media-handling.automount-open. This controls whether to automatically open a folder for automounted media.