You are not logged in.

#1 2014-01-04 11:01:44

Janilson
Member
From: Recife-PE/Brazil
Registered: 2013-03-05
Posts: 55

[SOLVED] Access Moto G filesystem

Hi all,

I just bought a Motorola  Moto G phone. When I plug it in my USB drive I can't access its filesystem.
I want to access it in order to transfer files and musics to it.
Does anyone know what can I do to make it works?

I read something about MTP, I have installed some stuff: p2kmoto, floola, putusb and gMTP

Thanks in advance

Last edited by Janilson (2014-01-04 15:43:46)

Offline

#2 2014-01-04 11:40:49

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: [SOLVED] Access Moto G filesystem

It's easier to use WLAN with apps like Airdroid to push files to it. I never looked at using mtp.

Offline

#3 2014-01-04 11:51:41

Janilson
Member
From: Recife-PE/Brazil
Registered: 2013-03-05
Posts: 55

Re: [SOLVED] Access Moto G filesystem

I don't have a lan at the moment sad
I just followed some instruction over the internet and I got erros:

[janilson@MALIBU libmtp-1.1.6]$ sudo mtp-connect
Unable to open ~/.mtpz-data for reading, MTPZ disabled.libmtp version: 1.1.6

Device 0 (VID=22b8 and PID=2e82) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
Android device detected, assigning default bug flags
Usage: connect <command1> <command2>
Commands: --delete [filename]
          --sendfile [source] [destination]
          --sendtrack [source] [destination]
          --getfile [source] [destination]
          --newfolder [foldername]

Maybe I should start some mtp service.

When I run sudo mtp-detect I got this

Device 0 (VID=22b8 and PID=2e82) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
   [b]Found 1 device(s):[/b]

I think it means my phone is recognized, but not entirely 
   22b8:2e82 @ bus 4, dev 4
Attempting to connect device(s)
Android device detected, assigning default bug flags
...
         Product: (null)
         Vendor id: 0x2e82
         Device flags: 0x08008106
Configuration 0, interface 0, altsetting 0:
   Interface description contains the string "MTP"
   Device recognized as MTP, no further probing.
Device info:
   Manufacturer: motorola
   Model: XT1033
   Device version: 1.0
   ...

Offline

#4 2014-01-04 13:51:10

Hspasta
Member
Registered: 2011-12-24
Posts: 189
Website

Re: [SOLVED] Access Moto G filesystem

For me, gvfs-mtp was the only method that I could connect my Samsung Note 3. Maybe it'll work for the Moto G.

Offline

#5 2014-01-04 14:04:36

donniezazen
Member
From: Salt Lake City
Registered: 2011-06-24
Posts: 671
Website

Re: [SOLVED] Access Moto G filesystem

Install gvfs-mtp for Gnome or kio-mtp for KDE. The filesystem should show up on in your file manage on its own. It may or may not work though. MTP is crappy on Linux.

Offline

#6 2014-01-04 15:43:20

Janilson
Member
From: Recife-PE/Brazil
Registered: 2013-03-05
Posts: 55

Re: [SOLVED] Access Moto G filesystem

I have installed gvfs-mtp (gnome) before.

I did it, now it works. I will tell you what I have done (I don't know if it is all needed, since I was trying everything). I hope it can help others with this problem ^^

1 - I have downloaded the tar.gz file from http://libmtp.sourceforge.net/, unpack it, in the  libmtp-1.1.6/src/music-players.h I have added the lines below

 { "Motorola", 0x22b8, "Moto G (XT1032)", 0x2e82, 
      DEVICE_FLAGS_ANDROID_BUGS },

2 - I have added to my /usr/lib/udev/rules.d/69-libmtp.rules file the lines:

# Motorola Moto G
ATTR{idVendor}=="22b8", ATTR{idProduct}=="2e82", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"

After all of this, I have run udevadm control --reload
And then rebooted the system. Now everything is working just fine.

Thanks for answers guys.

P.S.: I have talked through chat to Motorola's Support, and the person told me there was no way to access my phone filesystem without Windows or Mac. Community's support is bigger and better than anyone else big_smile

Offline

#7 2014-01-04 16:12:06

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Access Moto G filesystem

MTP can be rather slow in my experience.  I have all my media on a home file server (really just an old desktop) that has samba set up.  So I can just use my Android phone's file manager to connect and transfer files wirelessly.  I find it much more convenient, though you then have to learn how to set up samba.

I think that sftp is also something that my device can connect to as well.  So if you are an openssh user, that route might be an easier choice than going through the process of figuring out samba.  With the default /etc/ssh/sshd_config I think that it should be all set up for you.


BTW, that Moto G looks like a nice phone.  I just got a Moto X, and it is great.  My sister went to Ellen Degeneres' talk show for the 12 days of Christmas thing where she gives away a bunch of stuffs (I had never heard of it before she went).  One of the things she was given was a free Moto X, and since I have a family of Apple users, she gave it to me since she figured I would enjoy it the most.  Good thing I am nice to my sister smile

Offline

#8 2014-01-05 02:24:38

donniezazen
Member
From: Salt Lake City
Registered: 2011-06-24
Posts: 671
Website

Re: [SOLVED] Access Moto G filesystem

@Janilson AFAIK you only need to install gvfs-mtp and it pulls latest libmtp. And rest of the things you mentioned are only needed for adb access and not for mtp.

Offline

#9 2014-01-05 02:49:38

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Access Moto G filesystem

In addition to what Donniezazen has mentioned, you shouldn't be editing things in /usr.  Instead, use /etc/udev/rules.d which is the area meant to be used by the sysadmin.  Files in /etc/udev/rules.d with the same name as /usr/lib/udev/rules.d will override.  So you may want to make a /etc/udev/rules.d/70-libmtp.rules instead of 69-libmtp.rules.  Otherwise you could call it something like 69-mylibmtp.rules.

Offline

#10 2014-01-05 03:03:36

donniezazen
Member
From: Salt Lake City
Registered: 2011-06-24
Posts: 671
Website

Re: [SOLVED] Access Moto G filesystem

I would rather install android-udev from AUR and ask the package upstream to add Moto G to the the list of udev rules (if not added already). Saves you time and helps everyone.

Last edited by donniezazen (2014-01-05 03:04:59)

Offline

#11 2014-01-14 21:16:17

Janilson
Member
From: Recife-PE/Brazil
Registered: 2013-03-05
Posts: 55

Re: [SOLVED] Access Moto G filesystem

Guys thanks a lot. After some updates, my moto G stopped work in my Arch. So I followed what @WonderWoofy has advised me to.
I have created a file called 70-mylibmtp.rule in /etc/udev/rules.d/
After that I have run udevadm control --reload (I don't know if it's necessary), rebooted and everything is back working.

@donniezazen:
I have installed android-udev as you said, nothing had happened. I have looked in libmtp bug report and some people have already reported that Moto G had some problems.

But, thanks again for all information you guys have given to me. Each day I learn something new in this community

Offline

Board footer

Powered by FluxBB