Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: tm255e on October 19, 2006, 11:00:58 PM

Title: How do i disable a module and enable another.
Post by: tm255e on October 19, 2006, 11:00:58 PM
Hi,
   I need to disable the st module and enable the sg module so that the system detects my tape drive.

Can you tell me how i do this.

I can do it at the command prompt and all seems to be well, but i would like to make the change permanent.

Thanks.

               Steve.
Title: How do i disable a module and enable another.
Post by: elmarconi on October 21, 2006, 10:43:05 PM
kudzu?

Take a look at /etc/modules.conf
Title: How do i disable a module and enable another.
Post by: tm255e on October 21, 2006, 11:07:30 PM
Thanks for the reply.

Kudzu? not sure how you would use this to add remove a module.

There is no /etc/modules.conf on the server.

basically i need to change the modules that are loaded in the scsi_mod.
the st module needs to be removed and the sg module needs to be added.

if you do a lsmod the module listed on my server are "ide_scsi,st,aic7xxx,sd_mod"

What i need is "ide_scsi,sg,aic7xxx,sd_mod"

as i have said in the original post i can do it via the command prompt but i need it to be permanent.

Any help appreciated.

Thanks.
Title: How do i disable a module and enable another.
Post by: Gaston94 on October 22, 2006, 05:26:23 PM
Hi,
Quote from: "tm255e"
There is no /etc/modules.conf on the server.

You should have one  :?
to load the st driver just :
Code: [Select]
# /sbin/modprobe sg
### for automatic load edit the /etc/rc.local file and add
/sbin/modprobe sg> /dev/null 2>&1


G.
Title: Re: How do i disable a module and enable another.
Post by: CharlieBrady on October 22, 2006, 05:49:21 PM
Quote from: "tm255e"
Hi,
   I need to disable the st module and enable the sg module so that the system detects my tape drive.

Can you tell me how i do this.


If you're aware of a problem (some part of the software which doesn't work correctly) then you should report the problem via the bug tracker. If you know a fix for the problem (e.g. use /load a different module) then you should also provide that information via the bug tracker.

Thanks.
Title: How do i disable a module and enable another.
Post by: elmarconi on October 23, 2006, 11:56:57 AM
I use the pre-install directive for modules.conf:

[root@smeserver root]# cat /etc/modules.conf
options ide-cd ignore=hdc
pre-install sg modprobe ide-scsi
pre-install sr_mod modprobe ide-scsi
pre-install ide-scsi modprobe ide-cd

Do a search on how to use pre-install.
Title: How do i disable a module and enable another.
Post by: tm255e on October 23, 2006, 09:52:27 PM
OK, i am not sure what i have to do here.

First of this is SME-7 there is no modules.conf anywhere on the server (i have searched). do i need to create one?

I have searched for pre-install directive on the forum and all the posts that i have found are for older versions of SME.

The scsi_mod is loading fine, i just need to change the 2 modules, remove the st module and add the sg module in its place.

Simple  :?

Sorry for all the questions, i can normally sort this kind of issue without too much help but this one has me stumped.

I don't think it is a bug i just need to make a change.

Steve.
Title: How do i disable a module and enable another.
Post by: CharlieBrady on October 23, 2006, 10:32:29 PM
Quote from: "tm255e"

I don't think it is a bug i just need to make a change.


If you have to make a change, then it did not "just work" out of the box. If it did not work out of the box, then there is a bug. If you want to help both yourself and others, then please report your problem in detail in the bug tracker.
Title: How do i disable a module and enable another.
Post by: Tib on October 24, 2006, 05:36:11 AM
tm255e

For the intrem till you rais a bug report ... why don't you just create a file in

/etc/e-smith/templates-custom/etc/modules.conf

and put the changes in there ... that way at least it will stay permanent till you take it out.

custom templates is the go if you want to make changes.

I don't have an /etc/modules.conf either but I do have /etc/e-smith/templates-custom/etc/modules.conf/10openvpn for the openvpn setup.

so I'm sure if you create a file and put in the comands you require and expand the template it should work ... if it doesn't you can just delete the file and all will be back to normal.

You'll have to find out how to expand the template ... I can't remember.

Might want to read up in the user manual on custom templates.

Regards,

Tib
Title: How do i disable a module and enable another.
Post by: gregswallow on October 24, 2006, 05:45:57 AM
Quote from: "CharlieBrady"
Quote from: "tm255e"

I don't think it is a bug i just need to make a change.


If you have to make a change, then it did not "just work" out of the box. If it did not work out of the box, then there is a bug. If you want to help both yourself and others, then please report your problem in detail in the bug tracker.


Yup, please make a bug report.  I think people are used to having to make changes with other Linux distributions to make things work.  SME Server is very unique that things are supposed to "just work".
Title: How do i disable a module and enable another.
Post by: dmay on October 24, 2006, 05:22:57 PM
Quote from: "tm255e"
First of this is SME-7 there is no modules.conf anywhere on the server (i have searched). do i need to create one?

Correct. For SME7 /etc/modules.conf is superceded by /etc/modprobe.conf. Note if you upgraded your server to SME7 you will have both modules.conf from your old release and modprobe.conf. Modprobe.conf is templated so make changes here:

/etc/e-smith/templates-custom/etc/modprobe.conf

Darrell