Re: gvfs: fails to mount certain removable devices



On 11/13/2012 12:22 AM, Richard B. Kreckel wrote:
However, for the drives that don't work, it doesn't do that. I haven't found out yet what kind of GDriveIface G_DRIVE_GET_IFACE (drive) fetches in g_drive_get_volumes(). One thing is certain: iface->has_volumes() is 0, there!

After re-installing the system from scratch (total bummer) and some more debugging, I discovered the gvfs-gdu-volume-monitor executable. I still don't grasp how g_drive_get_volumes() gets invoked, though.

I also found out that in gio's g_drive_get_volumes() function, the iface pointers are the same for all USB sticks. Unfortunately, gdb doesn't want to step into (*iface->get_volumes)(drive) for reasons obscure to me, so I have no idea what's being called. Anyway, it ought to be better to find and debug the code that sets up the GDrive objects, I suppose. Where is that?

Even though Debian is using the GDU code, I ran udisks --dump and attach the output to this email, just in case there is something in it which might ring a bell. For me, the diff looks innocent. (udisks-ok.log is with an USB stick that does work, udisks-bad.log with one that does not.)

  -richy.
--
Richard B. Kreckel
<http://www.ginac.de/~kreckel/>

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sdb
  native-path:                 /sys/devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.3/4-1.3:1.0/host24/target24:0:0/24:0:0:0/block/sdb
  device:                      8:16
  device-file:                 /dev/sdb
    presentation:              /dev/sdb
    by-id:                     /dev/disk/by-id/usb-USB_Flash_Disk_AA08020104017923-0:0
    by-path:                   /dev/disk/by-path/pci-0000:00:1d.0-usb-0:1.3:1.0-scsi-0:0:0:0
  detected at:                 Tue 13 Nov 2012 09:48:03 AM CET
  system internal:             0
  removable:                   0
  has media:                   1 (detected at Tue 13 Nov 2012 09:48:03 AM CET)
    detects change:            0
    detection by polling:      0
    detection inhibitable:     0
    detection inhibited:       0
  is read only:                0
  is mounted:                  0
  mount paths:             
  mounted by uid:              0
  presentation hide:           0
  presentation nopolicy:       0
  presentation name:           
  presentation icon:           
  automount hint:              
  size:                        1002438656
  block size:                  512
  job underway:                no
  usage:                       
  type:                        
  version:                     
  uuid:                        
  label:                       
  partition table:
    scheme:                    mbr
    count:                     1
  drive:
    vendor:                    USB
    model:                     Flash Disk
    revision:                  1100
    serial:                    AA08020104017923
    WWN:                       
    detachable:                1
    can spindown:              0
    rotational media:          Yes, unknown rate
    write-cache:               unknown
    ejectable:                 0
    adapter:                   Unknown
    ports:
    similar devices:
    media:                     
      compat:                 
    interface:                 usb
    if speed:                  480000000 bits/s
    ATA SMART:                 not available

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sdb1
  native-path:                 /sys/devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.3/4-1.3:1.0/host24/target24:0:0/24:0:0:0/block/sdb/sdb1
  device:                      8:17
  device-file:                 /dev/sdb1
    presentation:              /dev/sdb1
    by-id:                     /dev/disk/by-id/usb-USB_Flash_Disk_AA08020104017923-0:0-part1
    by-id:                     /dev/disk/by-uuid/58E9-51FC
    by-path:                   /dev/disk/by-path/pci-0000:00:1d.0-usb-0:1.3:1.0-scsi-0:0:0:0-part1
  detected at:                 Tue 13 Nov 2012 09:48:03 AM CET
  system internal:             0
  removable:                   0
  has media:                   1 (detected at Tue 13 Nov 2012 09:48:03 AM CET)
    detects change:            0
    detection by polling:      0
    detection inhibitable:     0
    detection inhibited:       0
  is read only:                0
  is mounted:                  1
  mount paths:             /media/SERENA
  mounted by uid:              1000
  presentation hide:           0
  presentation nopolicy:       0
  presentation name:           
  presentation icon:           
  automount hint:              
  size:                        1002389504
  block size:                  512
  job underway:                no
  usage:                       filesystem
  type:                        vfat
  version:                     FAT16
  uuid:                        58E9-51FC
  label:                       SERENA
  partition:
    part of:                   /org/freedesktop/UDisks/devices/sdb
    scheme:                    mbr
    number:                    1
    type:                      0x06
    flags:                     boot
    offset:                    49152
    alignment offset:          0
    size:                      1002389504
    label:                     
    uuid:                      
