PDA

View Full Version : Blacklist modules



aiduciukas
27th January 2007, 10:21 AM
Hi, how I can blacklist ehci_hcd module? because with it my flash drives isn't woking ;)

stevea
27th January 2007, 10:40 AM
First, I think you are probably wrong. EHCI is not a common USB interface on PCs. Uhci is most common.

Still - you can just remove the module (to find type: locate ehci-hcd.ko), and rebuild the
modules.dep file with:
depmod -e -F/boot/System.map-`uname -r`

aiduciukas
27th January 2007, 04:02 PM
ok: it says that depmod is unknown command :O earlier (on suse, ubuntu) I did these commands:
sudo modprobe -r ehci_hcd
sudo sh -c 'echo blacklist ehci_hcd > /etc/modprobe.d/blacklist-ehci'
sudo update-initramfs -u -k `uname -r`(this worked only on ubuntu but suse works good without it)
so, it says that modprobe command not found too :O what I should do? :|
P.S. Sorry for my poor english

leigh123linux
27th January 2007, 04:05 PM
ok: it says that depmod is unknown command :O earlier (on suse, ubuntu) I did these commands:
sudo modprobe -r ehci_hcd
sudo sh -c 'echo blacklist ehci_hcd > /etc/modprobe.d/blacklist-ehci'
sudo update-initramfs -u -k `uname -r`(this worked only on ubuntu but suse works good without it)
so, it says that modprobe command not found too :O what I should do? :|
P.S. Sorry for my poor english

su -
modprobe -r ehci_hcd


It needs to be done as su - and not su

aiduciukas
27th January 2007, 04:14 PM
uhhh, thanks, it works ;)

aiduciukas
29th January 2007, 09:28 PM
emm, how I can do that KDE would run this commands on startup? Because when I restart my pc I need again write these commands

aiduciukas
31st January 2007, 08:56 PM
hey, any1?