On Tue, 31 Aug 2004 16:43:54 +1200, Steve Holdoway <[EMAIL PROTECTED]> wrote:
> 
> 
> Alasdair Tennant wrote:
> 
> >On Fri, 27 Aug 2004 19:02:49 +1200 (NZST)
> >Roger Searle <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >>Yep, got that done.  On the "to do" list (way down it, actually, given
> >>my linux abilities) is getting my camera going.  I've got lots of
> >>
> >>
> >
> >Could be as simple as plugging the USB in and mounting it.  My Olympus does this.
> >
> >mount -t vfat /dev/sda1 /camera
> >
> >Sometimes it's sdb1, or sdc1, I can't work out why.  Try it several times on 
> >different occasions, 'cos sometimes you will get a spurious 'invalid block device' 
> >response.  Subject for another question.
> >
> >Once the camera is mounted, you can view, move, copy and delete files at will.
> >
> >
> >
> >
> Just been to a customer who uses pen usb devices for backup of specific
> data. Their devices ended up as /dev/sde1 and /dev/sdf1... different
> ones for different makes of pen device.
> 
> My worry is that they will reset after a reboot, and start counting from
> sda1 ( well sdb1 in this case as there's a scsi disk in there). I hope not!
> 
> I built a disk backup where it installed/uninstalled the required
> modules for usb around it, which would easily customise. It would make
> it a more manual process, but here it is ( 2.6.x kernel, debian, usb 2.0
> )...
> 
> modprobe usbcore
> modprobe ehci-hcd
> modprobe usb-storage
> sleep 1 # Do not remove!
> modprobe sd_mod
> 
> mount -t vfat /dev/sda1 /usbdisk
> 
> umount /usbdisk
> rmmod sd_mod
> rmmod usb-storage
> rmmod ehci-hcd
> rmmod usbcore
> 
> 
> Steve
> 
> 

If you're using a 2.6 kernel you could look at using udev

It can be configured to give a specific device type (based on things
like vendor name) as a specific device

putting an entry like 

BUS="scsi", SYSFS_vendor="KINGMAX*", NAME="myusbkey%n"

in udev.conf will automagically create a /dev/myusbkeyX  when the
device is plugged in

We use it for identifying a config USB key as opposed to the usb backup drive


-- 
Sass | Nak

Reply via email to