[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: MTP and Android phones



2014/1/8 Paul Cartwright <pbcartwright@gmail.com>
On 01/08/2014 07:59 AM, Raffaele Morelli wrote:

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

If you're going to build it yourself, you'll need to install these
packages first:
% apt-get install golang-go golang-src libusb-1.0-0 libusb-1.0-0-dev

There seem to be pre-compiled binaries you can download too (YMMV with
those).  You'll probably need to install the libusb-1.0-0 library
anyway.

I just mount/unmount manually.  One could write a udev/udisks2 rule to
automate this I suppose.

HTH,
-- Brad

+1
works like a charm here, debian jessie. Android 4.1.2 on lg phone.
I did the go-mtpfs per the web site, ran it, but got an error. Not sure if I was supposed to do anything with this line from the install:

    # edit to suit libusb installation:
    vi /tmp/go/src/github.com/hanwen/go-mtpfs/usb/usb.go

but here is what happened when I ran it:
go-mtpfs /media/s3
2014/01/08 08:34:26 OpenSession failed: LIBUSB_ERROR_IO; attempting reset
2014/01/08 08:34:33 Configure failed: OpenSession after reset: LIBUSB_ERROR_TIMEOUT

exept that I moved the installation path to my ~/bin I followed that verbatim and worked

/r



Reply to: