Bug 73250

Summary: Udisks2 "MediaRemovable" changing from true to false at runtime for a Card Reader
Product: udisks Reporter: Diego <diego.ml>
Component: detectionAssignee: David Zeuthen (not reading bugmail) <zeuthen>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: udisksctl dump when "MediaRemovable: true"
udevadm info --export-db when "MediaRemovable: true"
udisksctl dump when "MediaRemovable: false"
Full dmesg

Description Diego 2014-01-03 08:27:59 UTC
Created attachment 91452 [details]
udisksctl dump when "MediaRemovable: true"

This happens rarely, but it's quite annoying.
At boot my Card reader is always detected with "MediaRemovable: true" but sometimes, after several cycles of mounting and unmounting SD cards, the same Card reader turns to "MediaRemovable: false".

JUST AFTER BOOT:
/org/freedesktop/UDisks2/drives/Multiple_Card__Reader_058F63666433:
  org.freedesktop.UDisks2.Drive:
    CanPowerOff:                true
    Configuration:              {}
    ConnectionBus:              usb
    Ejectable:                  true
    Id:                         Multiple-Card--Reader-058F63666433
    Media:                      
    MediaAvailable:             true
    MediaChangeDetected:        true
    MediaCompatibility:         
    MediaRemovable:             true
    Model:                      Card  Reader
    Optical:                    false
    OpticalBlank:               false
    OpticalNumAudioTracks:      0
    OpticalNumDataTracks:       0
    OpticalNumSessions:         0
    OpticalNumTracks:           0
    Removable:                  true
    Revision:                   1.00
    RotationRate:               -1
    Seat:                       seat0
    Serial:                     058F63666433
    SiblingId:                  /sys/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0
    Size:                       2013265920
    SortKey:                    01hotplug/1388736763277055
    TimeDetected:               1388736763277055
    TimeMediaDetected:          1388736763277055
    Vendor:                     Multiple
    WWN:

RARELY AFTER MOUNTING AND UNMOUNTING SEVERAL TIMES:
/org/freedesktop/UDisks2/drives/Multiple_Card__Reader_058F63666433:
  org.freedesktop.UDisks2.Drive:
    CanPowerOff:                false
    Configuration:              {}
    ConnectionBus:              
    Ejectable:                  false
    Id:                         Multiple-Card--Reader-058F63666433
    Media:                      
    MediaAvailable:             true
    MediaChangeDetected:        true
    MediaCompatibility:         
    MediaRemovable:             false
    Model:                      Card  Reader
    Optical:                    false
    OpticalBlank:               false
    OpticalNumAudioTracks:      0
    OpticalNumDataTracks:       0
    OpticalNumSessions:         0
    OpticalNumTracks:           0
    Removable:                  false
    Revision:                   1.00
    RotationRate:               0
    Seat:                       seat0
    Serial:                     058F63666433
    SiblingId:                  
    Size:                       0
    SortKey:                    01hotplug/1388657744954817
    TimeDetected:               1388657744954817
    TimeMediaDetected:          1388657744954817
    Vendor:                     Multiple
    WWN:


(Don't know if it matters) In both the cases the "removable" property in sysfs is at "1":
$ cat /sys/class/block/sdb/removable 
1

I'm sorry but I don't have a full udisksctl dump with "MediaRemovable: false".
Comment 1 Diego 2014-01-03 08:30:06 UTC
Created attachment 91453 [details]
udevadm info --export-db when "MediaRemovable: true"
Comment 2 Diego 2014-01-08 09:41:52 UTC
Created attachment 91645 [details]
udisksctl dump when "MediaRemovable: false"
Comment 3 Diego 2014-01-08 09:57:39 UTC
Created attachment 91646 [details]
Full dmesg

Full dmesg log during which the Multiple Card Reader got to "MediaRemovable: false"

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.