After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 668020 - external hard drives are not being mounted
external hard drives are not being mounted
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
3.3.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2012-01-16 15:21 UTC by brian baker
Modified: 2012-01-30 13:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot (74.60 KB, image/png)
2012-01-16 15:37 UTC, brian baker
  Details
xsession-errors (86.98 KB, text/plain)
2012-01-16 20:40 UTC, brian baker
  Details
disk utility (153.68 KB, image/png)
2012-01-16 22:55 UTC, brian baker
  Details
automountManager: Make sure sessionActive is initialized (1.64 KB, patch)
2012-01-29 22:25 UTC, Florian Müllner
committed Details | Review

Description brian baker 2012-01-16 15:21:20 UTC
title pretty much says it all :-)
i just added the testing ppa and now no usb devices are being mounted, i can go into disk manager and manually mount them but that is it.
Comment 1 Milan Bouchet-Valat 2012-01-16 15:27:51 UTC
Can you have a look at the org.gnome.desktop.media-handling.automount setting in dconf-editor? It should be set to 'true', which is the default.
Comment 2 brian baker 2012-01-16 15:37:47 UTC
Created attachment 205376 [details]
screenshot

it was the first place i checked :-)
Comment 3 Milan Bouchet-Valat 2012-01-16 15:42:56 UTC
Did it work with a previous version of GNOME+Shell? Could you try with a newly created user?
Comment 4 brian baker 2012-01-16 15:45:15 UTC
yes it worked with the previous version 3.2 which was also a fresh install of ubuntu 11.10
Comment 5 brian baker 2012-01-16 15:54:11 UTC
yes it worked with the previous version 3.2 which was also a fresh install of ubuntu 11.10 just tried in unity and in a guest sesion with a new usr account still doesn't auto mount!
Comment 6 Milan Bouchet-Valat 2012-01-16 18:44:55 UTC
Could you attach your ~/.xsession-errors? What's the exact version of gnome-shell?
Comment 7 brian baker 2012-01-16 20:40:41 UTC
Created attachment 205404 [details]
xsession-errors

here is the./xsession-errors :-) I also just installed gnome-shell dbg as well using the latest git snapshot from ricos/testing ppa, this was happening with the last 5 or 6 builds. cheers
Comment 8 Milan Bouchet-Valat 2012-01-16 21:35:44 UTC
OK, many errors there, but nothing very interesting for us, unless if the extensions you're using break automount.

When you say "got to the disk manager", do you mean clicking on the device in Nautilus mounts the device? If you start /usr/libexec/gnome-fallback-mount-helper, does automount work? Else, is there anything interesting in /var/log/messages?
Comment 9 brian baker 2012-01-16 22:55:15 UTC
Created attachment 205420 [details]
disk utility

no it doesn't show in nautilus but you see it with the disk utility.
Comment 10 brian baker 2012-01-16 23:10:13 UTC
this doesn't exist /usr/libexec/gnome-fallback-mount-helper! it is /usr/lib/gnome-settings-daemon i think
when i run as cil root i get:

Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1598:17: Invalid animation description

** WARNING **: Failed to get the current CK session: GDBus.Error:org.freedesktop.ConsoleKit.Manager.GeneralError: Unable to lookup session information for process '5934'


and nothing i could see in  /var/log/messages? todo with G-Shell i can post a screenshot again of it if you need?
Comment 11 brian baker 2012-01-16 23:12:20 UTC
sorry forgot the full path. /usr/lib/gnome-settings-daemon/gnome-fallback-mount-helper
Comment 12 Milan Bouchet-Valat 2012-01-17 10:36:03 UTC
If it doesn't show up in Nautilus, then something is really broken deeper in the system. I think you'd better file a bug in Ubuntu.

This for example isn't a good sign:
> ** WARNING **: Failed to get the current CK session:
> GDBus.Error:org.freedesktop.ConsoleKit.Manager.GeneralError: Unable to lookup
> session information for process '5934'
Comment 13 brian baker 2012-01-17 10:45:32 UTC
i filed a bug with ubuntu and will keep you updated when i hear from them. thanks for your help :-)
Comment 14 André Klapper 2012-01-17 11:46:46 UTC
(In reply to comment #13)
> i filed a bug with ubuntu

Could you provide the link to it here?
Comment 15 brian baker 2012-01-17 12:56:25 UTC
here you go :-)
https://bugs.launchpad.net/ubuntu/+bug/917583
Comment 17 mpiazza 2012-01-24 22:11:55 UTC
Also for me inserting a media key doesnt'show any notification.

