LinuxQuestions.org
Visit Jeremy's Blog.
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 06-30-2005, 04:46 PM   #1
dosnlinux
Member
 
Registered: Mar 2005
Distribution: slackware 11, arch 2007.08
Posts: 154

Rep: Reputation: 30
Trouble mounting camera


Hello, I'm having trouble getting my camera working.

It's a Vivitar Vivicam 20. It uses the same drivers(at least in windows)
as the Vivicam 10. I read that the vivicam 10 can be used like a jump drive to get the pictures off of it.

I can use my jump drive, but for some reason I can't mount my camera

Here's my fstab:
Code:
/dev/hda5        swap             swap        defaults         0   0
/dev/hda1        /                reiserfs    defaults         1   1
/dev/hdb1        /packages        reiserfs    defaults         1   2
/dev/cdrom       /mnt/cdrom       iso9660     noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      vfat        noauto,owner     0   0
/dev/sda1        /mnt/flash       vfat        noauto           0   0
/dev/sda1        /mnt/camera      auto        noauto           0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
the result of dmesg | grep usb before I plug in the camera
Code:
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb.c: new USB bus registered, assigned bus number 1
usb.c: USB device 2 (vend/prod 0x46d/0xc215) is not claimed by any active driver.
usb.c: registered new driver hiddev
usb.c: registered new driver hid
input: USB HID v1.10 Joystick [Logitech Logitech Extreme 3D Pro] on usb1:2.0
dmesg | grep usb after camera hookup (hot plugging is enabled)
Code:
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb.c: new USB bus registered, assigned bus number 1
usb.c: USB device 2 (vend/prod 0x46d/0xc215) is not claimed by any active driver.
usb.c: registered new driver hiddev
usb.c: registered new driver hid
input: USB HID v1.10 Joystick [Logitech Logitech Extreme 3D Pro] on usb1:2.0
usb.c: USB device 3 (vend/prod 0xd64/0x1021) is not claimed by any active driver.
my camera was detected at device 3, but not nearly to the extent that the joystick was
Just to be safe I ran lsusb
Code:
Bus 001 Device 001: ID 0000:0000  
Bus 001 Device 003: ID 0d64:1021 DXG Technology Corp. 
Bus 001 Device 002: ID 046d:c215 Logitech, Inc.
I assume that the DXG Technology Corp. is the camera since it says it's device 003
shouldn't it say something more along the lines of Vivitar?

I now tried to mount the camera and got this error message.
Code:
mount: /dev/sda1 is not a valid block device
So, I tried several different sd* devices with the same result

From previous experiance with a parallel port zip drive I decided to modprobe usb-storage.(I don't have to do this with the jump drive)
I still got the same results.

what am I missing?

Last edited by dosnlinux; 06-30-2005 at 04:50 PM.
 
Old 06-30-2005, 06:21 PM   #2
aikidoist72
Member
 
Registered: Jan 2005
Location: Australia
Distribution: Slackware Archlinux FreeBSD
Posts: 218

Rep: Reputation: 30
Firstly, I would do some research regarding your camera, and any drivers that may exist for it in Linux. A kernel recompile may be likely to patch the kernel to support the camera.

Secondly:
Code:
mount: /dev/sda1 is not a valid block device
This is the error message I have recieved from trying to mount a 32MB thumb drive. I have tried mounting this on 4 Distro's and thought I was doomed to never be able to use a thumb drive with linux. I was given a 128MB thumb drive 2 days ago, and after plugging it in, and mounting it...... it worked. Whether this has any bearing, I don't know.

Thirdly: What does your fstab file say?

Cheers
 
Old 07-01-2005, 01:03 PM   #3
dosnlinux
Member
 
Registered: Mar 2005
Distribution: slackware 11, arch 2007.08
Posts: 154

Original Poster
Rep: Reputation: 30
I checked the Vivitar website for some drivers for Linux, but the only thing remotely close to linux drivers were some Mac OS drivers.

My fstab is in the origional post.

And oddly enough you may have something with the 32MB flash drive. The camera has 8 MB Internal Flash Memory, and my Flash drive has 128MB. Maybe the kernal doesn't support USB-Storage of 32MB or less

If I did need to recompile my kernal what would I be looking for to change?
 
Old 07-01-2005, 06:43 PM   #4
aikidoist72
Member
 
Registered: Jan 2005
Location: Australia
Distribution: Slackware Archlinux FreeBSD
Posts: 218

Rep: Reputation: 30
From Archlinux Wiki:- Hope it can help

Digital Cameras
This document attempts to configure hotplug so that the members of the "users" group can access a digital camera over USB. The aim was to keep this document simple and thus special cases are not covered. However, the content of this document is mainly a summary of http://www.gphoto.org/doc/manual/permissions-usb.html, and people in need of further information may consult this site.
nb: remember to set your camera to ptp-mode(and maybe some cams require mass-storage mode?) The list of cameras that libgphoto2 supports can be found at http://www.gphoto.org/proj/libgphoto2/support.php. If your camera is not listed, you may still be able to use it with linux if the camera acts as if it were just a USB mass storage. There is another article in this Wiki, USB Sticks, that describes this procedure.
Install hotplug and libgphoto2
Verify that you have the necessary packages installed on your system.
# pacman -Q hotplug libgphoto2
You may also download gtkam (a frontend to gphoto2 unless you want to learn yet-another-cmd-line-app.
# pacman -S gtkam
If pacman complains that one or both of the packages is not installed, you can install them with:
# pacman -S hotplug
and/or
# pacman -S libgphoto2
Configuring hotplug
Open a terminal and log in as root
Create or append to usbcam.usermap file by typing
# /usr/lib/libgphoto2/print-usb-usermap >> /etc/hotplug/usb/usbcam.usermap
libgphoto2 offers ready-to-use scripts for hotplug. Copy the script for group access to the correct location
# cp /usr/share/libgphoto2/2.1.5/linux-hotplug/usbcam.group /etc/hotplug/usb/usbcam
You may need to change the path to reflect more recent versions of libgphoto2
Open the newly copied file in your favourite text editor, e.g.
# vi /etc/hotplug/usb/usbcam
and change the line
GROUP=camera
to
GROUP=users
Save and close the file.
Alternatively, you can leave the GROUP set to camera, and add users who should have access to the camera to the camera group on your system. You will also need to create the group.
Make the script executable
# chmod +x /etc/hotplug/usb/usbcam
Test your setup
To test your setup, plug in your camera and turn it on. If it was already plugged in before, turn it off and on again.
List the contents of /proc/bus/usb by typing
# ls -lR /proc/bus/usb
There should be at least one device which doesn't say "root" twice. On my machine, the output looks like so:
...
/proc/bus/usb/004:
total 0
-rw-r--r-- 1 root root 43 Apr 12 16:05 001
-rw-r--r-- 1 root root 43 Apr 12 16:05 002
-rw-r--r-- 1 root root 59 Apr 12 16:05 003
-rw-r--r-- 1 root root 211 Apr 12 16:05 004
-rw-rw---- 1 root users 57 Apr 12 17:58 007
...
Note the last line.
Use your camera in your favourite application
You can now use gphoto2 or a recent version of gthumb to download pictures from your camera. Enjoy!
 
Old 07-02-2005, 08:17 AM   #5
dosnlinux
Member
 
Registered: Mar 2005
Distribution: slackware 11, arch 2007.08
Posts: 154

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by aikidoist72
You can now use gphoto2 or a recent version of gthumb to download pictures from your camera. Enjoy!
I could still use it like a flash drive, right? It's always so time consuming trying to get my pictures off my camera by using a program.

Quote:
It abstracts communication ports and camera protocol, to allow a complete modularity. To support a new communication physical layer (like IEEE1394), just add a new port to libgphoto2_port. To support a new kind a digital camera, just provide a new camlib with the required callbacks.
Also, does libgphoto2 act just like a kernal module to gain access to your camera?
 
Old 07-02-2005, 09:18 AM   #6
aikidoist72
Member
 
Registered: Jan 2005
Location: Australia
Distribution: Slackware Archlinux FreeBSD
Posts: 218

Rep: Reputation: 30
Quote:
I could still use it like a flash drive, right? It's always so time consuming trying to get my pictures off my camera by using a program.
Yes, there are a few ways to accomplish your task. I use digikam, a KDE app which is surprisingly good. Gtkam relies on gnome dependencies. If you want to use the CLI.......


From freshmeat
Quote:
gphoto2 is a command line application which enables you to transfer digital photos from almost any serial-port or USB digital camera. It uses the programming interface provided by libgphoto2.
Whether you need to mount the camera to do this I don't know as I have not tried this method. I will give it a go tomorrow. Try surfing to this site for some handy hints


http://gphoto.org/


Cheers
 
Old 07-20-2005, 01:07 PM   #7
dosnlinux
Member
 
Registered: Mar 2005
Distribution: slackware 11, arch 2007.08
Posts: 154

Original Poster
Rep: Reputation: 30
gphoto worked. My camera was detected as
I had some trouble with it in Knoppix, but after I modprobed imbcam(after I couldn't get it to work I was modprobing anything to do with cameras.)

The only weird thing was when I --get-all-data the files were not in jpg format like I'd expected. It was in raw and ppm format.

and the stuff was at least 60ish MB, and the camera description from the company said the camera only held 8MB.

It also said in the camera description that it didn't have upload capabillity, but I'm going to double check.
 
  


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
Mounting a Digital Camera bleedingturnips Linux - Hardware 2 11-19-2005 06:54 AM
Mounting Digital Camera jeff1500 Slackware 8 12-17-2004 05:52 PM
mounting digital camera Veteq Linux - Newbie 1 04-30-2004 01:19 PM
Digital Camera Mounting Roy-Svork Linux - Hardware 1 03-23-2004 08:39 AM
Mounting Digital Camera matt3333 Slackware 16 10-23-2003 03:32 PM

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

All times are GMT -5. The time now is 08:59 AM.

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