2

I wanted to transfer photos from my smartphone to my computer. The file explorer is Dolphin. I can find the file to be copied on the path : mtp:/HUAWEI_NXT ... but when I try to cd to the folder, I have the error: No such file or directory. I read following forums:

https://doc.ubuntu-fr.org/mtp

Where's my phone mounted to browse it from shell?

https://qastack.fr/ubuntu/342319/where-are-mtp-mounted-devices-located-in-the-filesystem

But none of them is helping. I do lsusb, and I have information mentioned in the second link. However when I do : cd mtp://[usb:002,018]/ I have: No such file or directory.

Can anyone help me with that?
Best regards.

Gryu
  • 7,559
  • 9
  • 33
  • 52
  • The second link was already a duplicate: see https://askubuntu.com/questions/342319/where-are-mtp-mounted-devices-located-in-the-filesystem – Jos Jan 30 '20 at 12:59
  • I saw this one. When I do cd mtp://[usb:002,018]/ I have : No such file or directory. And when I go to /run/user/1000/gvfs, it is empty. – user790082 Jan 30 '20 at 13:06
  • Did you enable the connection on the phone? – user535733 Jan 30 '20 at 13:10
  • Yes, otherwise I would not see the content of files with the explorer. Is not true ? – user790082 Jan 30 '20 at 13:14
  • True, but that is not clear in your question above. Comments here are intended to help you clarify and refine your question. Consider adding clarifications to your question above. Many folks do not read comments. – user535733 Jan 30 '20 at 13:16
  • The answer I linked to does not require you to do cd mtp://..., that is in fact bad syntax. Instead, look for the proper USB values in /run/user/$USER/gvfs and construct a cd statement of the form ` cd /run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C006%5D/`` . – Jos Jan 30 '20 at 13:37
  • Are you sure 1000 is your UID? Try echo $UID. – Jos Jan 30 '20 at 13:40
  • As I mentioned in the comments, /run/user/1000/gvfs is empty for me. Where the information "host=%5Busb%3A001%2C006%5D/" can come from ? – user790082 Jan 30 '20 at 13:41
  • I tried echo $UID and the answer is 1000. – user790082 Jan 30 '20 at 13:43

0 Answers0