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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-07-2003, 01:08 PM
|
#1
|
LQ Newbie
Registered: Jul 2003
Location: Tokyo
Distribution: Gentoo
Posts: 3
Rep:
|
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 ?
|
|
|
07-07-2003, 03:43 PM
|
#2
|
Member
Registered: May 2003
Location: Nashville TN, USA
Distribution: Debian (I'm unstable)
Posts: 117
Rep:
|
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
|
|
|
07-07-2003, 04:18 PM
|
#3
|
Member
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707
Rep:
|
|
|
|
07-07-2003, 06:07 PM
|
#4
|
Member
Registered: Jun 2003
Location: Netherlands
Distribution: Red Hat Linux 9, FreeBSD 4.8, Knoppix 3.2
Posts: 182
Rep:
|
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?
|
|
|
07-07-2003, 10:05 PM
|
#5
|
LQ Newbie
Registered: Jul 2003
Location: Tokyo
Distribution: Gentoo
Posts: 3
Original Poster
Rep:
|
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
|
|
|
07-07-2003, 10:09 PM
|
#6
|
LQ Newbie
Registered: Jul 2003
Location: Tokyo
Distribution: Gentoo
Posts: 3
Original Poster
Rep:
|
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...
|
|
|
07-08-2003, 06:39 PM
|
#7
|
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 07:15 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|