"safely remove"-ing a drive on an internal usb connection leaves it inaccessible
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/
N: sdb
S: block/8:16
S: disk/by-
S: disk/by-
E: UDEV_LOG=3
E: DEVPATH=
E: SUBSYSTEM=block
E: DEVNAME=sdb
E: ID_VENDOR=Generic-
E: ID_VENDOR_
E: ID_VENDOR_ID=0bda
E: ID_MODEL=Multi-Card
E: ID_MODEL_
E: ID_MODEL_ID=0158
E: ID_REVISION=1.00
E: ID_SERIAL=
E: ID_SERIAL_
E: ID_TYPE=disk
E: ID_INSTANCE=0:0
E: ID_BUS=usb
E: ID_USB_
E: ID_USB_
E: ID_USB_
E: ID_PATH=
E: UDISKS_
E: MAJOR=8
E: MINOR=16
E: DEVTYPE=disk
E: DEVLINKS=
root@krang:~# udisks --show-info /dev/sdb
Showing information for /org/freedeskto
native-path: /sys/devices/
device: 8:16
device-file: /dev/sdb
presentation: /dev/sdb
by-id: /dev/disk/
by-path: /dev/disk/
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
ProcVersionSign
Uname: Linux 2.6.37-7-generic x86_64
Architecture: amd64
CustomUdevRuleF
Date: Fri Dec 3 23:26:06 2010
MachineType: Hewlett-Packard Compaq Presario CQ60 Notebook PC
ProcCmdLine: BOOT_IMAGE=
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.
dmi.board.name: 3612
dmi.board.vendor: Hewlett-Packard
dmi.board.version: 09.67
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: Hewlett-Packard
dmi.chassis.
dmi.modalias: dmi:bvnHewlett-
dmi.product.name: Compaq Presario CQ60 Notebook PC
dmi.product.
dmi.sys.vendor: Hewlett-Packard
leaving a note for myself that webcams are usually attached to usb internally as well