LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   udev: problems at boot, works fine later (https://www.linuxquestions.org/questions/linux-hardware-18/udev-problems-at-boot-works-fine-later-546176/)

DaneelGiskard 04-15-2007 05:03 AM

udev: problems at boot, works fine later
 
Hi!

I'm using a udev rule in /etc/udev/rules.d/10-local.rules to assign a specific USB device a special name:

SYSFS{idProduct}=="e02d", SYSFS{idVendor}=="147a", NAME="usb_irc_receiver"

However, this does not work fine at boot. When I restart the machine the /dev/usb_irc_receiver file is created, but I cannot read from it using cat (it returns immediately without any output). If I then re-plugin the USB device it starts working fine.

Can I somehow tell udev to re-mount all USB devices (or just that single one) at a later point (without replugging it), since there seem to be problems when it tries to mount it at boot time?

Any other ideas?

Thanks,
Michael

DaneelGiskard 04-15-2007 05:45 AM

Hi all,

after some more googling, I think unloading and reloading the kernel module which takes care of this usb device might work. But I've no idea how to do that with FC6 and the latest kernel. Any ideas?

Many thanks,
Michael

DaneelGiskard 04-15-2007 07:02 AM

Hi all,

I resolved the problem by doing:

/sbin/rmmod ehci_hcd
/sbin/rmmod ohci_hcd
/sbin/rmmod uhci_hcd
/sbin/modprobe ehci_hcd
/sbin/modprobe ohci_hcd
/sbin/modprobe uhci_hcd

in rc.local.

All the best,
Michael


All times are GMT -5. The time now is 03:16 PM.