My USB key is recognized as a Digital Audio Player
Problem
Some USB devices on Ubuntu are not detected as "classic", USB keys but as music players such iPod. This error causes the launch of a music player (unless you uncheck the "Play music files when their connection" in System / Preferences / peripherals and removable media), and assigns to the key an icon that is not a USB key but a player.
Solution
- Insert your USB
- Open a terminal and make an:
lsusb
You will have an answer like this:
Bus 005 Device 006: ID 090c:1000 Feiya Technology Corp. Memory Bar
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 006: ID 046d:c03e Logitech, Inc. Premium Optical Wheel Mouse
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
The FeII Technology Corp.. Memory Bar "is the line that interests us. Remove the USB key.
To correct this problem, we will intervene on a file. (better save it ,just in case)
sudo cp /usr/share/hal/fdi/information/10freedesktop/10-usb-music-players.fdi /usr/share/hal/fdi/information/10freedesktop/10-usb-music-players.fdi.bak
(single line)
Then edit the file:
sudo gedit /usr/share/hal/fdi/information/10freedesktop/10-usb-music-players.fdi
And delete the content (here in bold):
<append key="portable_audio_player.input_formats" type="strlist">audio/x-ms-wma</append>
</match>
</match>
<!-- Feiya Technology Corp Memory Bar -->
<match key="@storage.originating_device:usb.vendor_id" int="0x090c">
<match key="@storage.originating_device:usb.product_id" int="0x1000">
<merge key="portable_audio_player.type" type="string">generic</merge>
<merge key="portable_audio_player.access_method" type="string">storage</merge>
<append key="portable_audio_player.input_formats" type="strlist">audio/mpeg</append>
</match>
</match>
<!-- Peak Digital Audio Player -->
<match key="@storage.originating_device:usb.vendor_id" int="0xd7d"> Save, close, connect your USB flash drive: it is now recognized as a true USB key.