Re: **Caution-External**: Re: USB hotplug woes

2006-07-21 Thread Vandoorn, Yvo
I thought about that, however the script that I am using calls to mount /dev/sdb1 to /dev/usbkey On 7/21/06 1:59 PM, "Ron Johnson" <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Great. But, I think you should change the sdb1 to sd?1, since the > thumb drive mi

Re: **Caution-External**: Re: USB hotplug woes

2006-07-21 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Great. But, I think you should change the sdb1 to sd?1, since the thumb drive might not be sdb on each machine, or each time you plug it in. Vandoorn, Yvo wrote: > I'm a retard... Changed it to sdb1 and whabam... It works as expected. Only > problem

Etch and SATA (was Re: USB hotplug woes)

2006-07-21 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Craig M. Houck wrote: > 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

Re: **Caution-External**: Re: USB hotplug woes

2006-07-21 Thread chouck
Excellent > I'm a retard... Changed it to sdb1 and whabam... It works as expected. Only > problem now is that the last part of the script that tells it to unmount > isn't working but that is fixable. So it seems 2.6 kernel with udev is the > solution. > > > On 7/21/06 11:54 AM, "Vandoorn, Yvo" <[E

Re: **Caution-External**: Re: USB hotplug woes

2006-07-21 Thread Vandoorn, Yvo
I'm a retard... Changed it to sdb1 and whabam... It works as expected. Only problem now is that the last part of the script that tells it to unmount isn't working but that is fixable. So it seems 2.6 kernel with udev is the solution. On 7/21/06 11:54 AM, "Vandoorn, Yvo" <[EMAIL PROTECTED]> wrote

Re: USB hotplug woes

2006-07-21 Thread Vandoorn, Yvo
Well I have since taken the complete plunge to 2.6. I was able to boot debian by changing the fstab & grub configuration. Ok so now I have researched on how to write udev.rules (using http://www.reactivated.net/writing_udev_rules.html as reference). In the guide at the bottom it recommends doing:

Re: USB hotplug woes

2006-07-21 Thread Craig M. Houck
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.

Re: USB hotplug woes

2006-07-20 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 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 d

Re: USB hotplug woes

2006-07-20 Thread Vandoorn, Yvo
I most certainly agree :-). Google is a very handy tool, however at this point I can't use the 2.6 kernel (attempted, got a mess in return). These machines are completely headless and basically this script is to configure the machine for the user without plugging in a keyboard or mouse. On 7/20/0

Re: USB hotplug woes

2006-07-20 Thread Vandoorn, Yvo
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 basicall

Re: USB hotplug woes

2006-07-20 Thread Craig M. Houck
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

Re: USB hotplug woes

2006-07-20 Thread H.S.
Vandoorn, Yvo wrote: What will it take to have a script run once the 2.6 kernel is loaded and a flash drive is inserted. First hit on Google gave me this page(searched for 'run a script udev rules'): http://reactivated.net/writing_udev_rules.html search for "script" on this page and your pro

Re: USB hotplug woes

2006-07-20 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vandoorn, Yvo wrote: > What will it take to have a script run once the 2.6 kernel is > loaded and a flash drive is inserted. A script run? You mean "autorun"? - -- Ron Johnson, Jr. Jefferson LA USA Is "common sense" really valid? For example, it i

Re: USB hotplug woes

2006-07-20 Thread Vandoorn, Yvo
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, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> 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.

Re: USB hotplug woes

2006-07-20 Thread chouck
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 tim

USB hotplug woes

2006-07-20 Thread Vandoorn, Yvo
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 wo