[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



-----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 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" <yvo_vandoorn@mcgraw-hill.com> wrote:
> 
>> 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:
>>
>> KERNEL=="sdb", RUN+="/usr/bin/my_program"
>>
>> However what I am seeing in my /var/log/syslog (I modified
>> /etc/udev/udev.conf to output debug logging) is that it attempts to run the
>> script before it has actually done any of the volume discovery. My scripts
>> first command is to mount /dev/sdb1 to /mnt/usbkey. This doesn't work of
>> course since /dev/sdb1 wont be declared after the script is done.
>>
>> Any ideas on what I can do from here?

- --
Ron Johnson, Jr.
Jefferson LA  USA

Is "common sense" really valid?
For example, it is "common sense" to white-power racists that
whites are superior to blacks, and that those with brown skins
are mud people.
However, that "common sense" is obviously wrong.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEwUBKS9HxQb37XmcRAmbKAKCjTFoQZ8BvnQvJY1Qpnl3EwlXzRACgqvTs
9Rr+AhCcVzpJ1cDufTbDDHE=
=yMfC
-----END PGP SIGNATURE-----



Reply to: