howto configuring kernel and modules.conf for automatic loading of ide-scsi
i'm confused with module loading.
i have cdrw and configure ide-scsi emulation for it. doing "modprobe ide-scsi; mount /dev/scd0" is fine.
but, how to configure automatic loading of ide-scsi?
it seems that just "touching" for /dev/scd0 do not
cause kmod to exec modprobe at all. What to do?
i think that loading several modules at boottime are not the best idea, in that case - why do i use modules at all?
Agri
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Agri пишет:
Quoted 11 lines
i'm confused with module loading.
i have cdrw and configure ide-scsi emulation for it. doing "modprobe ide-scsi; mount
/dev/scd0" is fine.but, how to configure automatic loading of ide-scsi?
it seems that just "touching" for/dev/scd0do not
cause kmod to exec modprobe at all. What to do?
i think that loading several modules at boottime are not the best idea, in that case - why do i use modules at all?
Quoted 8 lines
Agri
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
You need to change /etc/rc.d/rc.sysinit
---------------------------
# Begin of /etc/rc.d/rc.sysinit
.....
modprobe ide-scsi
# End of /etc/rc.d/rc.sysinit
---------------------------
for load only this module or enable autoloading by kernel
Loadable module support ---> [*] Automatic kernel module loading
p.s.
sorry, my english is not good :(
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 8 lines · Agri
i'm confused with module loading.
i have cdrw and configure ide-scsi emulation for it. doing "modprobe ide-scsi; mount
/dev/scd0" is fine.but, how to configure automatic loading of ide-scsi? it seems that just "touching" for
/dev/scd0do not cause kmod to exec modprobe at all. What to do?
You load them as part of the boot/init process. Exactly how you do that depends quite a bit on which Linux distrobution you are using. The advice someone else posted, for example, looked like it was for Slackware. In Debian, you'd add the module names to /etc/modules . Probably the assortment of distros descended from Red Hat has yet another procedure for this.
Quoted 2 lines
i think that loading several modules at boottime are not the best idea, in that case - why do i use modules at all?
There are many reasons to use modules. The specific reasons depend on the specific modules in question. In this instance, though, you should feel free to recompile your kernel to incorporate ide-scsi support (of course, also compiling in the other modules that ide-scsi needs in order to function).
You are entitled to your opinion ... it is your system after all ... but personally I think it is smart to load during init, or compile in, support for devices that hold filesystems.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
thanks for answers, but....
the only thing i get: there is no way to configure loading of ide-scsi "ON DEMAND". Am i right?
Agri
Quoted 33 lines · On Sat, 24 Jan 2004 20:31:06 -0800 Ray Olszewski <[email protected]> wrote:
Quoted 8 lines · Agri
i'm confused with module loading.
i have cdrw and configure ide-scsi emulation for it. doing "modprobe ide-scsi; mount
/dev/scd0" is fine.but, how to configure automatic loading of ide-scsi? it seems that just "touching" for
/dev/scd0do not cause kmod to exec modprobe at all. What to do?You load them as part of the boot/init process. Exactly how you do that depends quite a bit on which Linux distrobution you are using. The advice someone else posted, for example, looked like it was for Slackware. In Debian, you'd add the module names to
/etc/modules. Probably the assortment of distros descended from Red Hat has yet another procedure for this.Quoted 2 lines
i think that loading several modules at boottime are not the best idea, in that case - why do i use modules at all?
There are many reasons to use modules. The specific reasons depend on the specific modules in question. In this instance, though, you should feel free to recompile your kernel to incorporate ide-scsi support (of course, also compiling in the other modules that ide-scsi needs in order to function).
You are entitled to your opinion ... it is your system after all ... but personally I think it is smart to load during init, or compile in, support for devices that hold filesystems.
Quoted 6 lines
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 3 lines · Agri
thanks for answers, but....
the only thing i get: there is no way to configure loading of ide-scsi "ON DEMAND". Am i right?
[old stuff deleted]
I alswys hate to say that a statement like yours is correct ... there are so many different ways of doing things on Linux/Unix systems, it may be merely that I do not know the one that will solve your problem ... but I do believe that there is no way to use "on demand" loading in this case ... or, in fact, any case that involves access to filesystems. The only way for you to be certain of that, though, it to wait and see whether someone else, someone who knows a different bag of tricks from mine, suggests a method that works for you.
I am also sorry if my prior response was so poorly phrased that that is the "only thing [you] get" from it. I was attempting to be more helpful than that.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
anyway thanks for answer... it's good answer i think :-) i just knew it before...
here... i want to mention one strange thing...
if i "touch" for hd? device "hided" by ide-scsi kmod will request for a module and system will load ide-scsi... curious... don't you think?
Agri
Quoted 21 lines · On Sun, 25 Jan 2004 08:28:31 -0800 Ray Olszewski <[email protected]> wrote:
Quoted 4 lines · Agri
thanks for answers, but....
the only thing i get: there is no way to configure loading of ide-scsi "ON DEMAND".
Am i right?[old stuff deleted]
I alswys hate to say that a statement like yours is correct ... there are so many different ways of doing things on Linux/Unix systems, it may be merely that I do not know the one that will solve your problem ... but I do believe that there is no way to use "on demand" loading in this case ... or, in fact, any case that involves access to filesystems. The only way for you to be certain of that, though, it to wait and see whether someone else, someone who knows a different bag of tricks from mine, suggests a method that works for you.
I am also sorry if my prior response was so poorly phrased that that is the "only thing [you] get" from it. I was attempting to be more helpful than that.
Quoted 6 lines
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 3 lines · Agri
here... i want to mention one strange thing...
if i "touch" for hd? device "hided" by ide-scsi kmod will request for a module and system will load ide-scsi... curious... don't you think?
Too be honest i have no clue as to what you mean however i never have any problem with loading of modules, normally speaking i never have to use modprobe, i only use modprobe if i do things via scripts and that only to make sure the module is loaded otheriwse the sript would need to do all sorts of checks first.
I dont know if you tryed my suggestion i made in my last mail on this subject, another is simply add;
append="hdX=ide-scsi"
X= a,b,c or d on your system, to /etc/lilo.conf and rerun lilo or do the equivilant under grub if thats what you use.
As you said you did not like the idea of loading modules at boottime but i think you should reconsider as that in itself does not hinder or slow down your system one bit.
Signature · 15 lines
If the Linux community is a bunch of theives because they try to imitate windows programs, then the Windows community is built on organized crime. Regards Richard [email protected] http://people.zeelandnet.nl/pa3gcu/ - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 4 lines · Agri
thanks for answers, but....
the only thing i get: there is no way to configure loading of ide-scsi "ON DEMAND". Am i right?
Following are from my modules.conf.
First, make sure there is a path pointing to the directory where the actual modules are found (maybe not necessary), such as
path[scsi]=/lib/modules/uname -r/kernel/drivers/scsi
The following let me use /dev/scd0 to access the CD for reading, and sg (I guess) for writing from cdrecord:
alias scsi_hostadapter ide-scsi
alias scd0 sr_mod # load sr_mod upon access of scd0 pre-install sg modprobe ide-scsi # load ide-scsi before sg pre-install sr_mod modprobe ide-scsi
pre-install ide-scsi modprobe scsi_mod
You'll probably need to rerun depmod after changing modules.conf. Of course, unless your distro runs a cron job to unload unused modules, once they've been loaded they stay loaded.
HTH,
Ken
Signature · 6 lines
This is a job for Riviera Kid! - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
Oh.... i did everything as you say many times before...
i get success only this time.
i have done a little investigation...
there is no need of
pre-install sg modprobe ide-scsi # load ide-scsi before sg
pre-install sr_mod modprobe ide-scsi
moreover these lines breaks loading after "rmmod -a"
lines from logs:
insmod: /lib/modules/2.4.23-rc1/kernel/drivers/cdrom/cdrom.o: pre-install sr_mod failed
insmod: /lib/modules/2.4.23-rc1/kernel/drivers/cdrom/cdrom.o: insmod block-major-11 failed
and line
pre-install ide-scsi modprobe scsi_mod
breaks everything cause:
modprobe: Can't locate module scsi_mod
now i'm more confused about modules, and about rmmod because it does not always remove unused modules.....
thanx a lot for answer.
Agri
Quoted 23 lines · On Mon, 26 Jan 2004 00:08:29 +0000 (GMT) Ken Moffat…
Quoted 4 lines · Agri
thanks for answers, but....
the only thing i get: there is no way to configure loading of ide-scsi "ON DEMAND". Am i right?Following are from my modules.conf.
First, make sure there is a path pointing to the directory where the actual modules are found (maybe not necessary), such as
path[scsi]=/lib/modules/
uname -r/kernel/drivers/scsiThe following let me use
/dev/scd0to access the CD for reading, and sg (I guess) for writing from cdrecord:alias
scsi_hostadapteride-scsi
alias scd0sr_mod# loadsr_modupon access of scd0 pre-install sg modprobe ide-scsi # load ide-scsi before sg pre-installsr_modmodprobe ide-scsi
pre-install ide-scsi modprobescsi_mod
Quoted 15 lines
You'll probably need to rerun depmod after changing modules.conf. Of course, unless your distro runs a cron job to unload unused modules, once they've been loaded they stay loaded.
HTH,
Ken
Signature · 6 lines
This is a job for Riviera Kid! - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 7 lines · Agri
Oh.... i did everything as you say many times before... i get success only this time.
i have done a little investigation...
there is no need of
pre-install sg modprobe ide-scsi # load ide-scsi before sg pre-installsr_modmodprobe ide-scsi
moreover these lines breaks loading after "rmmod -a"
Ok,
if you don't need them, don't use them! At one time they appeared to
be necessary for me (although I was also doing some other stuff for my ide zip drive, which I cut out of the example). I've never intentionally used rmmod for these things, so it doesn't surprise me that I can break it :) Maybe you need to tell rmmod to remove each of these modules, not just the 'top level'. Module loading has always been one of the harder things to find accurate information for.
Ken
Signature · 6 lines
This is a job for Riviera Kid! - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 8 lines · Agri
Oh.... i did everything as you say many times before... i get success only this time.
i have done a little investigation...
there is no need of
pre-install sg modprobe ide-scsi # load ide-scsi before sg pre-installsr_modmodprobe ide-scsi
moreover these lines breaks loading after "rmmod -a" lines from logs:
I think you need to go back to "start" which means, no i will ask, just what do you want to do and just what do you have;?
I mean, what sort of cdrom, is it a writer.? or simply just a cdrom device.? There are many ways under linux of killing the cat, you have been given, AFAIK, 3 different examples, all of which should work, however they may not work for you because we have to fill in the gaps in the info you provided.
In other words tell me/us what type of cdrom you have, your installed distro its version and its kernel, i belive you mentioned 2.4.23-rc1 (BAD) never experiment trying to do something you possably never have done before on a kernel you built yourself, (unless you know what you are doing of course). Use the kernel from your distro, i can assure you it has ALL you need.
On top of all that send us the commands used and thier corrisponding error messages when there is a problem.
Signature · 15 lines
If the Linux community is a bunch of theives because they try to imitate windows programs, then the Windows community is built on organized crime. Regards Richard [email protected] http://people.zeelandnet.nl/pa3gcu/ - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 1 line · Agri
i'm confused with module loading.
Understandable.
Quoted 6 lines
i have cdrw and configure ide-scsi emulation for it. doing "modprobe ide-scsi; mount
/dev/scd0" is fine.but, how to configure automatic loading of ide-scsi? it seems that just "touching" for
/dev/scd0do not cause kmod to exec modprobe at all. What to do?
You make no mention of what distro you are using let alone which kernel version so that in itsself makes giving a direct answer very hard, i can point you to a direction which should automate loading of modules on all linux systems tho'.
Backup your /etc/modules.conf file before doing the following.
/sbin/modprobe -c >/etc/modules.conf
That will create entries which will help modpobe load modules upon demand.
Quoted 2 lines
i think that loading several modules at boottime are not the best idea, in that case - why do i use modules at all?
Some modules need to be loaded at bootime some not.
The main reason why one has a modular kernel is because of kernel size and memory usage, just imagen how large a kernel would be with everything one needs compiled into the kernel
Another thing is drivers that have "options" like IRQ I/O adresses, just imagen having all that compiled into a kernel and you have an old network card which is set to IRQ5 and your kernel has been compiled to look for that card on IRQ3, as you see not so handy...
BTW, if you have a slackware system the answer from Mr. X-Penguin is incorrect, that should answer Rays comment on slackware as well.
Quoted 2 lines
Agri
Signature · 15 lines
If the Linux community is a bunch of theives because they try to imitate windows programs, then the Windows community is built on organized crime. Regards Richard [email protected] http://people.zeelandnet.nl/pa3gcu/ - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs