LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 12-10-2004, 06:34 PM   #1
jeff1500
Member
 
Registered: Jan 2004
Posts: 46

Rep: Reputation: 15
Mounting Digital Camera


I have Slackware 9.1 and am trying to get a digital camera working
by reading the HOWTO. The sequence is below. The short story is:

/etc/rc.d/init.d/usb: No such file or directory

Can anyone offer any advice?

Thanks.


1. I got the following command block from the USB Digital Camera HOWTO:


echo "Please enter a directory name for the pictures."
read DIRPATH
mkdir picture/$DIRPATH

/sbin/modprobe usb-storage
mount -t vfat /dev/sda1 /mnt/camera
/etc/rc.d/init.d/usb start

mv /mnt/camera/dcim/100msdcf/*.jpg picture/$DIRPATH;
umount /mnt/camera
chown -R your_login_name picture/$DIRPATH


2. When I got to the mount command it said:
mount: /dev/sda1 is not a valid block device

3. So I looked around on the internet and then did this:
(not to say that I know what it means!)

/sbin/modprobe usbcore
/sbin/modprobe usb-storage
/sbin/modprobe usb-uhci

mount -t usbdevfs /dev/sda1 /mnt/camera

This mount command worked.
I saw a couple of small files in the /mnt/camera directory, but no pictures.

4. I continued with the commands from the USB-Camera-HOWTO and entered
/etc/rc.d/init.d/usb start

It says -bash: /etc/rc.d/init.d/usb: No such file or directory

So I looked for /etc/rc.d/init.d/usb and sure enough I couldn't find it.


5. dmesg says this:
usbvideo.c: ibmcam on /dev/video0: canvas=352x240 videosize=352x240

I tried mounting /dev/video0 to /mnt/camera and got the same error
mount: /dev/video0 is not a valid block device

6. Am I mounting successfully? I think I am.

7. Why is there no /etc/rc.d/init.d/usb ?

8. What should I do next?
 
Old 12-10-2004, 07:03 PM   #2
wallison
Member
 
Registered: Jul 2003
Location: MD USA
Distribution: Slackware
Posts: 136

Rep: Reputation: 18
Try /dev/sr0
That's what I use to mount mine.
 
Old 12-11-2004, 01:19 PM   #3
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
you didn't mention what camera you have. I believe some are mountable as plain usb storage devices, while with others you may have to use something like gPhoto2 ? - http://www.gphoto.org/

the sections on USB in the gphoto2 docs may be helpful
http://www.gphoto.org/doc/manual/

also search the device list here:
http://www.linux-usb.org/

if its a usb-storage device and the usb modules are loaded you should be able to mount it, probably as a vfat filesystem using the command you wrote above. make sure the camera is turned on when you try to mount, and you may have to do it as root

there is no /etc/rc.d/init.d in a default slack setup. that tutorial may have been written from a sysv-style distro's perspective
 
Old 12-11-2004, 01:32 PM   #4
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 49
I don't know if this helps, but I use gtkam under Gnome to access my digital camera. I don't think I even have USB Mass-storage compiled.
 
Old 12-11-2004, 02:48 PM   #5
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,223

Rep: Reputation: 86
mount -t vfat /dev/sda1 /mnt/thefolderyouchoosetomountin
should works with at least 50% chances.
 
Old 12-15-2004, 06:53 PM   #6
jeff1500
Member
 
Registered: Jan 2004
Posts: 46

Original Poster
Rep: Reputation: 15
The camera is an old freebe that someone gave me. He got it free when he signed up for earthlink ISP. It goes by the name xirlink. It works okay in broad daylight.

I'm learning how cameras work with Linux. I guess there are two kinds, 1) USB mass storage devices that can be accessed just by mounting, and 2) cameras that need drivers like the ones that come with gphoto2.

It's not a #1, I'm pretty sure it needs a driver, so I installed gtkam/gphoto2/libgphoto2 to see if that would work. I got it installed but it didn't have a driver for this camera.

I started up xsane and it recognizes the camera but I wasn't able to get to any of the images inside the camera. Can xsane look inside for images?

I appreciate the responses.
 
Old 12-15-2004, 08:45 PM   #7
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 49
I don't think you can access the stored images via xsane.

There is lot's of info on xirlink online. This site http://www.linux-usb.org/ibmcam/ has some stuff. You can use the info there to help better identify your camera. Might be easier to find help then.
 
Old 12-17-2004, 05:25 PM   #8
jeff1500
Member
 
Registered: Jan 2004
Posts: 46

Original Poster
Rep: Reputation: 15
That's an interesting web site about xirlink/ibmcam

I have a point an shoot camera, not a web cam.

Look below. It seems to like the ibmcam driver that comes with Slackware 9.1

I couldn't find any images on the camera but it did mount something.

I tried gtkam after "modprobe ibmcam". Nothing to see.

???



jeff@darkstar:~$ cat /proc/bus/usb/devices

P: Vendor=0545 ProdID=8080 Rev= 3.0a
S: Product=USB IMAGING DEVICE
C:* #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=ff Prot=ff Driver=ibmcam

root@darkstar:/home/jeff# mount -t usbdevfs /dev/video0 /mnt/camera
root@darkstar:/home/jeff# cd /mnt/camera
root@darkstar:/mnt/camera# ls
001 devices drivers

There are five images in the camera but nothing to see in the above directory
 
Old 12-17-2004, 05:52 PM   #9
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 49
THe best I can come up with is this:

http://www.linux-usb.org/ibmcam/ibmcamFAQ.html

You'll note that this page is talking about the same camera, since the Vendor and Product ID #s match. Have you tried using it as a webcam to see if that works?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting a Digital Camera bleedingturnips Linux - Hardware 2 11-19-2005 06:54 AM
Digital Camera Mounting Roy-Svork Linux - Hardware 1 03-23-2004 08:39 AM
Mounting a digital camera? the_rydster Slackware 3 03-04-2004 05:06 AM
mounting digital camera true_atlantis Linux - Hardware 4 03-01-2004 02:48 AM
mounting digital camera christer Linux - Newbie 3 09-26-2003 06:32 AM


All times are GMT -5. The time now is 12:36 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration