Package: udev Version: 175-3.1 Severity: normal Dear Debian folks,
connecting the Nokia N9 mobile phone to my system over the USB port, it
is not mounted by my file manager. Since it depends on udisks I tried
$ sudo udisks --mount /dev/sdb
Mount failed: Error mounting: mount: no medium found on /dev/sdb
but this failed as seen above. The device is strangely mapped to group
floppy.
$ ls -l /dev/sdb
brw-rw---T 1 root floppy 8, 16 Mai 1 20:14 /dev/sdb
The cause seems to be in `/lib/udev/rules.d/91-permissions.rules` which
has the following line
SUBSYSTEM=="block", ATTRS{removable}=="1", GROUP="floppy"
marking my device that it has a removable media.
Since it is just a phone without a card slot it is always reported that
there is no media inserted and therefore it cannot be mounted.
Can a separate rule for the N9 be added?
I am attaching some log information.
$ dmesg
[…]
[ 2933.838214] usb 1-1: USB disconnect, device number 3
[ 2938.276307] usb 1-1: new high-speed USB device number 4 using
ehci_hcd
[ 2938.410890] usb 1-1: New USB device found, idVendor=0421,
idProduct=0518
[ 2938.410901] usb 1-1: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[ 2938.410908] usb 1-1: Product: Nokia N9
[ 2938.410914] usb 1-1: Manufacturer: Nokia
[ 2938.410918] usb 1-1: SerialNumber: xxxxxxxxxxxxxxxx
[ 2938.413342] scsi4 : usb-storage 1-1:1.0
[ 2939.414342] scsi 4:0:0:0: Direct-Access Nokia Nokia N9
0316 PQ: 0 ANSI: 2
[ 2939.424920] sd 4:0:0:0: [sdb] Attached SCSI removable disk
$ /sbin/udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent
KERNEL[10524.007129] add /devices/pci0000:00/0000:00:12.2/usb1/1-1
(usb)
KERNEL[10524.009484] add
/devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0 (usb)
UDEV [10524.029333] add /devices/pci0000:00/0000:00:12.2/usb1/1-1
(usb)
KERNEL[10524.133644] add /module/uas (module)
KERNEL[10524.134565] add /bus/usb/drivers/uas (drivers)
UDEV [10524.134626] add /module/uas (module)
UDEV [10524.135836] add /bus/usb/drivers/uas (drivers)
KERNEL[10524.148776] add /module/usb_storage (module)
KERNEL[10524.150421] add
/devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host2 (scsi)
KERNEL[10524.150475] add
/devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host2/scsi_host/host2
(scsi_host)
KERNEL[10524.150504] add /bus/usb/drivers/usb-storage (drivers)
UDEV [10524.151301] add /bus/usb/drivers/usb-storage (drivers)
UDEV [10524.152950] add /module/usb_storage (module)
UDEV [10524.157898] add
/devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0 (usb)
UDEV [10524.158910] add
/devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host2 (scsi)
UDEV [10524.160247] add
/devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host2/scsi_host/host2
(scsi_host)
KERNEL[10525.152764] add
/devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host2/target2:0:0 (scsi)
KERNEL[10525.152837] add
/devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host2/target2:0:0/2:0:0:0
(scsi)
KERNEL[10525.152870] add
/devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host2/target2:0:0/2:0:0:0/scsi_disk/2:0:0:0
(scsi_disk)
KERNEL[10525.153030] add
/devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host2/target2:0:0/2:0:0:0/scsi_device/2:0:0:0
(scsi_device)
KERNEL[10525.153237] add
/devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host2/target2:0:0/2:0:0:0/bsg/2:0:0:0
(bsg)
UDEV [10525.154424] add
/devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host2/target2:0:0 (scsi)
KERNEL[10525.156139] add /devices/virtual/bdi/8:16 (bdi)
KERNEL[10525.156505] add
/devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host2/target2:0:0/2:0:0:0/block/sdb
(block)
UDEV [10525.156946] add /devices/virtual/bdi/8:16 (bdi)
KERNEL[10525.158361] change
/devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host2/target2:0:0/2:0:0:0/block/sdb
(block)
UDEV [10525.163747] add
/devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host2/target2:0:0/2:0:0:0
(scsi)
UDEV [10525.163811] add
/devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host2/target2:0:0/2:0:0:0/scsi_device/2:0:0:0
(scsi_device)
UDEV [10525.163852] add
/devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host2/target2:0:0/2:0:0:0/bsg/2:0:0:0
(bsg)
UDEV [10525.165418] add
/devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host2/target2:0:0/2:0:0:0/scsi_disk/2:0:0:0
(scsi_disk)
KERNEL[10525.175996] change
/devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host2/target2:0:0/2:0:0:0/block/sdb
(block)
UDEV [10525.233436] add
/devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host2/target2:0:0/2:0:0:0/block/sdb
(block)
UDEV [10525.258290] change
/devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host2/target2:0:0/2:0:0:0/block/sdb
(block)
UDEV [10525.278677] change
/devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host2/target2:0:0/2:0:0:0/block/sdb
(block)
$ udisks --dump
[…]
========================================================================
Showing information for /org/freedesktop/UDisks/devices/sdb
native-path:
/sys/devices/pci0000:00/0000:00:13.2/usb2/2-5/2-5:1.0/host5/target5:0:0/5:0:0:0/block/sdb
device: 8:16
device-file: /dev/sdb
presentation: /dev/sdb
by-id:
/dev/disk/by-id/usb-Nokia_Nokia_N9_xxxxxxxxxxxxxxx-0:0
by-path:
/dev/disk/by-path/pci-0000:00:13.2-usb-0:5:1.0-scsi-0:0:0:0
detected at: Di 01 Mai 2012 12:46:04 CEST
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:
automount hint:
size: 0
block size: 0
job underway: no
usage:
type:
version:
uuid:
label:
drive:
vendor: Nokia
model: Nokia N9
revision: 0316
serial: 357923040473136
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
========================================================================
Thanks,
Paul
-- System Information:
Debian Release: wheezy/sid
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages udev depends on:
ii debconf [debconf-2.0] 1.5.42
ii libc6 2.13-30
ii libselinux1 2.1.9-2
ii libudev0 175-3.1
ii lsb-base 4.1+Debian0
ii util-linux 2.20.1-4
Versions of packages udev recommends:
ii pciutils 1:3.1.9-2
ii usbutils 1:005-2
udev suggests no packages.
-- debconf information:
udev/new_kernel_needed: false
udev/title/upgrade:
udev/reboot_needed:
udev/sysfs_deprecated_incompatibility:
signature.asc
Description: This is a digitally signed message part

