3

I transferred fotos etc from Android 11 (Samsung S10e) to Ubuntu via USB; then, after completion, tried to unmount (I think) which then stalled (if I remember correctly) then pulled the plug and since then I can't properly mount/connect via USB again as before. - Of the USB connection options presented to me by Android, I can now only connect via "Transferring images" (also known perhaps as "PTP via USB turned on") instead of "Transferring files" (which worked before).

How to fix / reset the connection so that also the other connection mode ("Transferring files") will work again as before?


  • I already rebooted both the phone and the laptop: no change.
  • /var/crash contains _usr_libexec_gvfsd-mtp.1000.crash
  • 1
    Have you tried to use adb-tools? https://askubuntu.com/questions/1363298/adb-command-not-found-after-installed-it/1363318#1363318 – CrazyTux Oct 08 '21 at 08:16
  • https://wiki.archlinux.org/title/Media_Transfer_Protocol – nutty about natty Oct 08 '21 at 08:17
  • @CrazyTux No... ideally, I wouldn't want to have to install anything other than what's included in standard Ubuntu (20.04); I just need to find a way to cleanly reset the phone's connection. Incidentally, I have the same phoen twice (Samsung S10e) and only one of them has the issue - after messing up the mounting/unplugging some time ago. The other device continues to work normally... – nutty about natty Oct 08 '21 at 08:20
  • /run/user/1000/gvfs$ ls stays blank, as if it were still waiting for the info to come through; if I then unplug the phone, it says ls: cannot access 'mtp:host=SAMSUNG_SAMSUNG_Android_R38MB............ – nutty about natty Oct 08 '21 at 08:23
  • 1
    well i think adb is the right tool for that aka Android Debug Bridge, check out this topic it might be helpful https://developer.android.com/studio/command-line/adb – CrazyTux Oct 08 '21 at 08:25
  • @CrazyTux OK, is the link to the zip you provide in your answer the most official way to do it, or is there some equivalent in official Ubuntu channels? – nutty about natty Oct 08 '21 at 08:30
  • https://askubuntu.com/questions/34702/how-do-i-set-up-android-adb seems in need of an update for 2021... – nutty about natty Oct 08 '21 at 08:35
  • try to install it by the topic answers, first try apt install android-tools-adb (did not worked for me), i installed adb with downloading the zip file like the answer i posted, the link to the zip file in my answer is the official link from the SDK Platform tools website like here https://developer.android.com/studio/releases/platform-tools, here is the best guide i found for adb: https://www.xda-developers.com/install-adb-windows-macos-linux/ – CrazyTux Oct 08 '21 at 08:37
  • sudo apt-get install android-tools-adb vs. sudo apt-get install adb – nutty about natty Oct 08 '21 at 08:40
  • Make sure you select the MTP profile for the USB connection on your phone. This can be done by showing notifications and then tapping the USB notification. – svin83 Oct 14 '21 at 08:44

2 Answers2

0

I have problems too with mounting Android 11 (Motorola G20) on Ubuntu 20.04 LTS. It only works if I first select on the phone: USB Virtual Drive, which mounts an almost empty CD drive, then select on the phone: MTP, which then succeeds and shows the files from the phone.

Maybe this workaround works also for you.

Roland
  • 194
0

While this may be a good solution (which I didn't yet try) a perhaps simpler and reliable solution for me was / is to use a standard USB flash drive (and, if needed, a USB-C/A adapter) instead of directly conneting to a PC / Ubuntu; this way, the drive is handled by Android directly and no need to get MTP to work...


Further links (including (Samsung-?)related bugs):