Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 211
  • Last Modified:

Re-compile Red Hat 8.0

My Red Hat 8.0 has problem with the USB. I can't start the computer if there 's something pluged in the USB port (Webcam ...), the start process stop at "Initalizing USB controller", when I unplug all USB connections, Red Hat works properly. I 'd like to remove the USB component from my kernel so that I don't have to unplug the USB connections each time I want to work in Linux, but I don't know exactly how to do it. I've read the instructions about re-compiling the kernel, but they are all complicated. Could somebody give me some simple instructions? Thanks.
0
tanhnhi
Asked:
tanhnhi
  • 2
1 Solution
 
jimbbCommented:
You could re-build the kernel as you've said.

But you also could choose not to load the driver module for your USB controller.

If there's any line for it in /etc/modules.conf, comment it out (with a '#').  And in order for it to not be detected at each boot, disable the 'kudzu' service (use the "Server Settings/Services" in the menu, or run 'ntsysv' from a shell).

Note that that will also disable detecting any other hardware changes to the machine.  If you just want to disable USB I believe putting "nousb" on the kernel command line (in grub.conf, if you need help with this let me know) will work, although I am not positive.
0
 
jdfoxCommented:
A quick fix is to comment out the USB line from /etc/rc.d/rc.sysinit.

What model of PC are you using, and what version of kernel?
uname -a will tell you this.

I've heard of this happening on some IBM & Toshiba laptops.
0
 
jimbbCommented:
If you edit that file, you'll need to be concerned about what might happen should an update to the the "initscripts" package be installed.

But you do raise a good point; looking in that file you can see where it greps '/proc/cmdline' for "nousb"; /proc/cmdline contains the kernel command line options passed to it by the bootloader.  So adding that option to the kernel command line should be the easiest and cleanest solution (other than fixing the problem, if there is a fix).
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now