Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: Camera auto-mounted, but cannot download photos with "Import Photos"

  1. #1
    Join Date
    Dec 2004
    Location
    Switzerland
    Beans
    85
    Distro
    Ubuntu

    Camera auto-mounted, but cannot download photos with "Import Photos"

    Hello,

    In Hardy Heron this worked without any problems: when I plugged in the camera (Canon S5 IS) the "Import Photos" dialog would appear and I could import the photos without any problems. However, the camera was not auto-mounted (this is not a problem for me).

    Now after upgrading to Intrepid Ibex, when I plug in the camera, it is auto-mounted and when the "Import Photos" dialog appears I get the following error message:
    Code:
    An error occurred in the io-library ('Could not lock the device'): Camera is already in use.
    Any ideas? Yes, I can umount the volume, but this is not tidy. Is there a way to turn off auto-mount for the camera? Or better yet, can the "Import Photos" work nicely when the camera is mounted?

  2. #2
    Join Date
    Jul 2005
    Location
    Belgium
    Beans
    142

    Re: Camera auto-mounted, but cannot download photos with "Import Photos"

    I experienced the same problem as you do.

    It seems that gvfs automatically mounts the camera and f-spot unmounts it when photographs are being imported. Gthumb (which downloaded your pictures in Hardy) doesn't seem to be able to unmount.

    I figured out how to manually unmount my camera in gvfs.

    You get a list of the mounted devices with "gvfs-mount -l"
    With your camera inserted, the command outputs a line similar to this: "Mount(0): Nikon Corp. NIKON DSC D40 -> gphoto2://[usb:002,019]/"

    If I wanted to unmount the volume I could type "gvfs-mount -u gphoto2://[usb:002,013]/"
    But since the device number would change every time, you'd better use this command "gvfs-mount -s gphoto2". It unmounts all volumes with "gphoto2" in it (which will be your cameras).

    So, to unmount the volume and import when the camera is connected I checked "Import digital photographs when connected" in Preferences > Removable drives and media. In Command I typed "gvfs-mount -s gphoto2 & gnome-volume-manager-gthumb %h"
    This will unmount the camera and start gthumb, as you were used to.

    For now, this solution seems to work most times. The command doesn't change anything permanent either, so it's safe to use.

    I hope It works for you too
    Designed for Ubuntu GNU/Linux

  3. #3
    Join Date
    Dec 2004
    Location
    Switzerland
    Beans
    85
    Distro
    Ubuntu

    Re: Camera auto-mounted, but cannot download photos with "Import Photos"

    Quote Originally Posted by Denis View Post
    ...
    So, to unmount the volume and import when the camera is connected I checked "Import digital photographs when connected" in Preferences > Removable drives and media. In Command I typed "gvfs-mount -s gphoto2 & gnome-volume-manager-gthumb %h"
    This will unmount the camera and start gthumb, as you were used to.

    For now, this solution seems to work most times. The command doesn't change anything permanent either, so it's safe to use.

    I hope It works for you too
    Yes, this works brilliantly for me. Thanks!!!!

  4. #4
    Join Date
    Dec 2004
    Location
    Atlanta, GA USA
    Beans
    7,257
    Distro
    Ubuntu Development Release

    Re: Camera auto-mounted, but cannot download photos with "Import Photos"

    an easier way is to just right click the camera icon and unmount. gthumb will then import. worked for me.

  5. #5
    Join Date
    Oct 2007
    Beans
    12
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Camera auto-mounted, but cannot download photos with "Import Photos"

    Along the same lines -- I'm trying to prevent Ubuntu Intrepid from auto-mounting any USB device as a camera, specifically my iPhone. I have been on Gutsy for almost a year and it did not auto-mount the iPhone, but now it does on Intrepid. I'm sure this is a nice feature for some, but I sync my iPhone with iTunes inside VMWare and it is very frustrating to have Ubuntu and VMWare fighting over the iPhone every few seconds, opening all sorts of error boxes in the background that I have to minimize other windows to get to.

    Is there something I can blacklist in modprobe.d, or does anyone know where the "Do not automatically mount cameras" option was moved to in Intrepid? You can see the original post relating to the iPhone here:

    http://ph.ubuntuforums.com/showthread.php?t=978623&

    Thanks!

  6. #6
    Join Date
    Jul 2005
    Location
    Belgium
    Beans
    142

    Re: Camera auto-mounted, but cannot download photos with "Import Photos"

    Quote Originally Posted by pumrum View Post
    Along the same lines -- I'm trying to prevent Ubuntu Intrepid from auto-mounting any USB device as a camera, specifically my iPhone. I have been on Gutsy for almost a year and it did not auto-mount the iPhone, but now it does on Intrepid. I'm sure this is a nice feature for some, but I sync my iPhone with iTunes inside VMWare and it is very frustrating to have Ubuntu and VMWare fighting over the iPhone every few seconds, opening all sorts of error boxes in the background that I have to minimize other windows to get to.

    Is there something I can blacklist in modprobe.d, or does anyone know where the "Do not automatically mount cameras" option was moved to in Intrepid? You can see the original post relating to the iPhone here:

    http://ph.ubuntuforums.com/showthread.php?t=978623&

    Thanks!
    I've looked around for a moment and it seems indeed that some options in "removable drives and media" have disappeared. Also I checked the "Configuration editor" and I found the settings that appear in "removable drives and media".

    You find these settings under desktop > gnome > volume_manager. All the options are there, including automount_drives and _media. Maybe unchecking automount_media stop the automount of your iPhone? I don't know if you find that a good solution, because it will probably stop automounting of any USB disc. I think at least you'll see all the options that were previously available in "removable drives and media".
    Designed for Ubuntu GNU/Linux

  7. #7
    Join Date
    Oct 2007
    Beans
    12
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Camera auto-mounted, but cannot download photos with "Import Photos"

    Quote Originally Posted by Denis View Post
    I've looked around for a moment and it seems indeed that some options in "removable drives and media" have disappeared. Also I checked the "Configuration editor" and I found the settings that appear in "removable drives and media".

    You find these settings under desktop > gnome > volume_manager. All the options are there, including automount_drives and _media. Maybe unchecking automount_media stop the automount of your iPhone? I don't know if you find that a good solution, because it will probably stop automounting of any USB disc. I think at least you'll see all the options that were previously available in "removable drives and media".

    I went looking for these, but I could not find 'volume_manager' under desktop > gnome. I also searched for camera, mount, gphoto, gvfs, usb, volume -- none of these turned up anything. Are you using Intrepid? It seems like all of the media options have vanished!


    [edit] I also ran 'sudo gconf-editor' as well, just in case some settings were hidden from regular users. There were no additional options presented when logged in as root.
    Last edited by pumrum; December 3rd, 2008 at 06:19 PM. Reason: updated info

  8. #8
    Join Date
    Jul 2005
    Location
    Belgium
    Beans
    142

    Re: Camera auto-mounted, but cannot download photos with "Import Photos"

    Quote Originally Posted by pumrum View Post
    I went looking for these, but I could not find 'volume_manager' under desktop > gnome. I also searched for camera, mount, gphoto, gvfs, usb, volume -- none of these turned up anything. Are you using Intrepid? It seems like all of the media options have vanished!


    [edit] I also ran 'sudo gconf-editor' as well, just in case some settings were hidden from regular users. There were no additional options presented when logged in as root.
    I am using Intrepid, but I've updated from Hardy. Maybe that's why I still have these settings.

    I'm not sure if all the settings work. You could try to make a "volume_manager" directory and add automount_media (unchecked box). But honestly I think you'd better find out which program mounts your iPhone. If it is gvfs, then the method I described could be used to unmount it every time.

    There must be a better solution however, but I can't really help you with that.
    Designed for Ubuntu GNU/Linux

  9. #9
    Join Date
    Jun 2007
    Location
    Gloucester, UK
    Beans
    57
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Camera auto-mounted, but cannot download photos with "Import Photos"

    Hi folks

    With a fresh install of intrepid there is no
    System-->Preferences--> Removable Devices and Media

    after some hunting I found that this is now in NAUTILUS, under
    Edit--> Preferences --> Media tab

    You can change the photos drop down to a different program. Only problem is that under 'open with other application' and then custom command, you can't put a whole command in - only a single appliction

    To get round this I did:
    create file in home folder called 'get-photos'
    containing <snip>

    #!/bin/bash
    gvfs-mount -s gphoto2
    gthumb --import-photos

    <end of snip>

    then do
    $ chmod +x get-photos

    then back in nautilus 'open with other applicaition' 'custom command', use the command /home/username-/get-photos

    Bosh! fixed

    Thanks to Denis for the hard (by my standards!!) gvfs bit!

  10. #10
    Join Date
    Jul 2005
    Location
    Belgium
    Beans
    142

    Re: Camera auto-mounted, but cannot download photos with "Import Photos"

    That sure is useful information zzztownsend! I had no idea the dialog wasn't there in Intrepid. The preferences in nautilus seem very complete, I wished the developers had placed them somewhere more visible.

    Nice of you to include a bash script. I think this can really help people
    Designed for Ubuntu GNU/Linux

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •