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
-
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.
-
kudzu?
Take a look at /etc/modules.conf
-
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.
-
Hi,
There is no /etc/modules.conf on the server.
You should have one :?
to load the st driver just : # /sbin/modprobe sg
### for automatic load edit the /etc/rc.local file and add
/sbin/modprobe sg> /dev/null 2>&1
G.
-
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.
-
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.
-
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.
-
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.
-
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
-
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".
-
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