Bug 722712

Summary: cold-plugged devices are ignored at boot+login
Product: [Fedora] Fedora Reporter: John Reiser <jreiser>
Component: gvfsAssignee: Tomáš Bžatek <tbzatek>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: alexl, bnocera, davidz, harald, jonathan, kay, mclasen, rstrode, samuel-rhbugs, tbzatek, tsmetana
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gvfs-1.12.2-1.fc17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-02 04:56:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
"udisksctl dump" with unrecognized cold-plugged USB reader and SDHC card
none
"udisksctl dump" after unplugging cold-plugged USB reader and SDHC card
none
"udisksctl dump" after hot-plugging the USB reader and SDHC card none

Description John Reiser 2011-07-16 22:39:21 UTC
Description of problem: Cold-plugged [at boot] devices such as CD/DVD drives with media, or USB flash memory filesystems, are not visible automatically upon login after boot.


Version-Release number of selected component (if applicable):
udev-172-1.fc16.x86_64
gnome-desktop3-3.1.3-1.fc16.x86_64


How reproducible: every time


Steps to Reproduce:
1. Plug in a USB flash memory device containing a filesystem partition, or insert a data CD/DVD into a drive.
2. Boot (or reboot) to graphical desktop.
3. Login.
  
Actual results: Cold-plugged devices are not recognized: their filesystems are not automatically mounted.


Expected results: Cold-plugged devices are recognized (filesystems automatically mounted) as if they were hot-plugged.

Additional info:

Comment 1 Fedora Admin XMLRPC Client 2011-10-20 16:07:58 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 2 Fedora Admin XMLRPC Client 2011-10-20 16:09:57 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 3 Fedora Admin XMLRPC Client 2011-10-20 16:12:26 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 4 Fedora Admin XMLRPC Client 2011-10-20 16:16:53 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 David Zeuthen 2012-02-16 10:45:12 UTC
Does this appear with latest udisks2 packages? If not, please the output of 'udisksctl dump'. Thanks.

Comment 6 John Reiser 2012-02-17 05:46:31 UTC
I'm not sure what you're asking.  The problem persists in my setup, both before and after "yum install udisks2; reboot".  Namely, a USB2.0 card reader with SDHC card that has 3 ext3 filesystems (sde<1,2,3>) that is plugged in before boot, does not show anything mounted in /media after login.

Running udsksctl (after install of udisks2 and reboot) appears to fail:
-----
# udisksctl dump >foo

GLib-GObject-WARNING **: invalid (NULL) pointer instance

GLib-GObject-CRITICAL **: g_signal_handlers_disconnect_matched: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

GLib-GObject-WARNING **: invalid (NULL) pointer instance

GLib-GObject-CRITICAL **: g_signal_handlers_disconnect_matched: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

GLib-GObject-WARNING **: invalid (NULL) pointer instance

GLib-GObject-CRITICAL **: g_signal_handlers_disconnect_matched: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

GLib-GObject-WARNING **: invalid (NULL) pointer instance

GLib-GObject-CRITICAL **: g_signal_handlers_disconnect_matched: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

GLib-GObject-WARNING **: invalid (NULL) pointer instance

GLib-GObject-CRITICAL **: g_signal_handlers_disconnect_matched: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Error connecting to the udisks daemon: Error calling StartServiceByName for org.freedesktop.UDisks2: Timeout was reached
# cat foo
#  ### file 'foo' is empty
-----

