Check out the hotplug framework for information on how to do this dynamically. You can set up a hotplug script such that the device is mounted when it is plugged in, and unmounted when unplugged. You can write your own script to have it be handled exactly how you'd like (permissions, copying files off automatically, mount it to different locations based on the contents of the device, etc...)

I've used this to auto-copy files off my digital camera, intialize USB web cams to a certain framerate/resolution, etc...

-=Scott


Bill Nottingham wrote:
Rolf Dubitzky ([EMAIL PROTECTED]) said:

I have some USB memory keys and would like them to be automagically added to
/etc/fstab like my sony digicam. I tried to figure out how it works with the
digicam (with sony memorystick) and ended at updfstab.
I added following lines to /etc/updfstab.conf

device memkey {
   partition 1
   symlink false
   match   hd "Mobile Disk"
   match   hd "Instant USB Disk"
}

This works in principle, but I can hardly imagine, that I have to figure out
the matching string for every new memory key I plug in my box.

Is editing /etc/updfstab.conf the canonical way to make updfstab aware of
devices, and do I have to do it for every new model of memory key? Isn't
there a more generic way?


Well, you could have it just 'match hd'; this will match everything of this
class.

Bill


------------------------------------------------------- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

_______________________________________________ RLUG mailing list [EMAIL PROTECTED] http://www.rlug.org/mailman/listinfo/rlug

Reply via email to