Shyamal Prasad was roused into action on 2002-11-23 22:54 and wrote:
"David" == David P James <David> writes:David> Herbert Xu was roused into action on 2002-11-23 16:11 and David> wrote: >> David P James <[EMAIL PROTECTED]> wrote:
Yes, the contents of 'cdrw' (in my case 'ide-scsi') are contained in etc/modules.conf inside /boot/initrd.img-2.4.18-686. I did not even know you could examine the contents of initrd images...>> When ide-cd gets loaded, you should see the message >> ide-cd: ignoring drive hdb >> If you don't, then ide-scsi is not going to work. David> I do see it, but it's too late... it's coming after hdb is David> already identified. The CDRW should be identified David> immediately after scsi1 as a device on scsi1, should it David> not? That's how my SCSI HD is identified on scsi0 and my David> scanner when it is attached and on for scsi2. I'm new to initrd and a lot of other things, and Herbert can probably tell right away what is going on. Having said that, I do have a suggestion, and then a few questions for more knowledgeable folks: Have you looked in the etc/modules.conf file inside your initrd image (/boot/initrd.img-2.4.18-k7)? Does it have the changes from the 'cdrw' file you created? (BTW, if you don't already know, you look at the file with 'mount -t cramfs -o loop initrd.img /mnt).
I am guessing (I can't tell from you dmesg snippet, but I'm confident since there was no 'change_root' from cramfs in the snippet) that all the stuff you described is actually happening *before* your root disk partition is mounted. So ide-cd is being loaded during the initrd phase, and the etc/modules file in that image does not have the 'ignore' lines and so on, so ide-cd grabbed the device. Why it did that (if I'm on the right track) I don't know, and I'm hoping to be educated.
Well there was a cramfs entry that I snipped out: "cramfs: wrong magic" not that I know what that means...
I imagine mine was updated when I ran update-modules after creating the file as well. I cannot see any difference between your system and mine that should account for this oddity.Somehow, my initrd image *does* include my cdrw file changes. The modules.conf file in the image is exactly the same as in /etc. In addition, I noticed the the kernel-image package does not include the initrd image. So it is being created after installation. It is also seemingly being updated when I'm running update-modules (?). I have not been able to figure out how all this magic happened just yet. I'm hoping some one can tell me where to RTFM (Herbert?).
--
David P. James
4th Year Economics Student
Queen's University
Kingston, Ontario
http://members.rogers.com/dpjames/
The bureaucratic mentality is the only constant in the universe.
-Dr. Leonard McCoy, Star Trek IV
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]