Bug 495876
Summary: | USB device not handled "correctly"; doesn't appear as device and isn't auto-mounted | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Mads Kiilerich <mads> |
Component: | DeviceKit-disks | Assignee: | David Zeuthen <davidz> |
Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | rawhide | CC: | davidz, dqarras, mclasen |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-04-17 14:20:51 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
Mads Kiilerich
2009-04-15 11:13:08 UTC
Please attach the output of - devkit-disks --monitor-detail - gvfs-mount -oi when plugging the device into hub; and - devkit-disks --dump - gvfs-mount -li when the device is plugged in. Thanks. Also, you need to capture this information in the local session (running as your own user, not root). Created attachment 339684 [details]
The requested output from devkit-disks and devkit-disks
- and when I mount it as root with # mount -o uid=500 /dev/sdd /mnt/d then I get [mk@localhost ~]$ devkit-disks --monitor-detail Monitoring activity from the disks daemon. Press Ctrl+C to cancel. changed: /org/freedesktop/DeviceKit/Disks/devices/sdd Showing information for /org/freedesktop/DeviceKit/Disks/devices/sdd native-path: /sys/devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3.2/1-3.2:1.0/host19/target19:0:0/19:0:0:0/block/sdd device: 8:48 device-file: /dev/sdd by-id: /dev/disk/by-id/usb-GD_Drive_000000000000-0:0 by-id: /dev/disk/by-uuid/47C0-7C71 by-path: /dev/disk/by-path/pci-0000:00:1a.7-usb-0:3.2:1.0-scsi-0:0:0:0 system internal: 0 removable: 1 has media: 1 detects change: 1 detection by polling: 1 detection inhibitable: 1 detection inhibited: 0 is read only: 0 is mounted: 1 mount paths: /mnt/d mounted by uid: 0 presentation name: presentation icon: size: 8192 block size: 512 job underway: no usage: filesystem type: vfat version: FAT12 uuid: 47C0-7C71 label: SmartDrive partition table: scheme: mbr count: 0 drive: vendor: GD model: Drive revision: 0000 serial: 000000000000 ejectable: 0 require eject: 0 media: compat: interface: usb if speed: 12000000 bits/s ATA SMART: not available Hmm, what kind of device is /dev/sdd? It looks like really weird. It's not partitioned is it? E.g. there's no /dev/sdd1 or anything? Sorry to be asking for more information but can you also include - udevadm monitor --env when plugging in the device and then - udevadm info -q all -n /dev/sdd when it's plugged in. You need to be root to capture this information. Thanks. /dev/sdd _is_ an interface to a smart card. But it _appears_ as an ordinary usb flash device, so that any user space application on all platforms without any kernel/driver support can communicate with the smart card by writing/reading to files. The /dev/sdd device appears without problems in windows and osx. As shown in the initial report (and comment 4) it can be mounted by root (as vfat/fat12) - and then it works fine. So no, it is not partitioned. To be continued tomorrow when I have access to the device ... Created attachment 339829 [details]
The requested output from udevadm as root
OK, I can see what's wrong here. We erroneously detect /dev/sdd as having a partition table even when it's clear there's a filesystem and no partitions (this is because vfat on the main device looks *a lot* like a MS-DOS partition table and filesystem/partitiontable probing is always somewhat a guessing game). Let me see if I can come up with a fix... Should be fixed in DeviceKit-disks-004-0.10.20090415git.fc11 http://koji.fedoraproject.org/koji/taskinfo?taskID=1302582 Please test (and reopen if the fix doesn't work) and report back so I can request these packages to be tagged for Fedora 11. Thanks! Btw, to properly test this you need these gnome-disk-utility packages installed as well http://koji.fedoraproject.org/koji/buildinfo?buildID=98108 Unfortunately these are not in F-11 because of a (now corrected) release-team error (it was only tagged for the F-11 buildroot, not for the F-11 proper). You will also need the latest gvfs packages (gvfs-1.2.2-3.fc11) You will need to reboot after updating all the necessary packages. Sorry, I still see the same behaviour. rpm -qa DeviceKit\* gnome-disk-utility\* gvs\* |sort DeviceKit-003-1.i586 DeviceKit-disks-004-0.9.20090415git.fc11.i586 DeviceKit-power-008-0.1.20090401git.fc11.i586 gnome-disk-utility-0.3-0.5.20090415git.fc11.i586 gnome-disk-utility-libs-0.3-0.5.20090415git.fc11.i586 gnome-disk-utility-ui-libs-0.3-0.5.20090415git.fc11.i586 gvfs-1.2.2-3.fc11.i586 I will upload new output - and the content of sdd Created attachment 339984 [details]
cat /dev/sdd > sdd
The content of the raw block device
Created attachment 339985 [details]
udevadm monitor --env > udevadm-monitor--env-root.txt
Created attachment 339986 [details]
udevadm info -q all -n /dev/sdd > udevadm-info-q-all-n-dev-sdd.txt
Created attachment 339987 [details]
devkit-disks --monitor-detail > devkit-disks--monitor-detail.txt
Created attachment 339989 [details]
gvfs-mount -oi > gvfs-mount-oi.txt
Created attachment 339990 [details]
devkit-disks --dump > devkit-disks--dump.txt
(In reply to comment #11) > Sorry, I still see the same behaviour. > > rpm -qa DeviceKit\* gnome-disk-utility\* gvs\* |sort > DeviceKit-003-1.i586 > DeviceKit-disks-004-0.9.20090415git.fc11.i586 You are not using the right DeviceKit-disks packages - comment 9 says to try DeviceKit-disks-004-0.10.20090415git.fc11. These packages are not in F-11 yet so you will have to grab them from koji. Argh. You are right. I double-checked but forgot to tripple-check. Yes, with 0.10 it works! Thanks! Great, thanks for testing! I've filed a request here https://fedorahosted.org/rel-eng/ticket/1509 to get this tagged for F-11. I think this broke partitions on several Nokia phones: https://bugzilla.redhat.com/show_bug.cgi?id=496683 |