In GNOME Shell, automount is convenient while devices inserting into computer. But it is annoying for me because I’m booting from an USB stick. The rest partitions in USB will be mounted and popup a notification to ask what action should be taken.
To disable the auto-mounting behavior built-in Nautilus (the file manager of GNOME), we need to change the configurations via dconf-editor or gsettings with the path:
For example, to DISABLE the behavior via command-line:
$ gsettings set org.gnome.desktop.media-handling automount false
. Other wise, just set as true to enable it. Enjoy it. 🙂
The reference is: How to disable automount in nautilus’s preferences.