I just purchased a Olympus camera, and while I really like the camera, I
have to say:

An Olympus Camedia D-100/Brio D-100/C-1 camera does not work with
usb-storage. At best, hacking unusual_devs.h to identify the camera as a
SDDR-09 devices allows the SCSI subsystem to see the device, but errors
on detecting the size of the partition and bails.

So, with that in mind, I went out and bought a Sandisk SDDR-09
SmartMedia reader, upgraded my RedHat 6.2 system to 2.4.5, did the
kernel configuration (including Changing linux/drivers/usb/Config.in to
include the SDDR-09 driver), hacked a little more on unusual_devs.h
(apparently I have a different vendor/product ID than what is currently
listed), recompiled, rebooted, and mounted /dev/sda1 to /mnt/camera. and
everything worked as advertized. Hooray for me!

The one thing that bugged me, though, was changing the ram cards. I had
to unmount the the device, and 'rmmod usb-storage', change the card,
'insmod usb-storage', and then mount the device again. I'm too lazy for
that. So here's a way to have everything happen automatically when
changing SmartMedia cards. If there's a better way, someone let me know.

1. First off, this assumes that you have a working linux 2.4.5 system,
with a working usb-storage module that can read a SDDR-09 device.
http://www.theneals.net/linux/SDDR09-HOWTO for more info on how to do
that. 'usb-storage' must be compiled as a kernel module.

2. Create a /sbin/mount.usbfs shell script that contains the following
(ignore the <SNIP!> lines):

<SNIP!>
#!/bin/sh
/sbin/rmmod usb-storage
/sbin/modprobe --autoclean usb-storage
/bin/mount -t vfat $1 $2 $3 $4 $5
<SNIP!>

This will be used by the 'mount' command

3. Mount the SDDR-09 like "/sbin/mount -t usbfs /dev/sdX /mnt/camera"
where '/dev/sdX' is the SCSI device that usb-storage detected the device
at, and '/mnt/camera' is any existing directory where you want to mount
the device.

4. If you are REALLY lazy like myself, setup autofs support in your
kernel, install the 'autofs' package for RedHat or Debian, and make sure
the following is in your /etc/auto.mnt file:

camera          -fstype=usbfs,ro,nosuid,nodev   :/dev/sda1

using appropriate names and devices where appropriate.


So, right now, all I have to do is type "cd /mnt/camera" and the
SmartMedia card is mounted and I can do my business. After the leave the
directory, it unmounts itself after a few seconds, and I can pull the
card. Insert new card, and repeat.

Hope this helps someone.

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
http://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to