LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-29-2004, 04:16 PM   #1
bluefire
Member
 
Registered: Oct 2003
Distribution: Mandrake 10
Posts: 160

Rep: Reputation: 30
Thumbs down digital camera: "Could not claim the USB device"


Hey folks, my digitial camera has encountered weirdness since I upgraded from Mandrake to Debian. I have gphoto2 installed, and gtkam as the frontend.

As a regular user, gtkam cannot initialize the camera, and gphoto2 --summary gives me:

*** Error ***
An error occurred in the io-library ('Could not claim the USB device'): Could not claim interface 0 (Operation not permitted). Make sure no other program or kernel module (e.g. dc2xx or stv680) is using the device and you have read/write access to the device.

If I run either as root, I can mount the camera succesfully.

I don't wish this to be a solution, however, since I don't wish the rest of my family to have root access, whereas they should be able to upload the photos from the camera. The model is a Canon Powershot A20.

(Preemptively Mount /dev/sda1 /mnt/camera gives me: Not a valid block device.

Thanks
 
Old 02-29-2004, 07:02 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Debian probably has something chmoded funny, what device is the camera getting assigned? Check "dmesg" to find out the /dev/ node name that the camera gets assigned to... its something weird I think, not just mass storage /dev/sda like normal USB toys...

Just paste in the chunk of "dmesg" at the end during the camera device scan.

Cheers,

Finegan
 
Old 02-29-2004, 09:33 PM   #3
bluefire
Member
 
Registered: Oct 2003
Distribution: Mandrake 10
Posts: 160

Original Poster
Rep: Reputation: 30
I don't think this is providing the info you're looking for:

hub.c: new USB device 00:01.2-1.4, assigned address 3
usb.c: USB device 3 (vend/prod 0x4a9/0x304e) is not claimed by any active driver.

I read somewhere else that Canons don't register as block devices, so it could very well be /dev/sda1

Last edited by bluefire; 02-29-2004 at 09:35 PM.
 
Old 02-29-2004, 09:42 PM   #4
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
That's the output in "dmesg" if you mount the camera as root?

This is a little odd, not getting claimed by an active driver but being read right makes me think its using libusb to direct access the device from userland, which in order to get joe user access means monkeying with an fstab entry in /proc, which might be covered under the docs at gphoto2, maybe...

Cheers,

Finegan
 
Old 12-04-2007, 12:38 AM   #5
nobtiba
Member
 
Registered: Jan 2007
Posts: 40

Rep: Reputation: 0
Quote:
Originally Posted by bluefire View Post
Hey folks, my digitial camera has encountered weirdness since I upgraded from Mandrake to Debian. I have gphoto2 installed, and gtkam as the frontend.

As a regular user, gtkam cannot initialize the camera, and gphoto2 --summary gives me:

*** Error ***
An error occurred in the io-library ('Could not claim the USB device'): Could not claim interface 0 (Operation not permitted). Make sure no other program or kernel module (e.g. dc2xx or stv680) is using the device and you have read/write access to the device.

If I run either as root, I can mount the camera succesfully.

I don't wish this to be a solution, however, since I don't wish the rest of my family to have root access, whereas they should be able to upload the photos from the camera. The model is a Canon Powershot A20.

(Preemptively Mount /dev/sda1 /mnt/camera gives me: Not a valid block device.

Thanks
Hi Bluefire, I would like to know your solution if you solved it. Could you help me please, I got the same thing with my Aiptek Pencam
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"dd" to image a digital camera jduke Linux - General 2 09-16-2004 02:45 AM
"Unable to open USB device "usb://hp/LaserJet%201000": No such device" lordshipmayhem Mandriva 2 08-08-2004 04:56 PM
Serial digital camera and "Digikam" HCLogo Linux - Hardware 0 05-21-2004 09:59 AM
unable to mount USB camera: "No medium found" in Fedora Core 2 meonkeys Fedora 0 05-20-2004 02:35 PM
Mounting a digital camera as a USB device??? Serenity Linux - Hardware 13 03-17-2004 01:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration