Jump to content

Deleting unnecessary modules


joomy
 Share

Recommended Posts

Using Delft usb live.

 

Does anyone know if it is safe to delete any of these modules to save some precious ram.

Can I delete the one`s with a "Used by" 0 as seen below?

thanks very much

 

Module				  Size  Used by
iptable_raw			 2368  0 
xt_policy			   4224  2 
xt_multiport			3776  4 
ipt_ULOG				7044  0 
ipt_TTL				 2624  0 
ipt_ttl				 2336  0 
ipt_TOS				 2560  0 
ipt_tos				 2144  0 
ipt_TCPMSS			  4160  0 
ipt_set				 2880  0 
ipt_SAME				2848  0 
ipt_REJECT			  5024  4 
ipt_REDIRECT			2720  0 
ipt_recent			 10028  0 
ipt_owner			   2432  0 
ipt_NETMAP			  2624  0 
ipt_MASQUERADE		  3808  0 
ipt_LOG				 7072  10 
ipt_iprange			 2336  0 
ipt_hashlimit		   7976  0 
ipt_ECN				 3296  0 
ipt_ecn				 2624  0 
ipt_DSCP				2560  0 
ipt_dscp				2176  0 
ipt_CLUSTERIP		   7460  0 
ipt_ah				  2368  0 
ipt_addrtype			2304  0 
ip_set_portmap		  4800  0 
ip_set_macipmap		 4740  0 
ip_set_ipmap			4768  0 
ip_set_iphash		   7780  0 
ip_set				 18972  9 ipt_set,ip_set_portmap,ip_set_macipmap,ip_set_ipmap,ip_set_iphash
ip_nat_tftp			 2144  0 
ip_nat_snmp_basic	   9604  0 
ip_nat_sip			  4064  0 
ip_nat_pptp			 5444  0 
ip_nat_irc			  2784  0 
ip_nat_h323			 6304  0 
ip_nat_ftp			  3520  0 
ip_nat_amanda		   2464  0 
ip_conntrack_tftp	   3960  1 ip_nat_tftp
ip_conntrack_sip		6704  1 ip_nat_sip
ip_conntrack_pptp	   9968  1 ip_nat_pptp
ip_conntrack_netbios_ns	 3008  0 
ip_conntrack_irc		5840  1 ip_nat_irc
ip_conntrack_h323	  45820  1 ip_nat_h323
ip_conntrack_ftp		6800  1 ip_nat_ftp
ip_conntrack_amanda	 4072  1 ip_nat_amanda
xt_tcpmss			   2688  0 
xt_pkttype			  2368  4 
xt_physdev			  2896  0 
xt_NFQUEUE			  2528  0 
xt_MARK				 2848  0 
xt_mark				 2400  0 
xt_mac				  2432  0 
xt_limit				2944  0 
xt_length			   2496  0 
xt_helper			   2720  0 
xt_dccp				 3652  0 
xt_conntrack			2848  0 
xt_CONNMARK			 2784  0 
xt_connmark			 2496  0 
xt_CLASSIFY			 2368  0 
xt_tcpudp			   3648  11 
xt_state				2560  6 
iptable_nat			 7492  0 
ip_nat				 15468  12 ipt_SAME,ipt_REDIRECT,ipt_NETMAP,ipt_MASQUERADE,ip_nat_tftp,ip_nat_sip,ip_nat_pp
tp,ip_nat_irc,ip_nat_h323,ip_nat_ftp,ip_nat_amanda,iptable_nat
ip_conntrack		   48160  24 ipt_MASQUERADE,ip_nat_tftp,ip_nat_snmp_basic,ip_nat_sip,ip_nat_pptp,ip_nat_irc,i
p_nat_h323,ip_nat_ftp,ip_nat_amanda,ip_conntrack_tftp,ip_conntrack_sip,ip_conntra
ck_pptp,ip_conntrack_netbios_ns,ip_conntrack_irc,ip_conntrack_h323,ip_conntrack_
ftp,ip_conntrack_amanda,xt_helper,xt_conntrack,xt_CONNMARK,xt_connmark,xt_state,
iptable_nat,ip_nat
iptable_mangle		  2976  1 
nfnetlink			   5752  2 ip_nat,ip_conntrack
iptable_filter		  3104  1 
ip_tables			  12580  4 iptable_raw,iptable_nat,iptable_mangle,iptable_filter
x_tables			   11940  45 xt_policy,xt_multiport,ipt_ULOG,ipt_TTL,ipt_ttl,ipt_TOS,ipt_tos,ipt_TCPMSS,ipt_s
et,ipt_SAME,ipt_REJECT,ipt_REDIRECT,ipt_recent,ipt_owner,ipt_NETMAP,ipt_MASQUERAD
E,ipt_LOG,ipt_iprange,ipt_hashlimit,ipt_ECN,ipt_ecn,ipt_DSCP,ipt_dscp,ipt_CLUSTER
IP,ipt_ah,ipt_addrtype,xt_tcpmss,xt_pkttype,xt_physdev,xt_NFQUEUE,xt_MARK,xt_mar
k,xt_mac,xt_limit,xt_length,xt_helper,xt_dccp,xt_conntrack,xt_CONNMARK,xt_connmar
k,xt_CLASSIFY,xt_tcpudp,xt_state,iptable_nat,ip_tables
8139too				22688  0 
mii					 5568  1 8139too
af_packet			  17768  2 
ipv6				  237088  10 
binfmt_misc			 9704  1 
ide_generic			 1824  0 [permanent]
cpufreq_ondemand		6956  0 
cpufreq_conservative	 6920  0 
cpufreq_powersave	   2272  0 
freq_table			  4704  0 
processor			  21256  0 
usbmouse				5024  0 
evdev				   8672  0 
tsdev				   6880  0 
usbkbd				  6464  0 
usbhid				 50272  0 
dm_mirror			  18960  0 
dm_mod				 49560  1 dm_mirror
unionfs			   300776  1 
squashfs			   43044  1 
ide_cs				  8896  0 
yenta_socket		   24076  0 
rsrc_nonstatic		 11616  1 yenta_socket
pcmcia				 31756  1 ide_cs
pcmcia_core			34388  4 ide_cs,yenta_socket,rsrc_nonstatic,pcmcia
3w_xxxx				24960  0 
sx8					16172  0 
tmscsim				21120  0 
sata_vsc				6468  0 
sata_via				6500  0 
sata_uli				5348  0 
sata_sx4			   11972  0 
sata_svw				6180  0 
sata_sis				7204  0 
sata_sil				7624  0 
sata_qstor			  7908  0 
sata_promise			9604  0 
sata_nv				 7812  0 
BusLogic			   69716  0 
aic7xxx			   176276  0 
ahci				   16100  0 
usb_storage			88612  1 
ehci_hcd			   28904  0 
ohci_hcd			   18820  0 
uhci_hcd			   20912  0 
usbcore			   112960  8 usbmouse,usbkbd,usbhid,usb_storage,ehci_hcd,ohci_hcd,uhci_hcd
mptbase				47168  0 
scsi_transport_spi	 22368  1 aic7xxx
sd_mod				 18432  2 
sg					 30584  0 
ata_piix			   10884  0 
libata				 60748  12 sata_vsc,sata_via,sata_uli,sata_sx4,sata_svw,sata_sis,sata_sil,sata_qstor,sata_p
romise,sata_nv,ahci,ata_piix
sr_mod				 15332  0 
scsi_mod			  118824  11 3w_xxxx,tmscsim,BusLogic,aic7xxx,ahci,usb_storage,scsi_transport_spi,sd_mod,sg,l
ibata,sr_mod
loop				   15208  4 
ide_cd				 35616  0 
isofs				  32284  0 
nls_utf8				2496  0 
ntfs				  267228  0 
vfat				   10944  1 
msdos				   8480  0 
fat					47356  2 vfat,msdos
reiserfs			  255492  0 
ext3				  125928  0 
jbd					51220  1 ext3
nls_cp437			   6304  1 
nls_iso8859_2		   5216  0 
nls_iso8859_1		   4672  1

Link to comment
Share on other sites

Simply blacklist the ones you don't need...

Recompliling your kernel with all modules you don't need left out is certainly doable, but not exactly trivial to achieve, especially on USB installation (where it's rather certain that the devel packages are missing).

Edited by scarecrow
Link to comment
Share on other sites

thanks scarecrow, but recompiling kernel is a bit too advanced for me.

I`v tried

 

modprobe.conf

 

blacklist ntfs

blacklist reiserfs

blacklist tsdev

blacklist vboxdrv

blacklist l2cap

blacklist bluetooth

blacklist rfcomm

blacklist audio

blacklist snd-usb-audio

 

not sure if this is correct tho.

Link to comment
Share on other sites

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...