Results 1 to 3 of 3
OS: SLES 10
plz correct me if am wrong, and also suggest
I think modprobe, and insmod are use to load/install *.ko(modules).. right .. if then why I am getting ...
- 03-29-2007 #1Linux Newbie
- Join Date
- Feb 2007
- Posts
- 248
insmod vs modprobe -- plz help
OS: SLES 10
plz correct me if am wrong, and also suggest
I think modprobe, and insmod are use to load/install *.ko(modules).. right .. if then why I am getting error when
1,
# insmod /lib/modules/2.6.16.21-0.8-smp/kernel/net/ipv4/netfilter/ip_nat_ftp.ko
insmod: error inserting '/lib/modules/2.6.16.21-0.8-smp/kernel/net/ipv4/netfilter/ip_nat_ftp.ko': -1 Unknown symbol in module
2,
# modprobe /lib/modules/2.6.16.21-0.8-smp/kernel/net/ipv4/netfilter/ip_nat_ftp.ko
FATAL: Module /lib/modules/2.6.16.21_0.8_smp/kernel/net/ipv4/netfilter/ip_nat_ftp.ko not found.
3,
# insmod ip_nat_ftp
insmod: can't read 'ip_nat_ftp': No such file or directory
# insmod ip_nat_ftp.ko
insmod: can't read 'ip_nat_ftp.ko': No such file or directory
But success when
4
# modprobe ip_nat_ftp
Plz help/explain
Regards
Needee
- 03-29-2007 #2
modprobe: modprobe <module_name(extn not req)>
1. It finds kernel version, enters the respective path /lib/modules/`uname -r`, searches for the given module, and inserts it.
insmod: insmod <module_name (with extn .o or .ko)>
1. It looks for the module in the current path. So the complete path shud be given to load a module using insmod.
If you try to load a module that is not compiled for the running kernel, you wud get an errorOr the same error is thrown out, if this module depends on some other module.-1 Unknown symbol in module
If the symbol table is updated (using depmod), modprobe checks for all dependencies and loads all the dependent modules.
insmod is not that intelligent as modprobe---------------------------------
Registered Linux User #440311
HI2ARUN _AT_ GMAIL _DOT_ COM
---------------------------------
- 03-29-2007 #3Linux Newbie
- Join Date
- Feb 2007
- Posts
- 248
issue resolved ...Done.. Millions of thanks for sucha Nice n Prompt help
Thanks n regards
Needee


Reply With Quote