Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #171778 > unrolled thread
| Started by | Curt Howland <Howland@priss.com> |
|---|---|
| First post | 2016-09-05 17:00 +0200 |
| Last post | 2016-09-07 19:20 +0200 |
| Articles | 10 — 7 participants |
Back to article view | Back to linux.debian.user
Re: mount MTP phone Curt Howland <Howland@priss.com> - 2016-09-05 17:00 +0200
Re: mount MTP phone Nicolas George <george@nsup.org> - 2016-09-05 17:20 +0200
Re: mount MTP phone Tony Baldwin <tonybaldwin@gmx.com> - 2016-09-05 18:50 +0200
Re: mount MTP phone Nicolas George <george@nsup.org> - 2016-09-05 19:10 +0200
Resolved: mount MTP phone Anthony Baldwin <baldwinlinguas@gmx.com> - 2016-09-05 20:10 +0200
Re: Resolved: mount MTP phone Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2016-09-06 21:20 +0200
Re: mount MTP phone Celejar <celejar@gmail.com> - 2016-09-06 03:00 +0200
Re: mount MTP phone Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2016-09-06 21:20 +0200
Re: mount MTP phone Ivan Petrov <ipmmx@yandex.ru> - 2016-09-07 18:30 +0200
Re: mount MTP phone Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2016-09-07 19:20 +0200
| From | Curt Howland <Howland@priss.com> |
|---|---|
| Date | 2016-09-05 17:00 +0200 |
| Subject | Re: mount MTP phone |
| Message-ID | <se3xo-57t-5@gated-at.bofh.it> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 I've never been able to mount any MTP phone to Linux. Different phones, different Android versions, different Linux installations, nada. - -- You may my glories and my state dispose, But not my griefs; still am I king of those. --- William Shakespeare, "Richard II" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREIAAYFAlfNhdkACgkQtk9X6NaR4amjowEAxDqk/armeNDM4p/bu+x75eG7 ErHTs5wRK2oF3T0Ne+QBAOkZh46FTak4Y+b4SW6q5JnGBzNBGbQTOFKo+rJDwKEr =WSpF -----END PGP SIGNATURE-----
[toc] | [next] | [standalone]
| From | Nicolas George <george@nsup.org> |
|---|---|
| Date | 2016-09-05 17:20 +0200 |
| Message-ID | <se3QJ-5u6-7@gated-at.bofh.it> |
| In reply to | #171778 |
[Multipart message — attachments visible in raw view] — view raw
Le decadi 20 fructidor, an CCXXIV, Curt Howland a écrit : > I've never been able to mount any MTP phone to Linux. Different > phones, different Android versions, different Linux installations, > nada. I have. With FUSE and gvfs, something like (the computer where I did it and kept notes is current shut down): gvfs-mount 'mtp://[usb:001,002]' You need to have gvfs-fuse already running, then it appears under /run/users/$UID/gvfs/. libmtp has a few tools to manipulate MTP devices without mounting them, but they have 0 documentation. Furthermore, MTP it awfully slow at startup for some tasks, so individual commands without a process to keep the library open will give awful results. I have started working on a tool with a script-friendly FTP-like interface, but not got very far yet due to other more pressing projects. Regards, -- Nicolas George
[toc] | [prev] | [next] | [standalone]
| From | Tony Baldwin <tonybaldwin@gmx.com> |
|---|---|
| Date | 2016-09-05 18:50 +0200 |
| Message-ID | <se5fQ-6h4-27@gated-at.bofh.it> |
| In reply to | #171781 |
On 09/05/2016 11:09 AM, Nicolas George wrote: > Le decadi 20 fructidor, an CCXXIV, Curt Howland a écrit : >> I've never been able to mount any MTP phone to Linux. Different >> phones, different Android versions, different Linux installations, >> nada. > > I have. With FUSE and gvfs, something like (the computer where I did it and > kept notes is current shut down): > > gvfs-mount 'mtp://[usb:001,002]' > > You need to have gvfs-fuse already running, then it appears under > /run/users/$UID/gvfs/. > > libmtp has a few tools to manipulate MTP devices without mounting them, but > they have 0 documentation. Furthermore, MTP it awfully slow at startup for > some tasks, so individual commands without a process to keep the library > open will give awful results. I have started working on a tool with a > script-friendly FTP-like interface, but not got very far yet due to other > more pressing projects. > > Regards, > Something has changed since yesterday (IN which I installeed jmtpfs). Now when I do ls usb, I see this: Bus 005 Device 012: ID 22b8:2ea4 Motorola PCS I'm also seeing possibly relevant (I don't know) stuff in dmesg, such as this: [quote][75390.506984] hub 5-0:1.0: port 5 disabled by hub (EMI?), re-enabling... [75390.507000] usb 5-5: USB disconnect, device number 8 [75406.588441] usb 5-5: new high-speed USB device number 9 using ehci_hcd [75406.722345] usb 5-5: New USB device found, idVendor=22b8, idProduct=2ea6 [75406.722360] usb 5-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [75406.722368] usb 5-5: Product: XT1254 [75406.722374] usb 5-5: Manufacturer: motorola [75406.722379] usb 5-5: SerialNumber: ZY2234TGKZ [81479.602219] usb 5-5: USB disconnect, device number 9 [81479.876441] usb 5-5: new high-speed USB device number 10 using ehci_hcd [81480.010291] usb 5-5: New USB device found, idVendor=22b8, idProduct=2ea6 [81480.010305] usb 5-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [81480.010314] usb 5-5: Product: XT1254 [81480.010319] usb 5-5: Manufacturer: motorola [81480.010325] usb 5-5: SerialNumber: ZY2234TGKZ [81483.946880] usb 5-5: USB disconnect, device number 10 [81484.220444] usb 5-5: new high-speed USB device number 11 using ehci_hcd [81484.354763] usb 5-5: New USB device found, idVendor=22b8, idProduct=2ea6 [81484.354778] usb 5-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [81484.354786] usb 5-5: Product: XT1254 [81484.354792] usb 5-5: Manufacturer: motorola [81484.354797] usb 5-5: SerialNumber: ZY2234TGKZ [81484.399977] usb 5-5: USB disconnect, device number 11 [81508.968204] usb 5-5: new high-speed USB device number 12 using ehci_hcd [81509.102613] usb 5-5: New USB device found, idVendor=22b8, idProduct=2ea4 [81509.102627] usb 5-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [81509.102635] usb 5-5: Product: XT1254 [81509.102641] usb 5-5: Manufacturer: motorola [81509.102647] usb 5-5: SerialNumber: ZY2234TGKZ [/quote] is your work in a github repo, sourceforge project, or similar, where others could have a look, and, perhaps, contribute, Nicolas? -- http://tonybaldwin.me all tony, all the time
[toc] | [prev] | [next] | [standalone]
| From | Nicolas George <george@nsup.org> |
|---|---|
| Date | 2016-09-05 19:10 +0200 |
| Message-ID | <se5zc-6EG-43@gated-at.bofh.it> |
| In reply to | #171788 |
[Multipart message — attachments visible in raw view] — view raw
Le decadi 20 fructidor, an CCXXIV, Tony Baldwin a écrit : > Something has changed since yesterday (IN which I installeed jmtpfs). > Now when I do ls usb, I see this: > Bus 005 Device 012: ID 22b8:2ea4 Motorola PCS > I'm also seeing possibly relevant (I don't know) stuff in dmesg, such as > this: > [quote][75390.506984] hub 5-0:1.0: port 5 disabled by hub (EMI?), > re-enabling... > [75390.507000] usb 5-5: USB disconnect, device number 8 > [75406.588441] usb 5-5: new high-speed USB device number 9 using ehci_hcd > [75406.722345] usb 5-5: New USB device found, idVendor=22b8, idProduct=2ea6 > [75406.722360] usb 5-5: New USB device strings: Mfr=1, Product=2, > SerialNumber=3 > [75406.722368] usb 5-5: Product: XT1254 > [75406.722374] usb 5-5: Manufacturer: motorola > [75406.722379] usb 5-5: SerialNumber: ZY2234TGKZ This is rather promising. > [81479.602219] usb 5-5: USB disconnect, device number 9 > [81479.876441] usb 5-5: new high-speed USB device number 10 using ehci_hcd > [81483.946880] usb 5-5: USB disconnect, device number 10 > [81484.220444] usb 5-5: new high-speed USB device number 11 using ehci_hcd This is less promising: disconnect and then immediate reconnect. Could be a faulty contact in the cable. > [81484.399977] usb 5-5: USB disconnect, device number 11 > [81508.968204] usb 5-5: new high-speed USB device number 12 using ehci_hcd This one was longer. Maybe you remember if you did something with the phone at the time. /var/log/kernel.log or `journalctl -kb` would have readable timestamps. I would also suggest dmesg -w to see the messages in realtime. > is your work in a github repo, sourceforge project, or similar, where others > could have a look, and, perhaps, contribute, Nicolas? It is way too early for that: no doc, no build system. I just added a quick comment with a copyright notice and the build command and uploaded to my web page (so 1990's!): http://nsup.org/~george/comp/misc/mtpop.c I can make no promise about a timeline, or even reacting to contributions, except it will be long (fixing libavfilter has uttermost priority for me right now). But this is the only place I have publicly spoken of it, so if someone wants to completely take over, just reply to this mail and everybody will be informed. Regards, -- Nicolas George Regards, -- Nicolas George
[toc] | [prev] | [next] | [standalone]
| From | Anthony Baldwin <baldwinlinguas@gmx.com> |
|---|---|
| Date | 2016-09-05 20:10 +0200 |
| Subject | Resolved: mount MTP phone |
| Message-ID | <se6vf-7gH-13@gated-at.bofh.it> |
| In reply to | #171788 |
Sorry for top-posting. Iḿ no t even sure what it was that DID solve this but the phone is now mounting at mtp://[usb:005,012]/ Must have something to do with installing the jmtpfs pkg, because that's the only thing I can think of that I did yesterday that could be making a difference today. I did briefly put the phone on ptp/camera mode, and it let me download the photos on it, but now it's letting me completely access the storage for whatever (move photos, music, etc. phone<->computer) On 09/05/2016 12:47 PM, Tony Baldwin wrote: > On 09/05/2016 11:09 AM, Nicolas George wrote: >> Le decadi 20 fructidor, an CCXXIV, Curt Howland a écrit : >>> I've never been able to mount any MTP phone to Linux. Different >>> phones, different Android versions, different Linux installations, >>> nada. >> >> I have. With FUSE and gvfs, something like (the computer where I did >> it and >> kept notes is current shut down): >> >> gvfs-mount 'mtp://[usb:001,002]' >> >> You need to have gvfs-fuse already running, then it appears under >> /run/users/$UID/gvfs/. >> >> libmtp has a few tools to manipulate MTP devices without mounting >> them, but >> they have 0 documentation. Furthermore, MTP it awfully slow at startup >> for >> some tasks, so individual commands without a process to keep the library >> open will give awful results. I have started working on a tool with a >> script-friendly FTP-like interface, but not got very far yet due to other >> more pressing projects. >> >> Regards, >> > > Something has changed since yesterday (IN which I installeed jmtpfs). > Now when I do ls usb, I see this: > Bus 005 Device 012: ID 22b8:2ea4 Motorola PCS > I'm also seeing possibly relevant (I don't know) stuff in dmesg, such as > this: > [quote][75390.506984] hub 5-0:1.0: port 5 disabled by hub (EMI?), > re-enabling... > [75390.507000] usb 5-5: USB disconnect, device number 8 > [75406.588441] usb 5-5: new high-speed USB device number 9 using ehci_hcd > [75406.722345] usb 5-5: New USB device found, idVendor=22b8, idProduct=2ea6 > [75406.722360] usb 5-5: New USB device strings: Mfr=1, Product=2, > SerialNumber=3 > [75406.722368] usb 5-5: Product: XT1254 > [75406.722374] usb 5-5: Manufacturer: motorola > [75406.722379] usb 5-5: SerialNumber: ZY2234TGKZ > [81479.602219] usb 5-5: USB disconnect, device number 9 > [81479.876441] usb 5-5: new high-speed USB device number 10 using ehci_hcd > [81480.010291] usb 5-5: New USB device found, idVendor=22b8, idProduct=2ea6 > [81480.010305] usb 5-5: New USB device strings: Mfr=1, Product=2, > SerialNumber=3 > [81480.010314] usb 5-5: Product: XT1254 > [81480.010319] usb 5-5: Manufacturer: motorola > [81480.010325] usb 5-5: SerialNumber: ZY2234TGKZ > [81483.946880] usb 5-5: USB disconnect, device number 10 > [81484.220444] usb 5-5: new high-speed USB device number 11 using ehci_hcd > [81484.354763] usb 5-5: New USB device found, idVendor=22b8, idProduct=2ea6 > [81484.354778] usb 5-5: New USB device strings: Mfr=1, Product=2, > SerialNumber=3 > [81484.354786] usb 5-5: Product: XT1254 > [81484.354792] usb 5-5: Manufacturer: motorola > [81484.354797] usb 5-5: SerialNumber: ZY2234TGKZ > [81484.399977] usb 5-5: USB disconnect, device number 11 > [81508.968204] usb 5-5: new high-speed USB device number 12 using ehci_hcd > [81509.102613] usb 5-5: New USB device found, idVendor=22b8, idProduct=2ea4 > [81509.102627] usb 5-5: New USB device strings: Mfr=1, Product=2, > SerialNumber=3 > [81509.102635] usb 5-5: Product: XT1254 > [81509.102641] usb 5-5: Manufacturer: motorola > [81509.102647] usb 5-5: SerialNumber: ZY2234TGKZ > [/quote] > > > is your work in a github repo, sourceforge project, or similar, where > others could have a look, and, perhaps, contribute, Nicolas? > -- http://www.baldwinlinguas.com translations, localization, multilingual web development EN, ES, FR, PT
[toc] | [prev] | [next] | [standalone]
| From | Joe Pfeiffer <pfeiffer@cs.nmsu.edu> |
|---|---|
| Date | 2016-09-06 21:20 +0200 |
| Subject | Re: Resolved: mount MTP phone |
| Message-ID | <seu4x-655-21@gated-at.bofh.it> |
| In reply to | #171795 |
Anthony Baldwin <baldwinlinguas@gmx.com> writes: > Sorry for top-posting. > Iḿ no t even sure what it was that DID solve this but the phone is now > mounting at mtp://[usb:005,012]/ > Must have something to do with installing the jmtpfs pkg, > because that's the only thing I can think of that I did yesterday that > could be making a difference today. > I did briefly put the phone on ptp/camera mode, and it let me download > the photos on it, but now it's letting me completely access the > storage for whatever (move photos, music, etc. phone<->computer) Magic fixes like this *really* sound like a bad cable. > On 09/05/2016 12:47 PM, Tony Baldwin wrote: >> On 09/05/2016 11:09 AM, Nicolas George wrote: >>> Le decadi 20 fructidor, an CCXXIV, Curt Howland a écrit : >>>> I've never been able to mount any MTP phone to Linux. Different >>>> phones, different Android versions, different Linux installations, >>>> nada. >>> >>> I have. With FUSE and gvfs, something like (the computer where I did >>> it and >>> kept notes is current shut down): >>> >>> gvfs-mount 'mtp://[usb:001,002]' >>> >>> You need to have gvfs-fuse already running, then it appears under >>> /run/users/$UID/gvfs/. >>> >>> libmtp has a few tools to manipulate MTP devices without mounting >>> them, but >>> they have 0 documentation. Furthermore, MTP it awfully slow at startup >>> for >>> some tasks, so individual commands without a process to keep the library >>> open will give awful results. I have started working on a tool with a >>> script-friendly FTP-like interface, but not got very far yet due to other >>> more pressing projects. >>> >>> Regards, >>> >> >> Something has changed since yesterday (IN which I installeed jmtpfs). >> Now when I do ls usb, I see this: >> Bus 005 Device 012: ID 22b8:2ea4 Motorola PCS >> I'm also seeing possibly relevant (I don't know) stuff in dmesg, such as >> this: >> [quote][75390.506984] hub 5-0:1.0: port 5 disabled by hub (EMI?), >> re-enabling... >> [75390.507000] usb 5-5: USB disconnect, device number 8 >> [75406.588441] usb 5-5: new high-speed USB device number 9 using ehci_hcd >> [75406.722345] usb 5-5: New USB device found, idVendor=22b8, idProduct=2ea6 >> [75406.722360] usb 5-5: New USB device strings: Mfr=1, Product=2, >> SerialNumber=3 >> [75406.722368] usb 5-5: Product: XT1254 >> [75406.722374] usb 5-5: Manufacturer: motorola >> [75406.722379] usb 5-5: SerialNumber: ZY2234TGKZ >> [81479.602219] usb 5-5: USB disconnect, device number 9 >> [81479.876441] usb 5-5: new high-speed USB device number 10 using ehci_hcd >> [81480.010291] usb 5-5: New USB device found, idVendor=22b8, idProduct=2ea6 >> [81480.010305] usb 5-5: New USB device strings: Mfr=1, Product=2, >> SerialNumber=3 >> [81480.010314] usb 5-5: Product: XT1254 >> [81480.010319] usb 5-5: Manufacturer: motorola >> [81480.010325] usb 5-5: SerialNumber: ZY2234TGKZ >> [81483.946880] usb 5-5: USB disconnect, device number 10 >> [81484.220444] usb 5-5: new high-speed USB device number 11 using ehci_hcd >> [81484.354763] usb 5-5: New USB device found, idVendor=22b8, idProduct=2ea6 >> [81484.354778] usb 5-5: New USB device strings: Mfr=1, Product=2, >> SerialNumber=3 >> [81484.354786] usb 5-5: Product: XT1254 >> [81484.354792] usb 5-5: Manufacturer: motorola >> [81484.354797] usb 5-5: SerialNumber: ZY2234TGKZ >> [81484.399977] usb 5-5: USB disconnect, device number 11 >> [81508.968204] usb 5-5: new high-speed USB device number 12 using ehci_hcd >> [81509.102613] usb 5-5: New USB device found, idVendor=22b8, idProduct=2ea4 >> [81509.102627] usb 5-5: New USB device strings: Mfr=1, Product=2, >> SerialNumber=3 >> [81509.102635] usb 5-5: Product: XT1254 >> [81509.102641] usb 5-5: Manufacturer: motorola >> [81509.102647] usb 5-5: SerialNumber: ZY2234TGKZ >> [/quote] >> >> >> is your work in a github repo, sourceforge project, or similar, where >> others could have a look, and, perhaps, contribute, Nicolas? >> -- "Erwin, have you seen the cat?" -- Mrs. Shrödinger
[toc] | [prev] | [next] | [standalone]
| From | Celejar <celejar@gmail.com> |
|---|---|
| Date | 2016-09-06 03:00 +0200 |
| Message-ID | <secU1-2ZD-1@gated-at.bofh.it> |
| In reply to | #171781 |
On Mon, 5 Sep 2016 17:09:38 +0200 Nicolas George <george@nsup.org> wrote: > Le decadi 20 fructidor, an CCXXIV, Curt Howland a écrit : > > I've never been able to mount any MTP phone to Linux. Different > > phones, different Android versions, different Linux installations, > > nada. > > I have. With FUSE and gvfs, something like (the computer where I did it and > kept notes is current shut down): > > gvfs-mount 'mtp://[usb:001,002]' > > You need to have gvfs-fuse already running, then it appears under > /run/users/$UID/gvfs/. > > libmtp has a few tools to manipulate MTP devices without mounting them, but > they have 0 documentation. Furthermore, MTP it awfully slow at startup for > some tasks, so individual commands without a process to keep the library > open will give awful results. I have started working on a tool with a > script-friendly FTP-like interface, but not got very far yet due to other > more pressing projects. My Android Moto G and E both mount fine with jmtpfs: ~$ jmtpfs ~/mnt Basic copying and moving files (that's all I have tried) then works fine. Umounting works fine with: ~$ fusermount -u ~/mnt Celejar
[toc] | [prev] | [next] | [standalone]
| From | Joe Pfeiffer <pfeiffer@cs.nmsu.edu> |
|---|---|
| Date | 2016-09-06 21:20 +0200 |
| Message-ID | <seu4x-655-13@gated-at.bofh.it> |
| In reply to | #171778 |
Curt Howland <Howland@priss.com> writes: > I've never been able to mount any MTP phone to Linux. Different > phones, different Android versions, different Linux installations, > nada. I've only been able to do it using jmtpfs (I don't have it set up to automount using that). -- "Erwin, have you seen the cat?" -- Mrs. Shrödinger
[toc] | [prev] | [next] | [standalone]
| From | Ivan Petrov <ipmmx@yandex.ru> |
|---|---|
| Date | 2016-09-07 18:30 +0200 |
| Message-ID | <seNTA-25W-37@gated-at.bofh.it> |
| In reply to | #171823 |
06.09.2016 22:19, Joe Pfeiffer пишет: > Curt Howland <Howland@priss.com> writes: > >> I've never been able to mount any MTP phone to Linux. Different >> phones, different Android versions, different Linux installations, >> nada. > > I've only been able to do it using jmtpfs (I don't have it set up to > automount using that). > Why I have this messages, when I'm using it? $ jmtpfs /media/exfat Device 0 (VID=19d2 and PID=ffce) is UNKNOWN. Please report this VID/PID and the device model to the libmtp development team Android device detected, assigning default bug flags ?
[toc] | [prev] | [next] | [standalone]
| From | Joe Pfeiffer <pfeiffer@cs.nmsu.edu> |
|---|---|
| Date | 2016-09-07 19:20 +0200 |
| Message-ID | <seOFY-2Bs-13@gated-at.bofh.it> |
| In reply to | #171850 |
Ivan Petrov <ipmmx@yandex.ru> writes: > 06.09.2016 22:19, Joe Pfeiffer пишет: >> Curt Howland <Howland@priss.com> writes: >> >>> I've never been able to mount any MTP phone to Linux. Different >>> phones, different Android versions, different Linux installations, >>> nada. >> >> I've only been able to do it using jmtpfs (I don't have it set up to >> automount using that). >> > > Why I have this messages, when I'm using it? > > $ jmtpfs /media/exfat > Device 0 (VID=19d2 and PID=ffce) is UNKNOWN. > Please report this VID/PID and the device model to the libmtp > development team > Android device detected, assigning default bug flags First question: when you plugged the phone in, did you turn on USB for file transfers? Without that I get almost exactly the same behavior you see: snowball:501$ jmtpfs /home/joseph/mnt Device 0 (VID=18d1 and PID=4ee1) is a Google Inc (for LG Electronics/Samsung) Nexus 4/5/7/10 (MTP). Android device detected, assigning default bug flags snowball:502$ ls mnt /bin/ls: cannot access 'mnt': Input/output error If I click the notification on my phone and then select "File transfers" I get snowball:507$ jmtpfs /home/joseph/mnt Device 0 (VID=18d1 and PID=4ee1) is a Google Inc (for LG Electronics/Samsung) Nexus 4/5/7/10 (MTP). Android device detected, assigning default bug flags snowball:508$ ls mnt Internal storage/ which is of course what I want. I'm not sure whether the actual error message you're getting > Device 0 (VID=19d2 and PID=ffce) is UNKNOWN. > Please report this VID/PID and the device model to the libmtp > development team is relevant; that's telling you that the vendor ID and product ID your phone is using to identify itself aren't in libmtp's database. If I search for them at http://www.the-sz.com/ it tells me the vendor is ZTE (which looking at the table appears to be a chipset manufacturer, not the manufacturer of your phone) but it can't find your device. On the other hand, jmtpfs is seeing that your device is an Android device, so it seems to have gotten around that somehow.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web