Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

rsync of mtp://[usb:001,012]/ ?

488 views
Skip to first unread message

Sharon Kimble

unread,
Jun 27, 2014, 1:50:02 AM6/27/14
to
I have a mobile phone and a kindle fire, both of which can be manually
mounted, but they are given names like "mtp://[usb:002,042]/" currently
the kindle fire. And "mtp://[usb:001,012]/" which is the mobile
phone.

How can I do a rsync backup of them both, or any backup at all really,
just in case the martians invade, again! :)

Thanks
Sharon.
--
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.5, emacs 24.3.91.1
signature.asc

Reco

unread,
Jun 27, 2014, 2:00:01 AM6/27/14
to
Hi.

On Fri, Jun 27, 2014 at 06:41:08AM +0100, Sharon Kimble wrote:
> I have a mobile phone and a kindle fire, both of which can be manually
> mounted, but they are given names like "mtp://[usb:002,042]/" currently
> the kindle fire. And "mtp://[usb:001,012]/" which is the mobile
> phone.
>
> How can I do a rsync backup of them both, or any backup at all really,
> just in case the martians invade, again! :)

If it's really mounted (for example, back in the old days nautilus
didn't mount smb shares, although it could access them just fine) - all
you need to do is to run 'mount' and examine existing mountpoints.
Presumably your devices are mounted either somewhere inside your $HOME,
or inside /run/media/$USER. And if you get a mountpoint - it's a simple
matter of running 'rsync -Hax $MOUNTPOINT $YOUR_BACKUP'.

Reco


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/20140627055418.GA30581@x101h

Sharon Kimble

unread,
Jun 27, 2014, 11:20:01 AM6/27/14
to
Reco <recov...@gmail.com> writes:

> Hi.
>
> On Fri, Jun 27, 2014 at 06:41:08AM +0100, Sharon Kimble wrote:
>> I have a mobile phone and a kindle fire, both of which can be manually
>> mounted, but they are given names like "mtp://[usb:002,042]/" currently
>> the kindle fire. And "mtp://[usb:001,012]/" which is the mobile
>> phone.
>>
>> How can I do a rsync backup of them both, or any backup at all really,
>> just in case the martians invade, again! :)
>
> If it's really mounted (for example, back in the old days nautilus
> didn't mount smb shares, although it could access them just fine) - all
> you need to do is to run 'mount' and examine existing mountpoints.
> Presumably your devices are mounted either somewhere inside your $HOME,
> or inside /run/media/$USER. And if you get a mountpoint - it's a simple
> matter of running 'rsync -Hax $MOUNTPOINT $YOUR_BACKUP'.
>

Neither of them show in "mount", although I know that I can mount either
using "jmtpfs /media/galaxy". But doing that gives a very flakey
connection, prone to dropping it or i/o errors. Neither of which are
conducive for a successful backup! And currently, only the mobile is
showing in 'lsusb' even though the kindle is mounted as well!

The mtp protocol/file system is very problematic and doesn't appear to
be handled well by linux at the moment, but I return to it every few
months in the hope that it has progressed!
signature.asc

Reco

unread,
Jun 27, 2014, 1:10:03 PM6/27/14
to
On Fri, 27 Jun 2014 16:11:41 +0100
Sharon Kimble <boud...@skimble.plus.com> wrote:

> Neither of them show in "mount", although I know that I can mount either
> using "jmtpfs /media/galaxy". But doing that gives a very flakey
> connection, prone to dropping it or i/o errors. Neither of which are
> conducive for a successful backup! And currently, only the mobile is
> showing in 'lsusb' even though the kindle is mounted as well!
>
> The mtp protocol/file system is very problematic and doesn't appear to
> be handled well by linux at the moment, but I return to it every few
> months in the hope that it has progressed!

I've heard good things about [1]. Not that I've tried it personally,
but…

Reco

[1] https://github.com/hanwen/go-mtpfs

PS. I'll check who I'm replying next time.
I'll check who I'm replying next time.
I'll check who I'm replying next time.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/20140627210612.ad4f...@gmail.com

