* howto configuring kernel and modules.conf for automatic loading of ide-scsi
@ 2004-01-25 1:11 Agri
2004-01-25 2:16 ` X-Penguin
` (2 more replies)
0 siblings, 3 replies; 12+ messages in thread
From: Agri @ 2004-01-25 1:11 UTC (permalink / raw)
To: linux-newbie
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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: howto configuring kernel and modules.conf for automatic loading of ide-scsi
2004-01-25 1:11 howto configuring kernel and modules.conf for automatic loading of ide-scsi Agri
@ 2004-01-25 2:16 ` X-Penguin
2004-01-25 4:31 ` Ray Olszewski
2004-01-25 8:23 ` pa3gcu
2 siblings, 0 replies; 12+ messages in thread
From: X-Penguin @ 2004-01-25 2:16 UTC (permalink / raw)
To: Agri; +Cc: linux-newbie
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/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 majordomo@vger.kernel.org
> 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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: howto configuring kernel and modules.conf for automatic loading of ide-scsi
2004-01-25 1:11 howto configuring kernel and modules.conf for automatic loading of ide-scsi Agri
2004-01-25 2:16 ` X-Penguin
@ 2004-01-25 4:31 ` Ray Olszewski
2004-01-25 11:06 ` Agri
2004-01-25 8:23 ` pa3gcu
2 siblings, 1 reply; 12+ messages in thread
From: Ray Olszewski @ 2004-01-25 4:31 UTC (permalink / raw)
To: linux-newbie
At 04:11 AM 1/25/2004 +0300, Agri wrote:
>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?
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.
>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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: howto configuring kernel and modules.conf for automatic loading of ide-scsi
2004-01-25 1:11 howto configuring kernel and modules.conf for automatic loading of ide-scsi Agri
2004-01-25 2:16 ` X-Penguin
2004-01-25 4:31 ` Ray Olszewski
@ 2004-01-25 8:23 ` pa3gcu
2 siblings, 0 replies; 12+ messages in thread
From: pa3gcu @ 2004-01-25 8:23 UTC (permalink / raw)
To: Agri, linux-newbie
On Sunday 25 January 2004 02:11, Agri wrote:
> i'm confused with module loading.
Understandable.
> 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?
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.
> 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.
>
> Agri
--
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
pa3gcu@zeelandnet.nl
http://people.zeelandnet.nl/pa3gcu/
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: howto configuring kernel and modules.conf for automatic loading of ide-scsi
2004-01-25 4:31 ` Ray Olszewski
@ 2004-01-25 11:06 ` Agri
2004-01-25 16:28 ` Ray Olszewski
2004-01-26 0:08 ` Ken Moffat
0 siblings, 2 replies; 12+ messages in thread
From: Agri @ 2004-01-25 11:06 UTC (permalink / raw)
To: linux-newbie
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
On Sat, 24 Jan 2004 20:31:06 -0800
Ray Olszewski <ray@comarre.com> wrote:
> At 04:11 AM 1/25/2004 +0300, Agri wrote:
> >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?
>
> 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.
>
> >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 majordomo@vger.kernel.org
> 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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: howto configuring kernel and modules.conf for automatic loading of ide-scsi
2004-01-25 11:06 ` Agri
@ 2004-01-25 16:28 ` Ray Olszewski
2004-01-25 18:10 ` Agri
2004-01-26 0:08 ` Ken Moffat
1 sibling, 1 reply; 12+ messages in thread
From: Ray Olszewski @ 2004-01-25 16:28 UTC (permalink / raw)
To: linux-newbie
At 02:06 PM 1/25/2004 +0300, Agri wrote:
>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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: howto configuring kernel and modules.conf for automatic loading of ide-scsi
2004-01-25 16:28 ` Ray Olszewski
@ 2004-01-25 18:10 ` Agri
2004-01-25 19:30 ` pa3gcu
0 siblings, 1 reply; 12+ messages in thread
From: Agri @ 2004-01-25 18:10 UTC (permalink / raw)
To: linux-newbie
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
On Sun, 25 Jan 2004 08:28:31 -0800
Ray Olszewski <ray@comarre.com> wrote:
> At 02:06 PM 1/25/2004 +0300, Agri wrote:
> >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 majordomo@vger.kernel.org
> 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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: howto configuring kernel and modules.conf for automatic loading of ide-scsi
2004-01-25 18:10 ` Agri
@ 2004-01-25 19:30 ` pa3gcu
0 siblings, 0 replies; 12+ messages in thread
From: pa3gcu @ 2004-01-25 19:30 UTC (permalink / raw)
To: Agri, linux-newbie
On Sunday 25 January 2004 19:10, Agri wrote:
> 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.
--
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
pa3gcu@zeelandnet.nl
http://people.zeelandnet.nl/pa3gcu/
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: howto configuring kernel and modules.conf for automatic loading of ide-scsi
2004-01-25 11:06 ` Agri
2004-01-25 16:28 ` Ray Olszewski
@ 2004-01-26 0:08 ` Ken Moffat
2004-01-26 9:46 ` Agri
1 sibling, 1 reply; 12+ messages in thread
From: Ken Moffat @ 2004-01-26 0:08 UTC (permalink / raw)
To: Agri; +Cc: linux-newbie
On Sun, 25 Jan 2004, Agri wrote:
> 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
--
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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: howto configuring kernel and modules.conf for automatic loading of ide-scsi
2004-01-26 0:08 ` Ken Moffat
@ 2004-01-26 9:46 ` Agri
2004-01-26 15:50 ` Ken Moffat
2004-01-26 19:41 ` pa3gcu
0 siblings, 2 replies; 12+ messages in thread
From: Agri @ 2004-01-26 9:46 UTC (permalink / raw)
To: linux-newbie
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
On Mon, 26 Jan 2004 00:08:29 +0000 (GMT)
Ken Moffat <ken@kenmoffat.uklinux.net> wrote:
> On Sun, 25 Jan 2004, Agri wrote:
>
> > 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
> --
> 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 majordomo@vger.kernel.org
> 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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: howto configuring kernel and modules.conf for automatic loading of ide-scsi
2004-01-26 9:46 ` Agri
@ 2004-01-26 15:50 ` Ken Moffat
2004-01-26 19:41 ` pa3gcu
1 sibling, 0 replies; 12+ messages in thread
From: Ken Moffat @ 2004-01-26 15:50 UTC (permalink / raw)
To: Agri; +Cc: linux-newbie
On Mon, 26 Jan 2004, Agri wrote:
> 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"
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
--
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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: howto configuring kernel and modules.conf for automatic loading of ide-scsi
2004-01-26 9:46 ` Agri
2004-01-26 15:50 ` Ken Moffat
@ 2004-01-26 19:41 ` pa3gcu
1 sibling, 0 replies; 12+ messages in thread
From: pa3gcu @ 2004-01-26 19:41 UTC (permalink / raw)
To: Agri, linux-newbie
On Monday 26 January 2004 10:46, Agri wrote:
> 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:
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.
--
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
pa3gcu@zeelandnet.nl
http://people.zeelandnet.nl/pa3gcu/
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2004-01-26 19:41 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-25 1:11 howto configuring kernel and modules.conf for automatic loading of ide-scsi Agri
2004-01-25 2:16 ` X-Penguin
2004-01-25 4:31 ` Ray Olszewski
2004-01-25 11:06 ` Agri
2004-01-25 16:28 ` Ray Olszewski
2004-01-25 18:10 ` Agri
2004-01-25 19:30 ` pa3gcu
2004-01-26 0:08 ` Ken Moffat
2004-01-26 9:46 ` Agri
2004-01-26 15:50 ` Ken Moffat
2004-01-26 19:41 ` pa3gcu
2004-01-25 8:23 ` pa3gcu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.