Re: USB hotplug woes



That is beyond me I'm afraid. Hotplug usb devices are tricky somewhat even
with 2.6 if you are trying to auto run scripts associated with a hot plug

OH, yea. Sata drives and Sarge 2.6 don't mix well. I've never tried Etch on
a Sata machine.
I know that some this do work with one and not the other.
Sarge 2.6 does not have MegaRaid drivers
Etch 2.6 has MegaRaid drivers!!

At 01:41 PM 7/20/2006 -0700, Vandoorn, Yvo wrote:
I should've mentioned that there is no gui. Actually these are headless
servers, which is the need for scripts.

The goal is that if someone where to stick in an USB flash drive, the OS
would launch the necessary script do its thing and then take out the USB key
5 minutes later. The script basically initializes the network, runs apt-get
and programs the cron. It works great in the lab, however the flash drive we
used is no longer produced making it a pain for wide spread production.
Further more I tried the 2.6 kernel and the machine just went nuts only
because the SATA drives are suddenly seen as SCSI. Yes it is fixable but I'd
rather not customize it too far off the beaten path.



On 7/20/06 12:53 PM, "Craig M. Houck" <chouck@xxxxxxxxxxxxxx> wrote:

Vandoorn, Yvo;

I have never done that. I know that with the 2.6 kernel (that I have on
many laptops) plug a usb device in and an icon appears on the desktop
for it.

Do you want the script to autorun whe the usb device is pluged in? If so
do some googles on "auto run", there are some programs you can find to do
that for you.

I have done it on windows cds that I want to start up a webpage for example

What will it take to have a script run once the 2.6 kernel is loaded and a
flash drive is inserted.


On 7/20/06 11:49 AM, "chouck@xxxxxxxxxxxxxx" <chouck@xxxxxxxxxxxxxx>
wrote:

For what it's worth...
I find usb hotplug impossible to do wiht the 2.4.x kernel,
and it happens automagically with the 2.6.x kernel.

IF there is nothing stopping you from using a 2.6.x kernel
just apt-get install <2.6 kernel you need>
and there you have it. GRUB will show both kernels at boot time BTW..

To check your current kernel ls -l /lib/modules

To find the kernels avaliable
apt-cache search kernel-image |grep 2.6



Hey everyone,

I'll admit my knowledge in the hotplug department isn't spectacular.

Currently I have a machine setup to run a script when a specific USB
flash
drive is inserted. I did this by defining the script and vendor ID &
product ID in the usb.handmap file (/etc/hotplug/usb.handmap). This
works
great and as expected. The script tells the device to mount and do a few
things.

So this works as expected, great. But now I want to future proof it a
little
by only looking at the Vendor ID and then just running the script.
However
usb.handmap requires a vendor & product ID in order for it to load. I
can't
get this seem to work. Sure I can add each vendor & product ID for each
device I have, however that isn't really future proofing.

Currently I have usb.handmap to read:
key.sh 0x0003 0x054c 0x02a5 0x0100 0x0000
0x00 0x00 0x00 0x00 0x00
0x00 0x00000000

And I have tried:

key.sh 0x0003 0x054c 0x0000 0x0000 0x0000
0x00 0x00 0x00 0x00 0x00
0x00 0x00000000

Anyone have any ideas?





RbtBotL
Craig - ><>

o BU SysAdmin
/|\ 607 777 6827
^ Tot Ziens




RbtBotL
Craig - ><>

o BU SysAdmin
/|\ 607 777 6827
^ Tot Ziens




--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: USB hotplug woes
    ... debian by changing the fstab & grub configuration. ... course since /dev/sdb1 wont be declared after the script is done. ... The goal is that if someone where to stick in an USB flash drive, ... Further more I tried the 2.6 kernel and the machine just went nuts only ...
    (Debian-User)
  • Q:how to mount external USB-HDD
    ... I have a problem mounting my external USB IDE-harddisk in Mandrake 9.1. ... kernel: usb.c: registered new driver usbdevfs ... kernel: usb.c: USB device 2 is not claimed by any ...
    (comp.os.linux.setup)
  • Re: USB hotplug woes
    ... The goal is that if someone where to stick in an USB flash drive, ... The script basically initializes the network, ... Further more I tried the 2.6 kernel and the machine just went nuts only ... many laptops) plug a usb device in and an icon appears on the desktop for it. ...
    (Debian-User)
  • Re: Supported hardware
    ... supported hardware changes and grows so quickly. ... and USB Mass Storage devices are supported. ... A USB device that didn't exist when 2.6.10 was the latest version wouldn't ... iteration of the kernel. ...
    (comp.os.linux.hardware)
  • Re: **Caution-External**: Re: USB hotplug woes
    ... script before it has actually done any of the volume discovery. ... The goal is that if someone where to stick in an USB flash drive, ... Further more I tried the 2.6 kernel and the machine just went nuts only ... Do you want the script to autorun whe the usb device is pluged in? ...
    (Debian-User)