Matthew Moore

unread,
Jun 27, 2014, 1:20:01 PM6/27/14
to
On 2014-06-27 04:11:41 PM, Sharon Kimble wrote:
> Reco <recov...@gmail.com> writes:
[...]
> The mtp protocol/file system is very problematic and doesn't appear to
> be handled well by linux at the moment, but I return to it every few
> months in the hope that it has progressed!

This has been my recent experience as well.

If you have installed some kind of android recovery in the bootloader,
you can ask it to 'mount usb', and then access it like a usb drive.
This is cumbersome to do often, so what I normally do is install an
ssh server and then use rsync over ssh to backup or transfer files.
Quicksshd is what I use to this end:

https://play.google.com/store/apps/details?id=com.teslacoilsw.quicksshd

MM


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/2014062717...@lambda.lexicon

Erwan David

unread,
Jun 27, 2014, 1:50:01 PM6/27/14
to
Le 27/06/2014 19:06, Reco a écrit :
> On Fri, 27 Jun 2014 16:11:41 +0100
> Sharon Kimble <boud...@skimble.plus.com> wrote:
>
>> Neither of them show in "mount", although I know that I can mount either
>> using "jmtpfs /media/galaxy". But doing that gives a very flakey
>> connection, prone to dropping it or i/o errors. Neither of which are
>> conducive for a successful backup! And currently, only the mobile is
>> showing in 'lsusb' even though the kindle is mounted as well!
>>
>> The mtp protocol/file system is very problematic and doesn't appear to
>> be handled well by linux at the moment, but I return to it every few
>> months in the hope that it has progressed!
> I've heard good things about [1]. Not that I've tried it personally,
> but…
>
> Reco
>
> [1] https://github.com/hanwen/go-mtpfs
>
> PS. I'll check who I'm replying next time.
> I'll check who I'm replying next time.
> I'll check who I'm replying next time.
>
>

I also noticed something strange : on my laptop (Lenovo T530), it works
only when my phone (Wiko Stairway) is plugged on a USB3 port, but not
when it is plugged on a USB2...



--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/53ADAE79...@rail.eu.org

Sharon Kimble

unread,
Jun 27, 2014, 3:00:02 PM6/27/14
to
Reco <recov...@gmail.com> writes:

> On Fri, 27 Jun 2014 16:11:41 +0100
> Sharon Kimble <boud...@skimble.plus.com> wrote:
>
>> Neither of them show in "mount", although I know that I can mount either
>> using "jmtpfs /media/galaxy". But doing that gives a very flakey
>> connection, prone to dropping it or i/o errors. Neither of which are
>> conducive for a successful backup! And currently, only the mobile is
>> showing in 'lsusb' even though the kindle is mounted as well!
>>
>> The mtp protocol/file system is very problematic and doesn't appear to
>> be handled well by linux at the moment, but I return to it every few
>> months in the hope that it has progressed!
>
> I've heard good things about [1]. Not that I've tried it personally,
> but…
>
> Reco
>
> [1] https://github.com/hanwen/go-mtpfs

Thanks, I was able to download a binary from there, "go-mtpfs.x86", and
made it executable and then ran -
╭────
│./go-mtpfs.x86 /media/boudiccas/galaxy
╰────

which resulted in this -
--8<---------------cut here---------------start------------->8---
./go-mtpfs.x86 /media/boudiccas/galaxy
2014/06/27 19:36:21 starting FUSE 70ad1f3 (2013-02-24 20:42:03 +0100)
2014/06/27 19:36:52 fatal error got type 0 (CONTAINER_UNDEFINED) in response, want CONTAINER_RESPONSE.; closing connection.
2014/06/27 19:36:52 GetObjectHandles failed: got type 0 (CONTAINER_UNDEFINED) in response, want CONTAINER_RESPONSE.
2014/06/27 19:36:57 GetObjectHandles failed: mtp: cannot run operation GetObjectHandles, device is not open
--8<---------------cut here---------------end--------------->8---

