#542124 gvfs-backends: gphoto2 backend confuses multiple stores with same name

Package:
gvfs-backends
Source:
gvfs
Description:
userspace virtual filesystem - backends
Submitter:
Islam Amer
Date:
2015-03-17 19:39:12 UTC
Severity:
normal
#542124#5
Date:
2009-08-17 22:46:23 UTC
From:
To:
I have a sony ericsson C905 mobile that I connect to my laptop using the usb cable and choose "phone mode". This mode exposes
two gphoto mounts for the phone memory and the memory card. However both are named the same, so the information such as free space
of one is reported for both. Unmounting one of them unmounts both.

The main problem is that free space on the phone memory is reported as free space on the memory card, so nautilus refuses to copy stuff
complaining there isn't enough space although there is.

I will include output of several commands to try to clarify the situation :

this is the output of "gphoto2 --storage-info" when the device is plugged in but not mounted by nautilus :
[Storage 0]
description=Phone Memory
basedir=/store_00010001
access=0 Read-Write
type=3 Fixed RAM
fstype=3 Generic Hierarchical
totalcapacity=179892 KB
free=99440 KB
freeimages=0
[Storage 1]
description=Memory Stick (TM)
basedir=/store_00020001
access=0 Read-Write
type=4 Removable RAM
fstype=4 Generic Hierarchical
totalcapacity=7876416 KB
free=4001856 KB
freeimages=0

When mounted in nautilus I get an error message
"Unable to mount Sony Ericsson Mobile Communications AB Sony Ericsson C905
Error initializing camera: -60: Could not lock the device"

and here's what gvfs sees using the command "gvfs-mount -l"
Volume(0): Sony Ericsson Mobile Communications AB Sony Ericsson C905
  Type: GProxyVolume (GProxyVolumeMonitorGPhoto2)
  Mount(0): Sony Ericsson Mobile Communications AB Sony Ericsson C905 -> gphoto2://[usb:001,007]/store_00010001
    Type: GProxyShadowMount (GProxyVolumeMonitorGPhoto2)
Volume(3): Sony Ericsson Mobile Communications AB Sony Ericsson C905
  Type: GProxyVolume (GProxyVolumeMonitorGPhoto2)
  Mount(0): Sony Ericsson Mobile Communications AB Sony Ericsson C905 -> gphoto2://[usb:001,007]/store_00020001
    Type: GProxyShadowMount (GProxyVolumeMonitorGPhoto2)

trying to get information about each using "gvfs-info -f gphoto2://[usb:001,007]/store_00010001"
attributes:
  filesystem::size: 184209408
  filesystem::free: 101826560
  filesystem::type: gphoto2
  filesystem::readonly: FALSE
  filesystem::use-preview: 1
  gvfs::backend: gphoto2

and "gvfs-info -f gphoto2://[usb:001,007]/store_00020001
attributes:
  filesystem::size: 184209408
  filesystem::free: 101826560
  filesystem::type: gphoto2
  filesystem::readonly: FALSE
  filesystem::use-preview: 1
  gvfs::backend: gphoto2

Please tell me if you need more info.

Thank you.

#542124#10
Date:
2011-04-17 23:25:31 UTC
From:
To:
I have a similar issue with a digital camera.  This worked perfectly in Lenny,
but has been an issue ever since upgrading to Squeeze.

When I plug the camera in, Nautilus automounts and I get two identical windows
that open telling me that there is a camera plugged in plus one additional
window containing an error message that says, "Unable to mount Kodak
EasyShare CX74330 Zoom Digital Camera Error initializing camera: -60: Could
not lock the device"

When you open with gThumb, sometimes it reads the contents on the SD memory
card and sometimes it only reads the internal memory card of the camera
itself.  I usually have to plug and unplug several times to get it to do what
I want.

Here is the output of what the previous poster listed.

When mounted in Nautilus:

steven@debtop:~$ gphoto2 --storage-info

*** Error ***
An error occurred in the io-library ('Could not lock the device'): Camera is already in use.
*** Error (-60: 'Could not lock the device') ***

When NOT mounted in Nautilus:

steven@debtop:~$ gvfs-mount -l
Drive(0): CD/DVD Drive
  Type: GProxyDrive (GProxyVolumeMonitorGdu)
Volume(0): KODAK EasyShare CX7430 Zoom Digital Camera
  Type: GProxyVolume (GProxyVolumeMonitorGPhoto2)
Volume(1): KODAK EasyShare CX7430 Zoom Digital Camera
  Type: GProxyVolume (GProxyVolumeMonitorGPhoto2)
steven@debtop:~$ gvfs-mount -l
Drive(0): CD/DVD Drive
  Type: GProxyDrive (GProxyVolumeMonitorGdu)
Volume(0): KODAK EasyShare CX7430 Zoom Digital Camera
  Type: GProxyVolume (GProxyVolumeMonitorGPhoto2)
  Mount(0): KODAK EasyShare CX7430 Zoom Digital Camera -> gphoto2://[usb:002,023]/store_00010001
    Type: GProxyShadowMount (GProxyVolumeMonitorGPhoto2)
Volume(1): KODAK EasyShare CX7430 Zoom Digital Camera
  Type: GProxyVolume (GProxyVolumeMonitorGPhoto2)
  Mount(0): KODAK EasyShare CX7430 Zoom Digital Camera -> gphoto2://[usb:002,023]/store_00020001
    Type: GProxyShadowMount (GProxyVolumeMonitorGPhoto2)
Mount(2): KODAK EasyShare CX7430 Zoom Digital Camera -> gphoto2://[usb:002,023]/
  Type: GDaemonMount
steven@debtop:~$ gvfs-info -f gphoto2://[usb:002,023]/store_00010001
attributes:
  filesystem::size: 252837888
  filesystem::free: 90439680
  filesystem::type: gphoto2
  filesystem::readonly: FALSE
  filesystem::use-preview: 1
  gvfs::backend: gphoto2
steven@debtop:~$ gvfs-info -f gphoto2://[usb:002,023]/store_00020001
attributes:
  filesystem::size: 252837888
  filesystem::free: 90439680
  filesystem::type: gphoto2
  filesystem::readonly: FALSE
  filesystem::use-preview: 1
  gvfs::backend: gphoto2

Another thing that is strange is that I tried to mount the camera with the
SD memory card removed to see if I would still get the two identical
windows mentioned above to still open, and my cameral didn't seem to be
recognized (I waited and no window opened telling me that I plugged in a
camera)

I am using 2.6.38 because the upgrade from 6.0 to 6.0.1 allowed a bug to enter
that made my mouse pointer invisible.  The camera issue was also present with
the original Squeeze kernel (2.6.32)

All of the above issues were not present in Lenny.  Everthing worked perfectly
Please let me know what additional info you need.

#542124#15
Date:
2014-03-11 22:06:36 UTC
From:
To:
Hey,

Could you please still reproduce this issue with newer versions
like 1.12.3-4 or 1.16.3-2 ?

thanks
regards
althaser