and during the running of udisksctl there was a SELinux alert:
----- /var/log/audit/audit.log
type=SERVICE_START msg=audit(1329456933.581:51): pid=0 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg=': comm="udisks2" exe="/bin/systemd" hostname=? addr=? terminal=? res=failed'
----- /var/log/messsages
Feb 16 21:35:32 f16g64 dbus-daemon[963]: dbus[963]: [system] Activating via systemd: service name='org.freedesktop.UDisks2' unit='udisks2.service'
Feb 16 21:35:32 f16g64 dbus[963]: [system] Activating via systemd: service name='org.freedesktop.UDisks2' unit='udisks2.service'
Feb 16 21:35:33 f16g64 udisksd[1810]: udisks daemon version 1.91.0 starting
Feb 16 21:35:33 f16g64 systemd[1]: udisks2.service: main process exited, code=exited, status=127
Feb 16 21:35:33 f16g64 systemd[1]: Unit udisks2.service entered failed state.
Feb 16 21:35:34 f16g64 setroubleshoot: SELinux is preventing /lib/udisks2/udisksd from execute access on the file udisksd. For complete SELinux messages. run sealert -l 9282129a-375f-46ab-8397-7f754ca86c79
Feb 16 21:35:34 f16g64 setroubleshoot: SELinux is preventing /lib/udisks2/udisksd from execute access on the file udisksd. For complete SELinux messages. run sealert -l 9282129a-375f-46ab-8397-7f754ca86c79
Feb 16 21:35:35 f16g64 setroubleshoot: SELinux is preventing /lib/udisks2/udisksd from execute access on the file udisksd. For complete SELinux messages. run sealert -l 9282129a-375f-46ab-8397-7f754ca86c79
Feb 16 21:35:42 f16g64 abrtd: Directory 'ccpp-2012-02-16-21:35:41-1577' creation detected
Feb 16 21:35:42 f16g64 abrt[1863]: Saved core dump of pid 1577 (/usr/bin/seapplet) to /var/spool/abrt/ccpp-2012-02-16-21:35:41-1577 (11436032 bytes)
-----

and sealert also crashed.

The software is:
-----
kernel-3.3.0-0.rc1.git0.4.fc17.x86_64
gnome-desktop3-3.3.4-1.fc17.x86_64
udev-175-2.fc17.x86_64
udisks-1.0.4-4.fc17.x86_64
udisks2-1.91.0-1.fc18.x86_64
selinux-policy-3.10.0-78.fc17.noarch
selinux-policy-targeted-3.10.0-78.fc17.noarch
-----

Comment 7 David Zeuthen 2012-02-17 11:45:01 UTC
> SELinux is preventing

Looks like an selinux problem, not something I can fix because I don't control their policy. Please reopen if you can reproduce without selinux in enforcing mode. Also please file a bug against the selinux policy so they can fix their problem. Thanks.

