"safely remove"-ing a drive on an internal usb connection leaves it inaccessible

Bug #685099 reported by steubens
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
udisks (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: udisks

if i "safely remove drive" the internal card reader (happens a lot by accident when trying to eject!) it remains inaccessible until reset

i drilled down to ID_DRIVE_DETACHABLE and can add it myself, i don't know of a general solution or if there is one; but it would be nice to have! i'm guessing that the internal hub that isn't connected to user visible ports would be the widest net you could cast in quirking this (ie. all things on a given device on hub x = not detachable)

here's all the info i could think of gathering about the device in question:
root@krang:~# udevadm info --name=/dev/sdb --query=all
P: /devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3:1.0/host6/target6:0:0/6:0:0:0/block/sdb
N: sdb
S: block/8:16
S: disk/by-id/usb-Generic-_Multi-Card_20071114173400000-0:0
S: disk/by-path/pci-0000:00:1a.7-usb-0:3:1.0-scsi-0:0:0:0
E: UDEV_LOG=3
E: DEVPATH=/devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3:1.0/host6/target6:0:0/6:0:0:0/block/sdb
E: SUBSYSTEM=block
E: DEVNAME=sdb
E: ID_VENDOR=Generic-
E: ID_VENDOR_ENC=Generic-
E: ID_VENDOR_ID=0bda
E: ID_MODEL=Multi-Card
E: ID_MODEL_ENC=Multi-Card\x20\x20\x20\x20\x20\x20
E: ID_MODEL_ID=0158
E: ID_REVISION=1.00
E: ID_SERIAL=Generic-_Multi-Card_20071114173400000-0:0
E: ID_SERIAL_SHORT=20071114173400000
E: ID_TYPE=disk
E: ID_INSTANCE=0:0
E: ID_BUS=usb
E: ID_USB_INTERFACES=:080650:
E: ID_USB_INTERFACE_NUM=00
E: ID_USB_DRIVER=usb-storage
E: ID_PATH=pci-0000:00:1a.7-usb-0:3:1.0-scsi-0:0:0:0
E: UDISKS_PRESENTATION_NOPOLICY=0
E: MAJOR=8
E: MINOR=16
E: DEVTYPE=disk
E: DEVLINKS=/dev/block/8:16 /dev/disk/by-id/usb-Generic-_Multi-Card_20071114173400000-0:0 /dev/disk/by-path/pci-0000:00:1a.7-usb-0:3:1.0-scsi-0:0:0:0

root@krang:~# udisks --show-info /dev/sdb
Showing information for /org/freedesktop/UDisks/devices/sdb
  native-path: /sys/devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3:1.0/host6/target6:0:0/6:0:0:0/block/sdb
  device: 8:16
  device-file: /dev/sdb
    presentation: /dev/sdb
    by-id: /dev/disk/by-id/usb-Generic-_Multi-Card_20071114173400000-0:0
    by-path: /dev/disk/by-path/pci-0000:00:1a.7-usb-0:3:1.0-scsi-0:0:0:0
  detected at: Thu 02 Dec 2010 12:15:42 AM PST
  system internal: 0
  removable: 1
  has media: 0
    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:
  size: 0
  block size: 0
  job underway: no
  usage:
  type:
  version:
  uuid:
  label:
  drive:
    vendor: Generic-
    model: Multi-Card
    revision: 1.00
    serial: 20071114173400000
    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

it thinks its rotational media too? eh gonna prod that off

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: udisks 1.0.1+git20100614-3
ProcVersionSignature: Ubuntu 2.6.37-7.18-generic 2.6.37-rc3
Uname: Linux 2.6.37-7-generic x86_64
Architecture: amd64
CustomUdevRuleFiles: 51-android.rules
Date: Fri Dec 3 23:26:06 2010
MachineType: Hewlett-Packard Compaq Presario CQ60 Notebook PC
ProcCmdLine: BOOT_IMAGE=/vmlinuz-2.6.37-7-generic root=UUID=457249de-6049-42fd-a0c6-9d5019baf7bd ro quiet splash
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: udisks
dmi.bios.date: 03/08/2010
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: F.63
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: 3612
dmi.board.vendor: Hewlett-Packard
dmi.board.version: 09.67
dmi.chassis.asset.tag: Chassis Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: Hewlett-Packard
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnHewlett-Packard:bvrF.63:bd03/08/2010:svnHewlett-Packard:pnCompaqPresarioCQ60NotebookPC:pvrPCID:rvnHewlett-Packard:rn3612:rvr09.67:cvnHewlett-Packard:ct10:cvrChassisVersion:
dmi.product.name: Compaq Presario CQ60 Notebook PC
dmi.product.version: PCID
dmi.sys.vendor: Hewlett-Packard

Revision history for this message
steubens (steubens) wrote :
Revision history for this message
steubens (steubens) wrote :

leaving a note for myself that webcams are usually attached to usb internally as well

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.