Linux with Android MTP
Shlomo Solomon
shlomo.solomon at gmail.com
Mon Oct 7 19:14:05 IDT 2013
I have the same problem on Mageia3 with a new Galaxy phone. I've read
that MTP is not reliably supported.
There is a partial solutions if your phone is rooted (although I
haven't tried it yet). Look at USB Mass Storage Enabler:
https://play.google.com/store/apps/details?id=com.mohammadag.samsungusbmassstorageenabler&hl=en
Aside from needing a rooted phone, this app only solves the problem of
accessing the external SD card - not internal memory. But that may be
enough. YMMV.
I'll probably also go for a wireless solution as Amichai suggested. I
mainly connected my Galaxy S1 phone over USB to do a complete backup
using rsync. I don't know if the wireless solutions will do for that. I
know there are apps that put an ftp server on the phone, so I guess
I'll just have to re-write my backup script to do rsync over ftp or
something.
On Sun, 6 Oct 2013 18:04:22 +0200
Amichai Rotman <amichai at iglu.org.il> wrote:
> May be a stupid question - have you checked if all these are also
> installed:
>
> mtpfs
> mtp-tools
>
> I am running Ubuntu 12.04.3 and own a Samsung Galaxy III (GT-I9300).
> I gave up on trying to make it work. it is recognized, but keep
> stating it is unable to mount the device.
>
> I use File Expert [1] to move files over WiFi. There is also Air
> Droid and, if you really must - Kies Air...
>
> I discovered there is no much use for connecting the phone via USB. It
> doesn't even work as it should on Windows...
>
> Is there a specific reason you need to connect via USB?
>
> [1] https://play.google.com/store/apps/details?id=xcxin.filexpert
>
> Good Luck!
>
> Amichai.
>
>
> 2013/10/6 ik <idokan at gmail.com>
>
> > The dmesg errors:
> > ....
> > [90892.247976] usb 4-1.2: new high-speed USB device number 61 using
> > ehci-pci
> > [90892.336150] usbip-host 4-1.2:1.0: 4-1.2 is not in match_busid
> > table... skip!
> > [90892.336484] usbip-host 4-1.2:1.1: 4-1.2 is not in match_busid
> > table... skip!
> > [90892.336511] cdc_acm 4-1.2:1.1: This device cannot do calls on
> > its own. It is not a modem.
> > [90892.336589] cdc_acm 4-1.2:1.1: ttyACM3: USB ACM device
> > [90892.337460] usbip-host 4-1.2:1.3: 4-1.2 is not in match_busid
> > table... skip!
> > [90892.410843] usb 4-1.2: usbfs: process 30325 (go-mtpfs) did not
> > claim interface 0 before use
> > [90892.438597] usb 4-1.2: USB disconnect, device number 61
> > [90892.628063] usb 4-1.2: new high-speed USB device number 62 using
> > ehci-pci
> > [90892.715178] usbip-host 4-1.2:1.0: 4-1.2 is not in match_busid
> > table... skip!
> > [90892.715538] usbip-host 4-1.2:1.1: 4-1.2 is not in match_busid
> > table... skip!
> > [90892.715552] cdc_acm 4-1.2:1.1: This device cannot do calls on
> > its own. It is not a modem.
> > [90892.715619] cdc_acm 4-1.2:1.1: ttyACM3: USB ACM device
> > [90892.716359] usbip-host 4-1.2:1.3: 4-1.2 is not in match_busid
> > table... skip!
> > [90892.781898] usb 4-1.2: USB disconnect, device number 62
> > ...
> >
> > Eliyaho: On a Windows machine, with usb2 it does work.
> >
> >
> >
> > On Sun, Oct 6, 2013 at 4:50 PM, ik <idokan at gmail.com> wrote:
> >
> >> Hello,
> >>
> >> I'm using Arch Linux, and have Samsung Galaxy S4.
> >> It uses MTP in order to allow me to access files.
> >>
> >> I'ved read several wiki's (Including Arch wiki) and forums about
> >> it, and came out for the following settings
> >> (/etc/udev/rules.d/51-android.rules), after install go-mtpfs:
> >>
> >> # Galaxy S4 GT-I9500
> >> ATTR{idVendor}=="04e8", ATTR{idProduct}=="685d",
> >> SYMLINK+="android_adb", MODE="0666"
> >> ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860",
> >> SYMLINK+="android_adb", MODE="0666"
> >> ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860",
> >> SYMLINK+="android_adb", MODE="0666", ACTION=="add",
> >> RUN+="/usr/bin/sudo -b -u ik /usr/bin/go-mtpfs -allow-other=true
> >> -android=true /mnt/ando" ATTR{idVendor}=="04e8",
> >> ATTR{idProduct}=="6860", SYMLINK+="android_adb", MODE="0666",
> >> ACTION=="remove", RUN+="/bin/umount /mnt/ando"
> >>
> >>
> >> It does mount properly the content, however, when I try to access
> >> the content, it keep on looping an remounting everything until I
> >> take off the USB cable.
> >> I then need to wait several minutes to try again, or the loop just
> >> continue ...
> >>
> >> I can see the remounting also in /var/log/messages and dmesg.
> >>
> >> What am I missing or doing wrong here ?
> >>
> >> Thanks,
> >> Ido
> >>
> >
> >
> > _______________________________________________
> > Linux-il mailing list
> > Linux-il at cs.huji.ac.il
> > http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
> >
> >
--
Shlomo Solomon
http://the-solomons.net
Sent by Claws Mail 3.9.0 - KDE 4.10.2 - LINUX Mageia 3
More information about the Linux-il
mailing list