========================================================================
Showing information for /org/freedesktop/UDisks/devices/sdb
  native-path:                 /sys/devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.3/4-1.3:1.0/host26/target26:0:0/26:0:0:0/block/sdb
  device:                      8:16
  device-file:                 /dev/sdb
    presentation:              /dev/sdb
    by-id:                     /dev/disk/by-id/usb-SanDisk_Cruzer_3513611D8B101149-0:0
    by-path:                   /dev/disk/by-path/pci-0000:00:1d.0-usb-0:1.3:1.0-scsi-0:0:0:0
  detected at:                 Tue 13 Nov 2012 09:53:12 AM CET
  system internal:             0
  removable:                   1
  has media:                   1 (detected at Tue 13 Nov 2012 09:53:12 AM CET)
    detects change:            1
    detection by polling:      1
    detection inhibitable:     1
    detection inhibited:       0
  is read only:                0
  is mounted:                  0
  mount paths:             
  mounted by uid:              0
  presentation hide:           0
  presentation nopolicy:       0
  presentation name:           
  presentation icon:           
  automount hint:              
  size:                        16026435072
  block size:                  512
  job underway:                no
  usage:                       
  type:                        
  version:                     
  uuid:                        
  label:                       
  partition table:
    scheme:                    mbr
    count:                     1
  drive:
    vendor:                    SanDisk
    model:                     Cruzer
    revision:                  8.02
    serial:                    3513611D8B101149
    WWN:                       
    detachable:                1
    can spindown:              0
    rotational media:          Yes, unknown rate
    write-cache:               unknown
    ejectable:                 0
    adapter:                   Unknown
    ports:
    similar devices:
    media:                     
      compat:                 
    interface:                 usb
    if speed:                  480000000 bits/s
    ATA SMART:                 not available

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sdb1
  native-path:                 /sys/devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.3/4-1.3:1.0/host26/target26:0:0/26:0:0:0/block/sdb/sdb1
  device:                      8:17
  device-file:                 /dev/sdb1
    presentation:              /dev/sdb1
    by-id:                     /dev/disk/by-id/usb-SanDisk_Cruzer_3513611D8B101149-0:0-part1
    by-id:                     /dev/disk/by-uuid/0631-AA7B
    by-path:                   /dev/disk/by-path/pci-0000:00:1d.0-usb-0:1.3:1.0-scsi-0:0:0:0-part1
  detected at:                 Tue 13 Nov 2012 09:53:26 AM CET
  system internal:             0
  removable:                   0
  has media:                   1 (detected at Tue 13 Nov 2012 09:53:26 AM CET)
    detects change:            0
    detection by polling:      0
    detection inhibitable:     0
    detection inhibited:       0
  is read only:                0
  is mounted:                  1
  mount paths:             /mnt
  mounted by uid:              0
  presentation hide:           0
  presentation nopolicy:       0
  presentation name:           
  presentation icon:           
  automount hint:              
  size:                        16025370624
  block size:                  512
  job underway:                no
  usage:                       filesystem
  type:                        vfat
  version:                     FAT32
  uuid:                        0631-AA7B
  label:                       RBK
  partition:
    part of:                   /org/freedesktop/UDisks/devices/sdb
    scheme:                    mbr
    number:                    1
    type:                      0x0c
    flags:                     boot
    offset:                    16384
    alignment offset:          0
    size:                      16025370624
    label:                     
    uuid:                      


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]