Périphérique de stockage de téléphone portable non reconnu par Ubuntu


5

J'ai un téléphone portable âgé d'environ deux ans.Lorsque j'ai acheté ce téléphone pour la première fois, la carte micro SD interne a été reconnue sans le moindre problème.Tout ce que j'avais à faire était de connecter le téléphone à l'aide d'un câble USB et de sélectionner Stockage de masse dans le téléphone à partir d'une liste proposée (les autres étaient Webcam et Port de communication ).

Aujourd'hui, je constate que, lorsque je connecte le téléphone, il n'est pas du tout reconnu.

Les entrées suivantes se trouvent dans /var/log/syslog

Apr 14 16:07:01 HomeDell kernel: [ 6661.524019] usb 5-2: new full-speed USB device number 11 using uhci_hcd
Apr 14 16:07:01 HomeDell kernel: [ 6661.700045] usb 5-2: New USB device found, idVendor=0e8d, idProduct=0002
Apr 14 16:07:01 HomeDell kernel: [ 6661.700054] usb 5-2: New USB device strings: Mfr=2, Product=3, SerialNumber=4
Apr 14 16:07:01 HomeDell kernel: [ 6661.700058] usb 5-2: Product: MT6235 
Apr 14 16:07:01 HomeDell kernel: [ 6661.700062] usb 5-2: Manufacturer: MediaTek Inc
Apr 14 16:07:01 HomeDell kernel: [ 6661.700065] usb 5-2: SerialNumber: 53223730122274f
Apr 14 16:07:01 HomeDell kernel: [ 6661.706198] usb-storage 5-2:1.0: USB Mass Storage device detected
Apr 14 16:07:01 HomeDell kernel: [ 6661.706374] scsi host6: usb-storage 5-2:1.0
Apr 14 16:07:01 HomeDell mtp-probe: checking bus 5, device 11: "/sys/devices/pci0000:00/0000:00:1d.3/usb5/5-2"
Apr 14 16:07:01 HomeDell mtp-probe: bus: 5, device: 11 was not an MTP device
Apr 14 16:07:02 HomeDell systemd[1]: Starting USB_ModeSwitch_5-2...
Apr 14 16:07:02 HomeDell usb_modeswitch_dispatcher[8361]: Could not read attribute: No such file or directory
Apr 14 16:07:02 HomeDell kernel: [ 6662.709045] scsi 6:0:0:0: Direct-Access     MEDIATEK  FLASH DISK      6235 PQ: 0 ANSI: 0 CCS
Apr 14 16:07:02 HomeDell kernel: [ 6662.712064] scsi 6:0:0:1: Direct-Access     MEDIATEK  FLASH DISK      6235 PQ: 0 ANSI: 0 CCS
Apr 14 16:07:02 HomeDell kernel: [ 6662.712853] sd 6:0:0:0: Attached scsi generic sg1 type 0
Apr 14 16:07:02 HomeDell kernel: [ 6662.713613] sd 6:0:0:1: Attached scsi generic sg2 type 0
Apr 14 16:07:03 HomeDell kernel: [ 6662.721057] sd 6:0:0:0: [sdb] 15628288 512-byte logical blocks: (8.00 GB/7.45 GiB)
Apr 14 16:07:03 HomeDell kernel: [ 6662.726540] sd 6:0:0:1: [sdc] 180000 512-byte logical blocks: (92.1 MB/87.8 MiB)
Apr 14 16:07:03 HomeDell kernel: [ 6662.729063] sd 6:0:0:0: [sdb] Write Protect is off
Apr 14 16:07:03 HomeDell kernel: [ 6662.729076] sd 6:0:0:0: [sdb] Mode Sense: 03 00 00 00
Apr 14 16:07:03 HomeDell kernel: [ 6662.732104] sd 6:0:0:1: [sdc] Write Protect is off
Apr 14 16:07:03 HomeDell kernel: [ 6662.732118] sd 6:0:0:1: [sdc] Mode Sense: 03 00 00 00
Apr 14 16:07:03 HomeDell kernel: [ 6662.735065] sd 6:0:0:0: [sdb] No Caching mode page found
Apr 14 16:07:03 HomeDell kernel: [ 6662.735078] sd 6:0:0:0: [sdb] Assuming drive cache: write through
Apr 14 16:07:03 HomeDell kernel: [ 6662.738053] sd 6:0:0:1: [sdc] No Caching mode page found
Apr 14 16:07:03 HomeDell kernel: [ 6662.738067] sd 6:0:0:1: [sdc] Assuming drive cache: write through
Apr 14 16:07:03 HomeDell kernel: [ 6662.777499]  sdb: sdb1
Apr 14 16:07:03 HomeDell kernel: [ 6662.786102]  sdc:
Apr 14 16:07:03 HomeDell kernel: [ 6662.821056] sd 6:0:0:0: [sdb] Attached SCSI removable disk
Apr 14 16:07:03 HomeDell kernel: [ 6662.824163] sd 6:0:0:1: [sdc] Attached SCSI removable disk
Apr 14 16:07:02 HomeDell usb_modeswitch_dispatcher[8361]: message repeated 2 times: [ Could not read attribute: No such file or directory]
Apr 14 16:07:03 HomeDell usb_modeswitch: switch device 0e8d:0002 on 005/011
Apr 14 16:07:03 HomeDell systemd-udevd[8373]: inotify_add_watch(9, /dev/sdb, 10) failed: No such file or directory
Apr 14 16:07:03 HomeDell systemd-udevd[8376]: inotify_add_watch(9, /dev/sdc, 10) failed: No such file or directory
Apr 14 16:07:03 HomeDell systemd-udevd[8373]: inotify_add_watch(9, /dev/sdb1, 10) failed: No such file or directory
Apr 14 16:07:04 HomeDell usb_modeswitch[8361]: usb_modeswitch: switched to 0e8d:0002 on 5/11
Apr 14 16:07:05 HomeDell usb_modeswitch_dispatcher[8361]: Unable to open bind list file: No such file or directory
Apr 14 16:07:05 HomeDell usb_modeswitch[8361]: usb_modeswitch: add device ID 0e8d:0002 to driver option
Apr 14 16:07:05 HomeDell usb_modeswitch[8361]: usb_modeswitch: please report the device ID to the Linux USB developers!
Apr 14 16:07:06 HomeDell colord-sane: io/hpmud/pp.c 627: unable to read device-id ret=-1
Apr 14 16:07:12 HomeDell systemd[1]: Started USB_ModeSwitch_5-2.

