mtp-detect fails with sansa c150

Bug #124050 reported by Hower
2
Affects Status Importance Assigned to Milestone
libmtp (Ubuntu)
Invalid
Undecided
Unassigned
udev (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

when Sansa c150 is connected udev detects it as usb-storage and overtakes device so mtp-detect outputs:

Found non-autodetected device "SanDisk Sansa c150" on USB bus...
usb_claim_interface(): Device or resource busy
Connection error.
No devices.

lsusb output:
Bus 005 Device 002: ID 0781:7410 SanDisk Corp.
Bus 005 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 002 Device 003: ID 15ca:00c3
Bus 002 Device 001: ID 0000:0000

workaround from linuxquestions (post by codedr]:
I was able to successfully connect to my Sansa c150.

 The problem is udev configures the usb-storage and prevents libmtp from accessing the device.

 As root,
 (1) unload usb-storage
 rmmod usb-storage
 (2) temporarily move usb-storage.ko out of the way
 cd /lib/modules/2.6.X/kernel/drivers/usb/storage
 mv usb-storage.ko usb-storage.tmp
 (3) plug-in your Sansa c150

 You will now be able to use mtp commands to access the
 mtp-only files

Revision history for this message
Sarah Kowalik (hobbsee-deactivatedaccount) wrote :

A new version is just entering the gutsy repositories. libmtp 0.2.1
This was with feisty?

Changed in libmtp:
status: New → Incomplete
Revision history for this message
Sarah Kowalik (hobbsee-deactivatedaccount) wrote :

A new version is just entering the gutsy repositories. libmtp 0.2.1

Does this still occur there?

Changed in udev:
status: New → Incomplete
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

udev just does what the kernel and device tell it to do

Changed in udev:
status: Incomplete → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for libmtp (Ubuntu) because there has been no activity for 60 days.]

Revision history for this message
Stefan Bethge (kjyv) wrote :

This still happens, however, it's enough to modprobe -r usb_storage and then mtp-detect should work.

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.