Connecting mass storage device - music player will not mount

OpenSuse 12.3 newbie here - migrant from Debian 6.

I have a USB cable which I can use for my external HD, or for my Cowan IAudio music player (Mass Storage Device). With my Debian box I can connect either device to the cable (same plug/socket) and they will each appear on the desktop and be accessible through a file manager.

With openSuse 12.3 I can connect the HD successfully, but if I connect my music player instead it does not mount. The player reports it is connected by USB, but the PC will not mount it. I cannot see it in a file manager and it does not appear on the desktop. The HD will apear in /var/run/mnt, but the music player does not. The music player is itself actually a Linux device, so this has surprised me.

Is this a problem with OpenSuse? Can anyone advise how I can resolve this?

TIA

On 2013-10-09 10:36, haughtonomous wrote:
> With openSuse 12.3 I can connect the HD successfully, but if I connect
> my music player instead it does not mount. The player reports it is
> connected by USB, but the PC will not mount it. I cannot see it in a
> file manager and it does not appear on the desktop. The HD will apear in
> /var/run/mnt, but the music player does not. The music player is itself
> actually a Linux device, so this has surprised me.

But maybe it is not a “mass storage device”. Maybe it is an MTP thing.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

It’s definitely MSD. I could connect to Debian with no problem, and that doesn’t understand these new fangled MTP things.

Can Amarok find the music player?
Try opening files there, please.

Try editing /etc/usb_modeswitch.conf and changing

DisableSwitching=0

to

DisableSwitching=1

Change it back if it doesn’t work.

It worked! You have my eternal gratitude - now I can listen to Tumbleweed Connection as I cycle to work. What more can I want? My life is complete.:wink:

Well it worked for my music player - but if I connect my USB 2 card reader in a similar way, the card is not mounted (always used to). /var/log/messages shows

192.838186] usb 1-1.2.1.1: reset high-speed USB device number 5 using ehci_hcd

but that’s all that happens. The car reader displays a continuous indicator light, that previously would flash as the card was mounted. I would expect the card to appear as a device on the desktop or somewhere. Am I missing something?

TIA

The setting I suggested is for older devices - of which I have one; the default setting is for newer MTP devices. I suspect there will be a way to detect which device is inserted and apply the appropriate setting but I am not sufficiently competent in this area to advise you.

First step is to create two versions of /etc/usb_modeswitch.conf, one for each setting. Leave the version you are likely to use most often as /etc/usb_modeswitch.conf.

Assuming the other is /etc/usb_modeswitch1.conf, try

su --
usb_modeswitch -c /etc/usb_modeswitch1.conf

after you plug in the other device.

If this does not work - and it may well not, examine /var/log/messages to find out what actually happened.

neil@study:/etc> su
Password:
study:/etc # usb_modeswitch -c usb_modeswitch_cdrdr.conf
No default vendor/product ID given. Aborting.

Not sure what I am missing here - I have looked through the help screen for usb_modeswitch - should I supply a USB port number or something?

But getting back to the original problem - in Debian and (more recently) Mint ‘switching mode’ was automatic. I didn’t have to do anything and plugging in my card reader, camera, music player, external USB HDD all ‘just worked’ . What is different about OpenSuse in this respect?

TIA

When I plug a card into the card reader, this appears in /var/log/messages:
2013-10-19T07:15:06.826310+01:00 study kernel: 375.821312] usb 1-1.2.1.2: reset high-speed USB device number 5 using ehci_hcd

but that is all.

Is this a general Suse problem, or perhaps do I just need to get a different card reader? (My choices seem to be to do that or go back to some Debian-derived distro like Mint or Ubuntu, which would be a pity because I rather like the polished ‘professional’ feel of OpenSuse 12.3)

I also notice that there is no log file, even though I have

Enable logging (results in a extensive report file in /var/log, named

“usb_modeswitch_<interface-name>” and probably others

EnableLogging=1

There are no log files in /var/log named usb_modeswitch*

You need to look in /var/log/messages; this is the output when I plug in my old style device with usb_modeswitch turned off:

2013-10-19T21:52:44.632925+01:00 linux-7k4h kernel:  6494.632037] usb 6-1: new full-speed USB device number 2 using uhci_hcd2013-10-19T21:52:44.808912+01:00 linux-7k4h kernel:  6494.810084] usb 6-1: New USB device found, idVendor=0e8d, idProduct=0002
2013-10-19T21:52:44.808937+01:00 linux-7k4h kernel:  6494.810088] usb 6-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
2013-10-19T21:52:44.808940+01:00 linux-7k4h kernel:  6494.810091] usb 6-1: Product: MT6225 
2013-10-19T21:52:44.987021+01:00 linux-7k4h kernel:  6494.810094] usb 6-1: Manufacturer: MediaTek Inc
2013-10-19T21:52:44.987041+01:00 linux-7k4h kernel:  6494.810096] usb 6-1: SerialNumber: 68204310404626f
2013-10-19T21:52:45.214555+01:00 linux-7k4h mtp-probe: checking bus 6, device 2: "/sys/devices/pci0000:00/0000:00:1d.1/usb6/6-1"
2013-10-19T21:52:45.216257+01:00 linux-7k4h mtp-probe: bus: 6, device: 2 was not an MTP device
2013-10-19T21:52:45.633860+01:00 linux-7k4h logger: usb_modeswitch: switching disabled, no action for 0e8d:0002
2013-10-19T21:52:45.660942+01:00 linux-7k4h kernel:  6495.663469] Initializing USB Mass Storage driver...
2013-10-19T21:52:45.664947+01:00 linux-7k4h kernel:  6495.664742] scsi4 : usb-storage 6-1:1.0
2013-10-19T21:52:45.664967+01:00 linux-7k4h kernel:  6495.664853] usbcore: registered new interface driver usb-storage
2013-10-19T21:52:45.664970+01:00 linux-7k4h kernel:  6495.664855] USB Mass Storage support registered.
...

Obviously, you should get a different output if usb_modeswitch is enabled.