Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I copy files from my camera (connected via USB) to the SSD in my laptop a few files get copied and then the copy stalls. I'm not sure why, any ideas or things to investigate appreciated, or bug reports to go and look at.

I have read this answer - the camera (Canon 40D in case that matters) mounts fine using gvfs. I can see the photos in Nautilus, or in the terminal (in /run/user/username/gvfs/... ) and I can copy a few photos, but not many. Using the terminal or Nautilus the process hangs until the camera goes to sleep. Digikam fails to copy any at all, as does Rapid Photo Downloader. Shotwell did manage it in the end, but that is very much a work around for me.

I have disabled thumbnail generation by nautilus. Load average stays about 1 while this is happening, while CPU usage is half idle, half wait (and a little user/sys for other programs). None of the programs at the top of the cpu list in top are related to copying photos. There is not much in the logs - from /var/log/syslog

Dec  2 16:20:52 mishtop dbus[945]: [system] Activating service name='org.freedesktop.UDisks' (using servicehelper)
Dec  2 16:20:52 mishtop dbus[945]: [system] Successfully activated service 'org.freedesktop.UDisks'
Dec  2 16:21:24 mishtop kernel: [ 2297.180130] usb 2-2: new high-speed USB device number 4 using ehci_hcd
Dec  2 16:21:24 mishtop kernel: [ 2297.314272] usb 2-2: New USB device found, idVendor=04a9, idProduct=3146
Dec  2 16:21:24 mishtop kernel: [ 2297.314278] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Dec  2 16:21:24 mishtop kernel: [ 2297.314283] usb 2-2: Product: Canon Digital Camera
Dec  2 16:21:24 mishtop kernel: [ 2297.314287] usb 2-2: Manufacturer: Canon Inc.
Dec  2 16:21:24 mishtop mtp-probe: checking bus 2, device 4: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-2"
Dec  2 16:21:24 mishtop mtp-probe: bus: 2, device: 4 was not an MTP device

This problem has only started recently and I've had all the hardware for ages. I have also recently upgraded to 12.10, though I'm not sure if the problem started when I upgraded or after the upgrade. I also note this similar question but it is currently unanswered and I'm providing more detail

share|improve this question

3 Answers

I suggest you change the USB mode from PTP to mass storage. It should simplify connection problems since USB mass storage is more widely supported.

I had similar problems with Ubuntu 12.10 and a camera which only had PTP mode.

WORKAROUND: If your camera doesn't support mass storage mode, maybe it would be easier to transfer files by removing your memory card from the camera and use a card reader if your computer doesn't have a built-in reader.

share|improve this answer
Is that something I do via Ubuntu or via the camera? If via Ubuntu, how do I do that? – Hamish Downer Dec 2 '12 at 17:51
It's a camera setting. – To Do Dec 2 '12 at 18:05
Thanks for the workaround - that had occurred to me, though I don't currently own a card reader. Research also suggests that the Canon 40D doesn't do mass storage mode, only PTP. Other googling has suggested go-mtpfs. – Hamish Downer Dec 3 '12 at 21:08
There's actually a package in the normal repositories called mtpfs. Maybe it will help. – To Do Dec 3 '12 at 23:53

"Digikam fails to copy any at all" ... you need to unmount the camera, and let digikam handle it and mount it ... this has worked for me

share|improve this answer
1  
Can you expand this to explain how to "let digikam handle" the camera? – Eliah Kagan Feb 28 at 20:56

I am having similar issues but with copying files over SMB from my NAS. I researched some more and it seems the current version of gvfs (in (X)ubuntu 12 LTS) cannot handle too much data (in my case copying hangs after a few hundred megabytes).

I also noticed this was logged as a bug but the latest update I saw was that they are in need for a SMB/gvfs expert to fix this.

See this: https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1075923

A workaround for file servers is to do the copying over FTP, but I guess that doesn't work for cameras.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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