9

I cannot transfer photos and videos from the SD card in my phone (Gallaxy S5 Neo). I plug in the phone, tap "Allow" to transfer files and I can then see the phone mounted in Nautilus. I go to Card/DCIM/Camera in Nautilus and the spinning wheel shows up. Then it takes minutes to display the contents of the folder. When I click on one of the files Nautilus freezes and a "force quit" window shows up.

It seems to be related to a recent update as I was able to transfer files on Ubuntu 17.10 before. I've tried rebooting both my phone and my computer. Any suggestions to transfer the files via USB cable?

  • 2
    I have the same problem in Xubuntu using nautilus or thunar or even when accessing the files from the command line. Seems to be a problem with the mtp library. If I remove all files with ( or ) braces then loading a large dir is still slow but works. I also did not find any other mitigation so far. One alternative is github.com/whoozle/android-file-transfer-linux. I was able to successfully list and transfer using this tool. However finding and OS-integrated fix would be better. – Juve Mar 16 '18 at 19:23
  • 1
    I found a related error report here sourceforge.net/p/libmtp/bugs/1765 I guess it the current state libmtp is not usable with many android devices as ...(0).jpg file names are really common after editing files, etc. Note that the above mentioned android-file-transfer (aft) also provides aft-mtp-mount which you can use to mount the device and use your favorite file browser – Juve Mar 16 '18 at 20:30
9

I have a similar issue with a Galaxy S6. I discovered that some images get filenames with parentheses at the end, like ...(0).jpg. It seems like Nautilus hangs when trying to list those images and ultimately fails. I moved them to a new directory on the phone, and Nautilus was noticeably faster in loading DCIM/Camera directory. I then tried to load the new directory with < 20 images with parentheses and Nautilus failed again. Renaming the files to remove the parentheses fixed everything.

  • 1
    how are you supposed to change the filenames? – chuse Mar 9 '18 at 10:32
  • I renamed them on the phone – frenesim Aug 26 '18 at 11:09
  • I can confirm that it's the same issue with Galaxy S7 smartphone – maxhb Apr 19 at 22:12
  • The problem with parentheses in filenames slowing down folder acces seems still to exist in Ubuntu 18.04 – maxhb May 1 at 6:25
0

I had a similar problem with my Galaxy S8 in Ubuntu 18.04. I once clicked the Camera folder, nautilus didn't respond and then even after removing and plugging device back, none of the folders in phone were loading. I removed and reinstalled libmtp, didn't work. Then I removed and reinstalled nautilus, and all folders except DCIM/Camera were working. After moving 20 or so files with "(" and ")" in their names to another folder with file manager on my phone, DCIM/Camera was too opening without any problem.

TL;DR: Get rid of files with parentheses in their name.

If that does not work, try removing and reinstalling nautilus.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.