LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 06-11-2005, 02:05 AM   #1
swmok
Member
 
Registered: Jul 2003
Posts: 152

Rep: Reputation: 30
Loading modules in Debian 3.1(kernel 2.6)


Hi All:

I've installed the Debian 3.1 (with kernel 2.6).
When I type "lsmod", there are a lot of modules which I don't need:
Module Size Used by
ipt_MASQUERADE 3968 6
iptable_nat 22828 2 ipt_MASQUERADE
ip_conntrack 32908 2 ipt_MASQUERADE,iptable_nat
iptable_filter 3072 0
ip_tables 16896 3 ipt_MASQUERADE,iptable_nat,iptable_filter
ipv6 229892 6
psmouse 17800 0
evdev 9088 0
pcspkr 3816 0
uhci_hcd 29328 0
ohci_hcd 19460 0
ehci_hcd 27908 0
usbcore 104164 3 uhci_hcd,ohci_hcd,ehci_hcd
eepro100 28300 0
pci_hotplug 30640 0
intel_agp 20512 1
e100 30080 0
mii 4864 2 eepro100,e100
agpgart 31784 1 intel_agp
capability 4872 0
commoncap 7168 1 capability
ide_cd 38176 0
cdrom 35740 1 ide_cd
genrtc 9332 0
ext3 109672 1
jbd 54552 1 ext3
ide_generic 1664 0
piix 12448 1
ide_disk 16768 3
ide_core 125028 4 ide_cd,ide_generic,piix,ide_disk
unix 26036 14
font 8576 0
vesafb 6688 0
cfbcopyarea 3840 1 vesafb
cfbimgblt 3200 1 vesafb
cfbfillrect 3712 1 vesafb

Which file I should amend? or What should I do?
such that the system don't load these modules initially.

Thanks.
 
Old 06-11-2005, 02:31 AM   #2
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 50
have a look at /etc/modules
 
Old 06-13-2005, 03:35 AM   #3
swmok
Member
 
Registered: Jul 2003
Posts: 152

Original Poster
Rep: Reputation: 30
Hello:

I found that the "/etc/modules" contains the following modules only.

ide-cd
ide-disk
ide-generic
psmouse


How can I remove other modules or stop load it at start up?

Thanks.
 
Old 06-13-2005, 03:45 AM   #4
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Rep: Reputation: 30
Which modules do you think you dont need. You could blacklist them in hotplug or discover. See how you go.
 
Old 06-13-2005, 04:16 AM   #5
swmok
Member
 
Registered: Jul 2003
Posts: 152

Original Poster
Rep: Reputation: 30
Hi:

Thanks for your reply.

As my machine is rather OLD, I want to save memory as much as possible.
So, I want unload those related to USB, HOTPLUG, ... ...
Thanks.
 
Old 06-22-2005, 02:35 PM   #6
DeIgor
LQ Newbie
 
Registered: Jun 2005
Location: USA, NM
Distribution: Debian
Posts: 4

Rep: Reputation: 0
Same problem

Hello All!
I have a same problem. Anybody can help?
 
Old 06-23-2005, 11:12 AM   #7
crashmakerMX
LQ Newbie
 
Registered: Sep 2004
Posts: 17

Rep: Reputation: 0
I think the best way to save memory would be to compile your own kernel and select only the things you need.

i'm not using modules at all. everything i need is built-in
 
Old 06-23-2005, 11:15 AM   #8
liquidtenmilion
Member
 
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606

Rep: Reputation: 31
you can just type

rmmod modulename

to remove the modules, and to stop them from loading, maybe /etc/hotplug/blacklist?
 
Old 06-23-2005, 12:16 PM   #9
DeIgor
LQ Newbie
 
Registered: Jun 2005
Location: USA, NM
Distribution: Debian
Posts: 4

Rep: Reputation: 0
Angry Same problem

Quote:
Originally posted by liquidtenmilion
you can just type

rmmod modulename

to remove the modules, and to stop them from loading, maybe /etc/hotplug/blacklist?
I tried with eepro100 and it loading again ((

But how can I load e100 instead eepro100?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Loading Kernel Modules superdude_876 Linux - Software 1 10-28-2005 11:46 PM
Loading modules error after loading compiled kernel td0l2 Linux - Newbie 12 07-28-2004 11:10 AM
Loading Correct Kernel Modules rridler Linux - Newbie 4 04-15-2004 04:37 PM
Modules not loading in New kernel palanisaravanan Linux - General 1 11-22-2003 06:31 AM
Loading kernel modules at boot burk Linux - General 7 06-10-2002 07:28 AM


All times are GMT -5. The time now is 06:21 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration