Re: Kudzu problem
Tony Nugent <[email protected]>
| Newsgroups | gmane.linux.redhat.release.enigma |
|---|---|
| Organization | Linux Works |
| Message-ID | <[email protected]> |
On Fri Mar 07 2003 at 12:53, Antonio Galea wrote: > on a desktop machine I've recently replaced my old ide cdrom with a ide cd > burner. To burn anything I need scsi over ide: thus I've changed the /dev/cdrom > link from /dev/hdc to /dev/sr0. Everything works fine until I reboot the > machine: then kudzu kicks in, sees an ide device and restores the original > link. Sheesh, it's almost getting a lot like mickyslop, eh? :-) > Is there any way to tell kudzu to just leave the cd alone? You'll need to either turn off kudzu, preload the ide-scsi driver in your initrd, and/or pass the kernel parameters to let it know that is going on (iirc: "ide-scsi=/dev/hdc", but I would check that). > This is the burner entry in /etc/sysconfig/hwconf: > - > class: CDROM > bus: IDE > detached: 0 > device: hdc > driver: ignore > desc: "YAMAHA CRW4416E" > - > (changing it has no effect, it gets overwritten each time kudzu is run). I wouldn't bother worring about this (I don't). > My /etc/modules.conf goes like this: > > options ide-cd ignore=hdc > alias cdrom sr_mod > pre-install ide-scsi modprobe imm > pre-install sg modprobe ide-scsi > pre-install sr_mod modprobe ide-scsi > pre-install ide-scsi modprobe ide-cd While this won't help with your particular question, there's a much cleaner way to do all that... alias ide-cd off add above cdrom ide-scsi add above ide-scsi sr_mod add below ide-scsi imm ide-cd or similar, depending on exactly what you want to achieve. (I've never bothered to worry about the imm or sr_mod drivers, they get loaded anyway when needed). The "add above" and "add below" are far more flexable for what you want to do. See the man page for modules.conf for more information, then start experimenting with it. In fact, with these directives you can do all sorts of interesting things to automatically load a whole set of modules with the loading of any other. Be warned though... if you make a new initrd with the ide-scsi module, mkinitrd will add any options in modules.conf to the initrd, but not act on any "add" directives. Cheers Tony