“Error: Failed to mount Windows share” after upgrading to Ubuntu 12.10

It is a tragedy after upgrading to Ubuntu 12.10 that settings are changed. Today when I want to connect to some samba share with my existing Bookmark, I got “Error: Failed to mount Windows share” in Nautilus. After surveying Q&A and doing check, I found:

  1. The mounting point changed from ~/.gvfs (or /media?) to /run/user/{username}.
  2. The existing bookmark in Nautilus had been altered to add duplicated folder string, e.g.
    smb:// -> smb://

where the second point is the real cause. Maybe it is an individual case and mine only. However, if you encounter the same error, maybe this can help. Enjoy it. 🙂

Disable automount of GNOME

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:

org.gnome.desktop.media-handling automount

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.