Linux - HardwareThis 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.
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.
I have this Canon PowerShot A60 digital camera, and was wondering how I make the kernel identify it as a usb mass storage device, so I can mount the cf-card and get the contents. I'm running RedHat 9 with 2.4.20-20.9smp kernel.
This is what I get in /var/log/messages when I connect my camera:
Nov 27 22:36:50 pc1 kernel: hub.c: new USB device 00:1d.0-2, assigned address 1
Nov 27 22:36:50 pc1 kernel: usb.c: USB device 1 (vend/prod 0x4a9/0x3074) is not claimed by any active driver.
Nov 27 22:36:53 pc1 /etc/hotplug/usb.agent: ... no modules for USB product 4a9/3074/1
when i disconnect it:
Nov 27 22:38:27 pc1 kernel: usb.c: USB disconnect on device 00:1d.0-2 address 1
Nov 27 22:38:27 pc1 kernel: ide-floppy driver 0.99.newide
Nov 27 22:38:27 pc1 modprobe: modprobe: Can't locate module ide-disk
nov 27 22:38:28 pc1 devlabel: devlabel service started/restarted
How can I compile the kernel to support the camera?
(Disclaimer: not a Red Hat user nor a Canon Powershot owner, so this is my best guess.)
Your kernel probably has support for it already. You can peruse your /boot/config file to see if you have usb_storage enabled (under the USB Class Drivers section).
Usually, these things are detected with SCSI emulation. If you see /proc/scsi/usb-storage-0 while your camera is connected, then you can probably mount it. cat the files under /proc/scsi/usb-storage-0 and cat /proc/scsi/scsi. These files indicate how your camera is identified.
If your camera is detected as /dev/sda, try mount -t vfat /dev/sda1 /mnt/camera (mkdir /mnt/camera first).
I use a USB pen drive adaptor for CF cards. Think I bought it on eBay for under $20. Anyway, I don't have to worry whether the camera, or MP3 player, or whatever, is supported directly. Works without any special drivers under Linux and Windows. A whole lot easier to carry around when I just need a portable storage device too. Plus I can upgrade it instead of having to buy another pen drive. Takes any size CF as well as microdrives.
Your advice seemed to work; I can access an Olympus C-5000 like a USB drive (at least that is how it appears..)
Anyway, a couple of questions.
1) I have a link to the camera on my Desktop that is an executable file, containing the mount command and mountpoint as you described. Rather than having another file to unmount in a similar fashion, could you suggest a more elegant solution?
2) I have a camera link which opens the directory (i.e the camera) after linking to the camera (above)- could I incorporate that with step 1) somehow?
It depends on your desktop: KDE, Gnome, etc. KDE allows you to have drive icons that mount/unmount; boot a Knoppix LiveCD for an example of this on KDE.
However, I'm mostly a fluxbox guy, so I can't help you much with this.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.