vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I am trying to autolaunch a script on connecting a USB device.... in this case a Fujifilm 250MB USB Key. I can mount the key and read/write data if I do things manually.... but hotplug does not seem to do anything for me. Heres how I went about things..... 1. appended to /etc/fstab line: /dev/sda1 /mnt/usb auto noauto,users 1 2 2. appended to /etc/hotplug/usb.usermap line: usb-storage 0x0003 0x08ec 0x0011 0x0200 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000 3. created an executable script in /etc/hotplug/usb called usb-storage Now when I stick the USB key in I expect the script to run but nothing happens. The script runs, mounts usb file system, transfers files, unmounts file system when run manually when the key is still stuck in. /var/log/messages reads: kernel: Initializing USB Mass Storage driver... kernel: usb.c: registered new driver usb-storage kernel: scsi0 : SCSI emulation for USB Mass Storage devices kernel: Vendor: Fujifilm Model: USB Drive Rev: 3.04 kernel: Type: Direct-Access ANSI SCSI revision: 02 kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0 kernel: SCSI device sda: 513152 512-byte hdwr sectors (263 MB) kernel: sda: Write Protect is off kernel: sda: sda1 kernel: USB Mass Storage support registered. /etc/hotplug/usb.agent: Module setup usb-storage for USB product 8ec/11/200 /etc/hotplug/usb.agent: Setup usb-storage for USB product 8ec/11/200 kernel: usb.c: USB disconnect on device 2 Any ideas? Thanks, Manu |