I'm using gnome-shell from git (master branch) 3.3.4 release.
These are gsettings value
marco@deneb:~$ gsettings get org.gnome.desktop.media-handling automount
true
marco@deneb:~$ gsettings get org.gnome.desktop.media-handling automount-open
true
Inserting a DVD-video or a usb key doesnt'show anything.

Instead, as you suggeted, launching /usr/lib/gnome-settings-daemon/gnome-fallback-mount-helper opens totem video player inserting a DVD and open a nautilus window on inserting media USB key (but no notification)

I found non relevant information in .xsession-errors.
Marco
Comment 18 Milan Bouchet-Valat 2012-01-25 09:15:30 UTC
(In reply to comment #17)
> Also for me inserting a media key doesnt'show any notification.
What's your distribution?

> I'm using gnome-shell from git (master branch) 3.3.4 release.
> These are gsettings value
> marco@deneb:~$ gsettings get org.gnome.desktop.media-handling automount
> true
> marco@deneb:~$ gsettings get org.gnome.desktop.media-handling automount-open
> true
> Inserting a DVD-video or a usb key doesnt'show anything.
> 
> Instead, as you suggeted, launching
> /usr/lib/gnome-settings-daemon/gnome-fallback-mount-helper opens totem video
> player inserting a DVD and open a nautilus window on inserting media USB key
> (but no notification)
Thanks, so this is probably a bug in the Shell. But the original reporter didn't even see the drives in Nautilus, so you might be experiencing a different problem.

> I found non relevant information in .xsession-errors.
Could you attach it anyway?
Comment 19 mpiazza 2012-01-26 08:28:03 UTC
> > Also for me inserting a media key doesnt'show any notification.
> What's your distribution?
Debian unstable with many gnome components compiled from git.

Probably the problem I have is due to the fact I have systemd enabled with new logind (that bypass consolekit).
G-S-D now have an option to enable systemd for the gnome-session.
(https://bugzilla.gnome.org/show_bug.cgi?id=666787)
I will try to recomile G-S-D with systemd enabled and I will give a feedback.

> Thanks, so this is probably a bug in the Shell. But the original reporter
> didn't even see the drives in Nautilus, so you might be experiencing a
> different problem.
Yes, I agree. Mine is a different bug from the starting one.
Comment 20 brian baker 2012-01-26 11:28:24 UTC
just to follow up there is still a problem with media being mounted in G-S using 3.3.4 and 12.04 it shows in nautilus but doesn't mount you have to restart G-S, alt-F2 r and then it shows in the bottom tray and also as mounted in nautilus.
Comment 21 Gert Kulyk 2012-01-27 23:59:46 UTC
I'm experiencing the same as Marko, maybe because I've a similar setup (Debian sid/experimental with self-compiled gnome 3.3.4 and systemd).

There is nothing in the .xsession-errors file. As Brian pointed out, opening and mounting the storage device via nautilus (here nautilus can mount external storage devices) and restarting the shell via alt-F2 makes gnome-shell recognize that there is a device attached, otherwise not. While Brian is encountering maybe a more general problem, I'm convinced that mine (and the one of Marko) is related to the GDBus port of automountManager.js. Reverting commit 6547f75b1286b6304d832409424effc69c56cbf7 only for this file makes gnome-shell automounting the devices again.

Regards,

Gert
Comment 22 Florian Müllner 2012-01-29 22:25:16 UTC
Created attachment 206384 [details] [review]
automountManager: Make sure sessionActive is initialized

Since the port to GDBus, sessionActive is only set on DBus name
owner changes; this means that it may end up not being initialized
at all, and therefore always evaluate to false.
Make sure that the property is always initialized on startup.

(In reply to comment #21)
> I'm convinced that mine is related to the GDBus port of automountManager.js.
> Reverting commit 6547f75b128 only for this file makes gnome-shell automounting
> the devices again.

Thanks, that was helpful!
Comment 23 Jasper St. Pierre (not reading bugmail) 2012-01-29 22:59:06 UTC
Review of attachment 206384 [details] [review]:

Sure.
Comment 24 Florian Müllner 2012-01-29 23:11:22 UTC
Attachment 206384 [details] pushed as 3d0dd38 - automountManager: Make sure sessionActive is initialized
Comment 25 brian baker 2012-01-30 13:32:17 UTC
just upgraded G-S from ricotz/testing and now media mount is showing active pop-up again :-) nice :-)