<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-04-04 10:41 GMT+02:00 robert rottermann <span dir="ltr"><<a href="mailto:robert@redcor.ch" target="_blank">robert@redcor.ch</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Colin,<br>
thanks for your answer<span class=""><br>
On 30.03.2015 18:13, Colin Law wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
On 30 March 2015 at 16:39, robert rottermann <<a href="mailto:robert@redcor.ch" target="_blank">robert@redcor.ch</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
...<br>
I tried to access the device using a usb-cable.<br>
<br>
I do see the the device in the list of the device on my desktop, can access<br>
it using the file explore ..<br>
But I can not find it in the file system.<br>
In former Ubuntu version the android was mounted as block device under<br>
/media/xx (i believe), so rsync could be used easily.<br>
</blockquote>
MTP devices mount under<br>
/run/user/$USER/gvfs<br>
The folder will be something like mtp:host=%5Busb%3A001%2C009%5D which<br>
is the equivalent of mtp:host=[usb:001,009] in my case.<br>
</blockquote></span>
I can list the list like this:<br>
ls -l /run/user/1000/gvfs/mtp\:host\<u></u>=%5Busb%3A001%2C010%5D/Phone/<u></u>DCIM/Camera/<br>
<br>
but an atempt to copy them results in an access error:<br>
cp -ruv /run/user/1000/gvfs/mtp\:host\<u></u>=%5Busb%3A001%2C010%5D/Phone/<u></u>DCIM/Camera/ .<br>
<br>
produces:<br>
‘/run/user/1000/gvfs/mtp:host=<u></u>%5Busb%3A001%2C010%5D/Phone/<u></u>DCIM/Camera/20150403_152133.<u></u>jpg’ -> ‘./Camera/20150403_152133.jpg’<br>
cp: cannot open ‘/run/user/1000/gvfs/mtp:host=<u></u>%5Busb%3A001%2C010%5D/Phone/<u></u>DCIM/Camera/20150403_152133.<u></u>jpg’ for reading: Operation not supported<br>
<br>
<br>
is there a flag I have to set or something ..<br>
<br>
thanks<span class=""><font color="#888888"><br>
robert</font></span><div class=""><div class="h5"><br></div></div></blockquote><div><br></div><div>This really sucks these days. I asked a similar question a while ago, but nobody knows. In earlier Ubuntu (12.04 and earlier, I don't know about 13.x, because I never installed them) it was very easy to access an Android phone, but now, for some reason, the path is different every time you connect it (just like old Windows when you connected disc drives to it, different drive letter all the time, but that behaviour could at least be corrected), making it more difficult to write a script for it. Yes, you can determine the path by collecting relevant info from lsusb, but why so complicated?</div><div><br></div><div>In my case I can get the address with ”lsusb | grep Nexus” and then do a lot of fun stuff with awk and sed to obtain the correct path, but I wish there was an more obvious way.</div><div><br></div><div>About ”cannot open…”, you know that your phone need to be activated, that is not in any kind of sleep mode or even ”waiting for password mode”?</div><div>I also noticed that when I copy files to (and maybe from, I didn't try that yet) a folder on my Android phone, it is very slow when there are a lot of files in that particular folder. Very very very slow. I'm talking about a few kB/s here. kB, not Mb…</div><div><br></div><div>My workaround was to put the files in an empty folder and then move them internally with a file manager app in the Android device…</div><div><br></div><div>I have the old Nexus 4 and Ubuntu 14.04, just in case anyone wonders.</div><div><br></div><div><br></div><div>Kind regards</div><div><br></div><div>Johnny Rosenberg</div><div>ジョニー・ローゼンバーグ</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5">
<br>
<br>
-- <br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com" target="_blank">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/<u></u>mailman/listinfo/ubuntu-users</a><br>
</div></div></blockquote></div><br></div></div>