LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-07-2003, 01:08 PM   #1
Erwan
LQ Newbie
 
Registered: Jul 2003
Location: Tokyo
Distribution: Gentoo
Posts: 3

Rep: Reputation: 0
usb mass storage


Hello.

I have a digital camera that supports mass storage ; I use a kernel 2.4.21 from kernel.org (no patchs).

My camera is recognized as a usb peripheral (I can see it with lsusb) but a scsi device should be created, it is not. Note that I included SCSI emulation in my kernel.

My distribution is a Gentoo - how could I make my camera work ?
 
Old 07-07-2003, 03:43 PM   #2
0x4B
Member
 
Registered: May 2003
Location: Nashville TN, USA
Distribution: Debian (I'm unstable)
Posts: 117

Rep: Reputation: 15
unless you're using devfs, the scsi device won't be created. You'll have to create it ahead of time, and when the camera is recognized and setup as a scsi drive, it will be bound to the scsi device.
When you say "isn't created" I'm assuming that you mean /dev/scd? doesn't exist
 
Old 07-07-2003, 04:18 PM   #3
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
Maybe some of these are useful:

USB Mass Storage Devices (Compact Flash Card Readers) in Linux
Mass Storage Devices
Linux USB Support for Casio QV 3/2x00/3x00/4000/8000 Digital Still Cameras
 
Old 07-07-2003, 06:07 PM   #4
cropcircle
Member
 
Registered: Jun 2003
Location: Netherlands
Distribution: Red Hat Linux 9, FreeBSD 4.8, Knoppix 3.2
Posts: 182

Rep: Reputation: 30
Take a look at :
http://gphoto.sourceforge.net/

If you have this program on your computer, use "gphoto2 --list-cameras" to get an overview of supported camera's. Some camera's might be accessible as an USB device.

What does "dmesg |tail" say _after_ you've plugged in your USB camera?
 
Old 07-07-2003, 10:05 PM   #5
Erwan
LQ Newbie
 
Registered: Jul 2003
Location: Tokyo
Distribution: Gentoo
Posts: 3

Original Poster
Rep: Reputation: 0
gphoto does not support my camera (a Kyocera S3x)

From dmesg:

hub.c: new USB device 00:1d.0-1.3, assigned address 5
usb-storage: act_altsettting is 0
usb-storage: id_index calculated to be: 59
usb-storage: Array length appears to be: 74
usb-storage: USB Mass Storage device detected
usb-storage: Endpoints: In: 0xd42ae6b4 Out: 0xd42ae6a0 Int: 0xd42ae6c8 (Period 255)
usb-storage: Found existing GUID 048201000000000140010711
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 5
 
Old 07-07-2003, 10:09 PM   #6
Erwan
LQ Newbie
 
Registered: Jul 2003
Location: Tokyo
Distribution: Gentoo
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by 0x4B
unless you're using devfs, the scsi device won't be created. You'll have to create it ahead of time, and when the camera is recognized and setup as a scsi drive, it will be bound to the scsi device.
When you say "isn't created" I'm assuming that you mean /dev/scd? doesn't exist
Yes, I mean that /dev/scd? does not exist. I have a /dev/scsi empty directory. Actually I'm using devfs, and it properly create the device for my external dvd drive (I have a laptop) - at least when plugged before booting.

Maybe my problem comes from hotplug...
 
Old 07-08-2003, 06:39 PM   #7
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
True USB mass storage devices act like removable SCSI harddisks, and as such would be under /dev/sdX rather than /dev/scdX. Plug in your camera and type cdrecord -scanbus. That will output any and all devices that are on your scsi buses (ide or usb, or real scsi). If you see mention of your device, then it has been recognised - this does not mean, however, that you can definitely access your photos. If you have no other scsi disk devices (no pendrives, no zip drive, nothing) then you should notice /dev/sda and most likely /dev/sda1 (if not, then as root run fdisk -l /dev/sda presuming sda exists). If you're this far and all is well, you can try mounting it mount -t vfat /dev/sdXX /mnt/camera (make sure you have already made the directory /mnt/camera). Voila.

I stated above that even though things might look rosey, they can go wrong. I recently bought a nice digital camera which was recognised as a USB mass storage, and indeed the /dev/sda entry was there... however, the camera didn't allow access to the partitions, so I still couldn't get to the photos. A few quid/bucks later, I had a USB card reader and all is well.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB Mass Storage Daniboy Linux - Software 10 09-12-2005 09:30 AM
USB Mass storage. vexer Linux - Software 2 09-05-2004 10:00 PM
USB mass storage Roy-Svork Linux - Hardware 9 09-24-2003 05:34 PM
USB Mass Storage Zebee Linux - Hardware 2 08-03-2003 09:17 PM
usb mass storage mohapi Linux - Hardware 3 06-03-2003 01:44 AM

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

All times are GMT -5. The time now is 07:15 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