accessing android with ssh/rsync
Colin Law
clanlaw at gmail.com
Sun Apr 5 08:44:44 UTC 2015
On 4 April 2015 at 09:41, robert rottermann <robert at redcor.ch> wrote:
> Colin,
> thanks for your answer
>
> On 30.03.2015 18:13, Colin Law wrote:
>>
>> On 30 March 2015 at 16:39, robert rottermann <robert at redcor.ch> wrote:
>>>
>>> ...
>>> I tried to access the device using a usb-cable.
>>>
>>> I do see the the device in the list of the device on my desktop, can
>>> access
>>> it using the file explore ..
>>> But I can not find it in the file system.
>>> In former Ubuntu version the android was mounted as block device under
>>> /media/xx (i believe), so rsync could be used easily.
>>
>> MTP devices mount under
>> /run/user/$USER/gvfs
>> The folder will be something like mtp:host=%5Busb%3A001%2C009%5D which
>> is the equivalent of mtp:host=[usb:001,009] in my case.
>
> I can list the list like this:
> ls -l
> /run/user/1000/gvfs/mtp\:host\=%5Busb%3A001%2C010%5D/Phone/DCIM/Camera/
>
> but an atempt to copy them results in an access error:
> cp -ruv
> /run/user/1000/gvfs/mtp\:host\=%5Busb%3A001%2C010%5D/Phone/DCIM/Camera/ .
>
> produces:
> ‘/run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C010%5D/Phone/DCIM/Camera/20150403_152133.jpg’
> -> ‘./Camera/20150403_152133.jpg’
> cp: cannot open
> ‘/run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C010%5D/Phone/DCIM/Camera/20150403_152133.jpg’
> for reading: Operation not supported
It works ok for me.
Could it be this bug (found by googling for the error message)?
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1389001
Colin
More information about the ubuntu-users
mailing list