So we're only slightly further forward. Any ideas please?
signature.asc

Reco

unread,
Jun 27, 2014, 3:00:02 PM6/27/14
to
On Fri, 27 Jun 2014 19:42:33 +0100
Sharon Kimble <boud...@skimble.plus.com> wrote:

> >
> > I've heard good things about [1]. Not that I've tried it personally,
> > but…
> >
> > Reco
> >
> > [1] https://github.com/hanwen/go-mtpfs
>
> Thanks, I was able to download a binary from there, "go-mtpfs.x86", and
> made it executable and then ran -
> ╭────
> │./go-mtpfs.x86 /media/boudiccas/galaxy
> ╰────
>
> which resulted in this -
> --8<---------------cut here---------------start------------->8---
> ./go-mtpfs.x86 /media/boudiccas/galaxy
> 2014/06/27 19:36:21 starting FUSE 70ad1f3 (2013-02-24 20:42:03 +0100)
> 2014/06/27 19:36:52 fatal error got type 0 (CONTAINER_UNDEFINED) in response, want CONTAINER_RESPONSE.; closing connection.
> 2014/06/27 19:36:52 GetObjectHandles failed: got type 0 (CONTAINER_UNDEFINED) in response, want CONTAINER_RESPONSE.
> 2014/06/27 19:36:57 GetObjectHandles failed: mtp: cannot run operation GetObjectHandles, device is not open
> --8<---------------cut here---------------end--------------->8---
>
> So we're only slightly further forward. Any ideas please?

Short of installing an FTP(s) server on a phone - no, I'm out of ideas.

Reco


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/20140627225455.fa36...@gmail.com

James Cloos

unread,
Jun 29, 2014, 12:10:02 PM6/29/14
to
>>>>> "SK" == Sharon Kimble <boud...@skimble.plus.com> writes:

R>> https://github.com/hanwen/go-mtpfs

SK> Thanks, I was able to download a binary from there, "go-mtpfs.x86",
SK> and made it executable and then ran -

Is your kernel 32 bit or 64 bit? If the latter, you should try
the .x86_64 version instead of the .x86 version.

Or follow the compilation instructions at that site.

-JimC
--
James Cloos <cl...@jhcloos.com> OpenPGP: 0x997A9F17ED7DAEA6


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/m3pphrz...@carbon.jhcloos.org

Sharon Kimble

unread,
Jun 29, 2014, 2:30:02 PM6/29/14
to
James Cloos <cl...@jhcloos.com> writes:

>>>>>> "SK" == Sharon Kimble <boud...@skimble.plus.com> writes:
>
> R>> https://github.com/hanwen/go-mtpfs
>
> SK> Thanks, I was able to download a binary from there, "go-mtpfs.x86",
> SK> and made it executable and then ran -
>
> Is your kernel 32 bit or 64 bit? If the latter, you should try
> the .x86_64 version instead of the .x86 version.
>
> Or follow the compilation instructions at that site.

32-bit, which is why I chose the "go-mtpfs.x86" version.
signature.asc

James Cloos

unread,
Jun 29, 2014, 3:10:02 PM6/29/14
to
>>>>> "SK" == Sharon Kimble <boud...@skimble.plus.com> writes:

SK> 32-bit, which is why I chose the "go-mtpfs.x86" version.

Sorry.

I've seen a lot of misunderstandings recently between 32 bit and 64 bit.

If the problem with their precompiled binary is dueto kernel differences
between what you run and what they ran when the compilation was done,
compiling it yourself should avoid that.

OTOH, if the diference is between the kernel you run and the kernel they
targetted when writing the code you may still be out of luck.

The instruction in the README, as shown on the project's main github
page, look simple enough -- and look targeted at debian -- that it
should be quick and simple to try a local compilation.

-JimC
--
James Cloos <cl...@jhcloos.com> OpenPGP: 0x997A9F17ED7DAEA6


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/m3lhsfw...@carbon.jhcloos.org
0 new messages