Les points suivants peuvent être pertinents.

  1. C'est un téléphone de marque bon marché.
  2. Il s'agit d'un téléphone non Android.
  3. Le téléphone et la mémoire interne sont reconnus dans Windows 8 sans aucun problème.
  4. La carte SD interne qui était présente avant et présente aujourd'hui est différente.Mon téléphone est resté sans carte SD pendant environ un an ou plus.Aujourd'hui, j'ai inséré une nouvelle carte SD (Transcend MicroSDHC Class 10 8GB) dans mon téléphone.

Lorsque le téléphone est connecté, un menu apparaît, offrant les optionsde choisir entre «Stockage de masse», «Web cam» et «Port COM».Si le deuxième ou le troisième est choisi, ce qui suit apparaît lorsque la commande lsusb est émise.

Bus 005 Device 009: ID 0e8d:0003 MediaTek Inc. MT6227 phone

Cependant, si la première option (Stockage de masse) est choisie, la sortie lsusb est,

Bus 005 Device 019: ID 0e8d:0002 MediaTek Inc.

Mise à jour 1

  • Ubuntu 15.10 (mais j'ai testé dans Ubuntu 16.04 avec le même échec).
  • Noyau: 4.2.8-040208-generic.
  • Téléphone portable: Symphony X120 (comme vous pouvez le voir ci-dessus, lsusb l'appelle un téléphone MediaTek Inc. MT6227.
6

The key to the solution are the usb-modeswitch errors.

usb-modeswitch was introduced as a means to deal with devices who have different modes, most popular example are USB surfsticks which have drive-like properties on first insert to access the Windows drivers. After installation, the driver switches the mode of the device to UMTS or LTE modem mode.

OP's mobile phone needs the same procedure to access the storage.

Usually the usb mode switch is fairly automatic, but in this case, there are devices with conflicting USB IDs around, blocking a fully automatic solution.

Since the issue for the device is already known; just comment out the line ATTRS{idVendor}=="0e8d", ATTRS{idProduct}=="0002", RUN+="usb_modeswitch \'%b/%k\'" in /lib/udev/rules.d/40-usb_modeswitch.rules, and it should work.

You have now clarified to your PC what exactly your device is. Only downside is that if you should encounter one of the USB devices with conflicting IDs, they will be treated as your phone, and throw errors or even fail.