SUSE Support

Here When You Need Us

GNOME3 auto-mounts removable media when that is not the desired behavior

This document (7021179) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 12 Service Pack 1 (SLES 12 SP1)
SUSE Linux Enterprise Server 12 Service Pack 2 (SLES 12 SP2)
SUSE Linux Enterprise Desktop 12

Situation

Removable storage device is mounted automatically when plugged in during an active GNOME3 session.

Resolution

Change the automount setting used by org.gnome.desktop.media-handling for any users of the GNOME3 shell.

Method A (GUI based):  Use GTK-based "dconf Editor" to change this setting.

1. If not already present, install the dconf-editor:
hostname:~ # zypper in dconf-editor
2. Select the "Applications" menu > "System Tools" and select the dconf Editor. 

3. Navigate to org > gnome > desktop > media-handling and select the "automount" setting.



4. Make sure "Use default value" is set to "Off" and "Custom value" is set to "False". 


Method B (command-line based): Use gsettings command-line tool to change this setting.

1. First, check the value of the automount setting:
hostname:~ # gsettings get org.gnome.desktop.media-handling automount
2. If automount is set to "true" switch the value to "false":
hostname:~ # gsettings set org.gnome.desktop.media-handling automount false

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7021179
  • Creation Date: 03-Aug-2017
  • Modified Date:03-Mar-2020
    • SUSE Linux Enterprise Server
    • SUSE Linux Enterprise Server for SAP Applications

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.