Comment 8 David Zeuthen 2012-02-17 11:54:47 UTC
(In reply to comment #7)
> Also please file a bug against the selinux policy so they can fix their
> problem.

Btw, feel free to repurpose this bug for this, e.g. reopen and reassign to the SELinux component in question. Thanks.

Comment 9 John Reiser 2012-02-17 18:15:59 UTC
Created attachment 563954 [details]
"udisksctl dump" with unrecognized cold-plugged USB reader and SDHC card

This is the state after boot+login when the USB flash memory reader was plugged-in before boot.  The reader is a 4-socket reader (SD, CF, micro SD, MemoryStick) which has a SDHC card inserted.  There SDHC card has two ext2 filesystems, /dev/sdc1 and /dev/sdc2 in this case.

Comment 10 John Reiser 2012-02-17 18:17:13 UTC
Created attachment 563955 [details]
"udisksctl dump" after unplugging cold-plugged USB reader and SDHC card

Continuing, I unplugged the USB reader, then ran "udisksctl dump".

Comment 11 John Reiser 2012-02-17 18:22:10 UTC
Created attachment 563956 [details]
"udisksctl dump" after hot-plugging the USB reader and SDHC card

Continuing, I hot-plugged the USB reader, then ran "udisksctl dump".  About 5 seconds after hot plugging, then the two ext2 filesystems on the SDHC card were recognized and mounted under /media.

After original submission and "Can't Fix" response, I upgraded the system to /usrmove.  The SELinux problem has gone away.  The 3 most recent udisksctl outputs were done under:

kernel-3.3.0-0.rc3.git5.1.fc17.x86_64
package gnome3-desktop is not installed
udisks-1.0.4-4.fc17.x86_64
udisks2-1.91.0-1.fc17.x86_64
selinux-policy-3.10.0-87.fc17.noarch
selinux-policy-targeted-3.10.0-87.fc17.noarch
udev-181-2.fc17.x86_64

Comment 12 John Reiser 2012-02-17 18:24:32 UTC
gnome-desktop3-3.3.5-1.fc17.x86_64

Comment 13 David Zeuthen 2012-02-21 15:42:27 UTC
Everything from the udisks2 side looks fine, e.g. HintAuto is set as expected so it's not a udisks2 problem. Please paste the output of

 gvfs-mount -li

run from a terminal inside the user sessions (not root). Thanks.

Comment 14 John Reiser 2012-02-21 18:10:21 UTC
$ gvfs-mount -li
Drive(0): 320 GB Hard Disk
  Type: GProxyDrive (GProxyVolumeMonitorUDisks2)
  ids:
   unix-device: '/dev/sda'
  themed icons:  [drive-harddisk]  [drive]
  is_media_removable=0
  has_media=1
  is_media_check_automatic=1
  can_poll_for_media=0
  can_eject=0
  can_start=0
  can_stop=0
  start_stop_type=unknown
  sort_key=00coldplug/00fixed/sd____a
  Volume(0): 16 GB Volume
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sda7'
     uuid: 'ddbe04f8-17fe-42ce-b0d0-8879b9980cc3'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450814107
  Volume(1): Win7pro32
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sda3'
     uuid: '10C8C690C8C6738E'
     label: 'Win7pro32'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450814618
  Volume(2): WinXP32sp3
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sda2'
     uuid: '14CC5C28CC5C0700'
     label: 'WinXP32sp3'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450815166
Drive(1): 320 GB Hard Disk
  Type: GProxyDrive (GProxyVolumeMonitorUDisks2)
  ids:
   unix-device: '/dev/sdb'
  themed icons:  [drive-harddisk]  [drive]
  is_media_removable=0
  has_media=1
  is_media_check_automatic=1
  can_poll_for_media=0
  can_eject=0
  can_start=0
  can_stop=0
  start_stop_type=unknown
  sort_key=00coldplug/00fixed/sd____b
  Volume(0): /Cent50-32
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdb9'
     uuid: '7ef173f3-abc3-47a8-a24d-9a68e2ac95b4'
     label: '/Cent50-32'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450795350
  Volume(1): /f7-64
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdb8'
     uuid: '7a071b19-68a8-4e7a-8071-de1df26108ff'
     label: '/f7-64'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450795869
  Volume(2): /fc6-64
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdb7'
     uuid: 'fa2eef84-af58-4cb8-99cb-9f299cb2c30b'
     label: '/fc6-64'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450801727
  Volume(3): /fc6-32
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdb6'
     uuid: '9f79aca2-3a46-4e09-8118-44c12e3bd448'
     label: '/fc6-32'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450802307
  Volume(4): /SuSE10.2-32
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdb3'
     uuid: '1d25da97-9242-4a58-8962-522d9e692f55'
     label: '/SuSE10.2-32'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450802798
  Volume(5): /ub32-7.04
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdb2'
     uuid: '5fa63e70-af20-41b7-ae51-3f183c6a7133'
     label: '/ub32-7.04'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450803319
  Volume(6): /data
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdb15'
     uuid: '5b3d8645-71f5-426f-b91d-3267acae817b'
     label: '/data'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450803812
  Volume(7): /f8-32
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdb14'
     uuid: '8c3841e1-4d35-4513-8e1a-edde732881cf'
     label: '/f8-32'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450804317
  Volume(8): /f8-64
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdb13'
     uuid: 'ebe29e06-24ad-4980-bd00-8938304be1a8'
     label: '/f8-64'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450804807
  Volume(9): /debian-64
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdb12'
     uuid: '6d7fed2c-f2a6-4b47-8086-32da4b986d68'
     label: '/debian-64'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450809648
  Volume(10): /f7-32
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdb11'
     uuid: 'c3ea754d-45c6-40b0-9d5c-b93c169ce718'
     label: '/f7-32'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450810237
  Volume(11): /Cent50-64
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdb10'
     uuid: '459c1028-dc18-4709-9605-7403d215b19f'
     label: '/Cent50-64'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450810734
  Volume(12): /boot1
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdb1'
     uuid: '43a73741-883d-49fb-9da6-34e98b8eeb8b'
     label: '/boot1'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450813295
Drive(2): 320 GB Hard Disk
  Type: GProxyDrive (GProxyVolumeMonitorUDisks2)
  ids:
   unix-device: '/dev/sdd'
  themed icons:  [drive-harddisk]  [drive]
  is_media_removable=0
  has_media=1
  is_media_check_automatic=1
  can_poll_for_media=0
  can_eject=0
  can_start=0
  can_stop=0
  start_stop_type=unknown
  sort_key=00coldplug/00fixed/sd____d
  Volume(0): ub804-32
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdd9'
     uuid: '9c35e242-2082-40be-ac41-2dab125db5f3'
     label: 'ub804-32'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450787762
  Volume(1): f10test-32
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdd8'
     uuid: 'a61d0111-b171-4787-b65e-27493e12554b'
     label: 'f10test-32'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450792493
  Volume(2): f10alpha-32
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdd7'
     uuid: 'ab9b3de0-d89e-4317-a01f-fd83906bde14'
     label: 'f10alpha-32'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450793147
  Volume(3): /f9Beta-64
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdd6'
     uuid: 'a19d0f75-6fef-4d3c-901a-ea749284eadd'
     label: '/f9Beta-64'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450793659
  Volume(4): /f9Beta-32
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdd5'
     uuid: '3176f6be-9952-4102-955e-dd58c0b12f96'
     label: '/f9Beta-32'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450794267
  Volume(5): f10a-64
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdd10'
     uuid: '0fd21ea3-ae58-4b8d-802a-4b95a8aff67f'
     label: 'f10a-64'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450794786
Drive(3): 500 GB Hard Disk
  Type: GProxyDrive (GProxyVolumeMonitorUDisks2)
  ids:
   unix-device: '/dev/sdi'
  themed icons:  [drive-harddisk]  [drive]
  is_media_removable=0
  has_media=1
  is_media_check_automatic=1
  can_poll_for_media=0
  can_eject=0
  can_start=0
  can_stop=0
  start_stop_type=unknown
  sort_key=00coldplug/00fixed/sd____i
  Volume(0): f15h64
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdi9'
     uuid: '192c5849-fe6a-456e-bf29-49e40c0509fd'
     label: 'f15h64'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450776164
  Volume(1): ub1104a64
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdi8'
     uuid: '7847ddc6-80bb-43a8-8ea7-8d94fdf26e3a'
     label: 'ub1104a64'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450776848
  Volume(2): f15g64
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdi7'
     uuid: '5200bb5a-1a8e-4b06-8377-29d98dca26b8'
     label: 'f15g64'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450777357
  Volume(3): ub10.10-32
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdi6'
     uuid: '693a82bc-716f-4640-93a8-f1261142cb71'
     label: 'ub10.10-32'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450777833
  Volume(4): SuSE11.2-64
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdi5'
     uuid: '5454f63d-6821-4845-8db8-765c4f7e3fb7'
     label: 'SuSE11.2-64'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450778323
  Volume(5): f12g32
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdi4'
     uuid: '09d46188-e465-49b8-8450-40e4bba5c9bc'
     label: 'f12g32'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450778797
  Volume(6): f12g64
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdi3'
     uuid: '298c8590-1770-4887-bcd5-27b94b1721af'
     label: 'f12g64'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450779285
  Volume(7): ub910-32
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdi2'
     uuid: '95309f11-2ea1-4748-a509-202a774cf412'
     label: 'ub910-32'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450779756
  Volume(8): 17 GB Volume
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdi12'
     uuid: 'a1e507d2-7d7d-4f7a-9bb2-fe2c16ef5ebb'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450784592
  Volume(9): f16t64
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdi11'
     uuid: '3adbe878-3e43-45c2-8915-6b9d6844aeb1'
     label: 'f16t64'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450785210
  Volume(10): ub1004-32
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdi10'
     uuid: 'ac1f5a9d-bb62-451a-b713-2c7745a4f42f'
     label: 'ub1004-32'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450785715
  Volume(11): bootWDC500
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdi1'
     uuid: 'e64cce59-99be-4ffe-b9ff-952699604dd8'
     label: 'bootWDC500'
    themed icons:  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450786230
Drive(4): CD/DVD Drive
  Type: GProxyDrive (GProxyVolumeMonitorUDisks2)
  ids:
   unix-device: '/dev/sr0'
  themed icons:  [drive-optical]  [drive]
  is_media_removable=1
  has_media=0
  is_media_check_automatic=1
  can_poll_for_media=0
  can_eject=1
  can_start=0
  can_stop=0
  start_stop_type=unknown
  sort_key=00coldplug/11removable/sr0
Drive(5): Drive
  Type: GProxyDrive (GProxyVolumeMonitorUDisks2)
  ids:
   unix-device: '/dev/sde'
  themed icons:  [drive-removable-media-usb]  [drive-removable-media]  [drive-removable]  [drive]
  is_media_removable=1
  has_media=0
  is_media_check_automatic=1
  can_poll_for_media=0
  can_eject=1
  can_start=0
  can_stop=0
  start_stop_type=unknown
  sort_key=00coldplug/12removable/sd____e
Drive(6): 8.0 GB Drive
  Type: GProxyDrive (GProxyVolumeMonitorUDisks2)
  ids:
   unix-device: '/dev/sdf'
  themed icons:  [drive-removable-media-usb]  [drive-removable-media]  [drive-removable]  [drive]
  is_media_removable=1
  has_media=1
  is_media_check_automatic=1
  can_poll_for_media=0
  can_eject=1
  can_start=0
  can_stop=0
  start_stop_type=unknown
  sort_key=00coldplug/12removable/sd____f
  Volume(0): 7.6 GB Volume
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdf2'
     uuid: 'de93e7d8-3277-42e4-ad34-7e3920d88ded'
    themed icons:  [drive-removable-media-usb]  [drive-removable-media]  [drive-removable]  [drive]
    can_mount=1
    can_eject=1
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450786720
  Volume(1): 131 MB Volume
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     unix-device: '/dev/sdf1'
     uuid: 'c38bd637-b2aa-446f-9684-702a65cb3922'
    themed icons:  [drive-removable-media-usb]  [drive-removable-media]  [drive-removable]  [drive]
    can_mount=1
    can_eject=1
    should_automount=0
    sort_key=gvfs.time_detected_usec.1329847450787253
Drive(7): Drive
  Type: GProxyDrive (GProxyVolumeMonitorUDisks2)
  ids:
   unix-device: '/dev/sdg'
  themed icons:  [drive-removable-media-usb]  [drive-removable-media]  [drive-removable]  [drive]
  is_media_removable=1
  has_media=0
  is_media_check_automatic=1
  can_poll_for_media=0
  can_eject=1
  can_start=0
  can_stop=0
  start_stop_type=unknown
  sort_key=00coldplug/12removable/sd____g
Drive(8): Drive
  Type: GProxyDrive (GProxyVolumeMonitorUDisks2)
  ids:
   unix-device: '/dev/sdh'
  themed icons:  [drive-removable-media-usb]  [drive-removable-media]  [drive-removable]  [drive]
  is_media_removable=1
  has_media=0
  is_media_check_automatic=1
  can_poll_for_media=0
  can_eject=1
  can_start=0
  can_stop=0
  start_stop_type=unknown
  sort_key=00coldplug/12removable/sd____h
Mount(0): gvfs -> file:///run/user/jreiser/gvfs
  Type: GProxyMount (GProxyVolumeMonitorUDisks2)
  default_location=file:///run/user/jreiser/gvfs
  themed icons:  [drive-removable-media]  [drive-removable]  [drive]
  can_unmount=1
  can_eject=0
  is_shadowed=0
  sort_key=gvfs.time_detected_usec.1329847450829243
$

Comment 15 David Zeuthen 2012-02-21 19:35:08 UTC
The gvfs-mount(1) output in comment 14 looks fine to me as well.

Looking at the shell source code at

 http://git.gnome.org/browse/gnome-shell/tree/js/ui/automountManager.js?id=3.3.5

it appears that the shell indeed tries to automount all volumes at session start-up, at least the ones where should_automount is TRUE.

However, with the udisks2 volume monitor, we only set should_automount to TRUE if the device was hotplugged, see

 http://git.gnome.org/browse/gvfs/tree/monitor/udisks2/gvfsudisks2volume.c?id=1.11.3#n314

I actually don't think we want to change this... it seems a bit wrong to try and automount everything at login time... if you want that to happen, the proper way is to add an /etc/fstab entry so the device is mounted when the OS boots.

In fact, I think we should rip out the _startupMountAll() code from the shell.

... anyway, reassigning to GVfs for now.

Comment 16 Fedora Update System 2012-04-27 13:37:03 UTC
gvfs-1.12.2-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/gvfs-1.12.2-1.fc17

Comment 17 Fedora Update System 2012-04-27 23:34:57 UTC
Package gvfs-1.12.2-1.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing gvfs-1.12.2-1.fc17'
as soon as you are able to, then reboot.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-6873/gvfs-1.12.2-1.fc17
then log in and leave karma (feedback).

Comment 18 Fedora Update System 2012-05-02 04:56:40 UTC
gvfs-1.12.2-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.