LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-06-2007, 05:28 AM   #1
manolo
LQ Newbie
 
Registered: Sep 2003
Location: Valencia (Spain)
Distribution: Slackware
Posts: 17

Rep: Reputation: 0
Kernel 2.6 how to drop modules after startup


Hi
I have a home server running slackware 11.0 , with kernel 2.6 , that shows the following
modules ,
Most of the sound modules are not useful and I do not plan to use on the server.
Do You recomend to remove o mantaint?
Are there any posibility to remove this modules in kernel 2.6 , not to compiling a new one?
Thanks for your help
Manuel
Module Size Used by
ipt_MASQUERADE 2688 1
ipt_LOG 6272 1
xt_state 1920 1
iptable_nat 6020 1
ip_nat 14636 2 ipt_MASQUERADE,iptable_nat
ip_conntrack 40468 4 ipt_MASQUERADE,xt_state,iptable_nat,ip_nat
nfnetlink 5144 2 ip_nat,ip_conntrack
iptable_filter 2304 1
ip_tables 11352 2 iptable_nat,iptable_filter
x_tables 10500 5 ipt_MASQUERADE,ipt_LOG,xt_state,iptable_nat,ip_tables
snd_seq_dummy 2820 0
snd_seq_oss 28928 0
snd_seq_midi_event 5888 1 snd_seq_oss
snd_seq 43984 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device 6284 3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss 38048 0
snd_mixer_oss 15616 1 snd_pcm_oss
ipv6 223584 24
sg 26524 0
pcmcia 30116 0
firmware_class 7424 1 pcmcia
yenta_socket 23436 0
rsrc_nonstatic 10752 1 yenta_socket
pcmcia_core 34192 3 pcmcia,yenta_socket,rsrc_nonstatic
capability 3336 0
commoncap 5376 1 capability
lp 9800 0
parport_pc 24132 1
parport 30024 2 lp,parport_pc
pcspkr 2432 0
psmouse 34952 0
shpchp 33816 0
evdev 8064 0
serio_raw 5252 0
eepro100 26384 0
uhci_hcd 19724 0
snd_intel8x0 28316 0
8139too 21376 0
i2c_i810 4612 0
snd_ac97_codec 86304 1 snd_intel8x0
snd_ac97_bus 2048 1 snd_ac97_codec
intel_agp 19612 1
snd_pcm 73736 3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec
agpgart 28080 1 intel_agp
ehci_hcd 29064 0
mii 4864 2 eepro100,8139too
snd_timer 19332 2 snd_seq,snd_pcm
i2c_algo_bit 8200 1 i2c_i810
snd 43364 9 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd _timer
soundcore 7136 1 snd
i2c_core 16528 1 i2c_algo_bit
snd_page_alloc 7560 2 snd_intel8x0,snd_pcm
reiserfs 239088 1
 
Old 04-06-2007, 07:04 AM   #2
deadeyes
Member
 
Registered: Aug 2006
Posts: 609

Rep: Reputation: 79
Quote:
Originally Posted by manolo
Hi
I have a home server running slackware 11.0 , with kernel 2.6 , that shows the following
modules ,
Most of the sound modules are not useful and I do not plan to use on the server.
Do You recomend to remove o mantaint?
Are there any posibility to remove this modules in kernel 2.6 , not to compiling a new one?
Thanks for your help
Manuel
Module Size Used by
ipt_MASQUERADE 2688 1
ipt_LOG 6272 1
xt_state 1920 1
iptable_nat 6020 1
ip_nat 14636 2 ipt_MASQUERADE,iptable_nat
ip_conntrack 40468 4 ipt_MASQUERADE,xt_state,iptable_nat,ip_nat
nfnetlink 5144 2 ip_nat,ip_conntrack
iptable_filter 2304 1
ip_tables 11352 2 iptable_nat,iptable_filter
x_tables 10500 5 ipt_MASQUERADE,ipt_LOG,xt_state,iptable_nat,ip_tables
snd_seq_dummy 2820 0
snd_seq_oss 28928 0
snd_seq_midi_event 5888 1 snd_seq_oss
snd_seq 43984 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device 6284 3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss 38048 0
snd_mixer_oss 15616 1 snd_pcm_oss
ipv6 223584 24
sg 26524 0
pcmcia 30116 0
firmware_class 7424 1 pcmcia
yenta_socket 23436 0
rsrc_nonstatic 10752 1 yenta_socket
pcmcia_core 34192 3 pcmcia,yenta_socket,rsrc_nonstatic
capability 3336 0
commoncap 5376 1 capability
lp 9800 0
parport_pc 24132 1
parport 30024 2 lp,parport_pc
pcspkr 2432 0
psmouse 34952 0
shpchp 33816 0
evdev 8064 0
serio_raw 5252 0
eepro100 26384 0
uhci_hcd 19724 0
snd_intel8x0 28316 0
8139too 21376 0
i2c_i810 4612 0
snd_ac97_codec 86304 1 snd_intel8x0
snd_ac97_bus 2048 1 snd_ac97_codec
intel_agp 19612 1
snd_pcm 73736 3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec
agpgart 28080 1 intel_agp
ehci_hcd 29064 0
mii 4864 2 eepro100,8139too
snd_timer 19332 2 snd_seq,snd_pcm
i2c_algo_bit 8200 1 i2c_i810
snd 43364 9 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd _timer
soundcore 7136 1 snd
i2c_core 16528 1 i2c_algo_bit
snd_page_alloc 7560 2 snd_intel8x0,snd_pcm
reiserfs 239088 1
You only need to recompile the kernel if it is not compiled as a module.
Otherwhise you can just unload them.
With modprobe -r <modulename>
you can remove modules.
REMARK: this is temporarily.
Google for the place where you specify which modules should be loaded. (in Gentoo /etc/modules.autoload.d/kernel-2.6)
 
Old 04-06-2007, 11:07 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
In slack modules are loaded mostly from '/etc/rc.d/rc.modules-`uname -r`' or automatically.

If you want to compile a custom kernel, see the link in my sig. Read Chapter 7.
 
Old 04-06-2007, 11:59 AM   #4
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
There is no need to compile a custom kernel unless you just want to do that.
If you're using the old hotplug system (if /etc/rc.d/rc.udev is NOT executable), then add the modules that you *do not* want loaded to /etc/hotplug/blacklist (that might be /etc/hotplug.d/blacklist - not sure which).
If you are using udev (if /etc/rc.d/rc.udev *is* executable), then add the modules that you do not want to load to /etc/modprobe.d/blacklist
 
Old 04-07-2007, 09:35 AM   #5
manolo
LQ Newbie
 
Registered: Sep 2003
Location: Valencia (Spain)
Distribution: Slackware
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks , slackware users
Basically I added in the black list all the sound modules that I really dont need and now I reduce quite a lot the number of modules that are not necesary.
best regards
Manuel
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Drop connections to port 80 at firewall machine also drop at protected network? Niceman2005 Linux - Security 2 10-27-2005 08:21 AM
loading modules at kernel startup linux_lover2005 Linux - Software 2 12-21-2004 10:43 AM
kernel modules at startup? e1000 Linux - General 2 10-29-2003 08:43 AM
Startup Scripts and Kernel Modules jrdioko Linux - Newbie 9 10-07-2003 07:50 PM
why does the kernel drop packets ? mr.moto Linux - Networking 3 12-08-2002 12:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration