- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- insmod vs modprobe -- plz help
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2007 07:36 PM
тАО03-28-2007 07:36 PM
Although OS is not the Redhat, but.. i think this issue a General linux issue ;)
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
# insmod /lib/modules/2.6.16.21-0.8-smp/kernel/net/ipv4/netfilter/ip_nat_ftp.ko
1,
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2007 09:05 PM
тАО03-28-2007 09:05 PM
Re: insmod vs modprobe -- plz help
"insmod is a trivial program to insert a module into the kernel: if the filename is a hyphen, the module is taken from standard input. Most users will want to use modprobe(8) instead, which is cleverer."
Second: Are you sure that your current kernel is 2.6.16.21_0.8_smp?
I suggest you to replace the line:
insmod /lib/modules/2.6.16.21-0.8-smp/kernel/net/ipv4/netfilter/ip_nat_ftp.ko
with
insmod /lib/modules/`uname -r`/kernel/net/ipv4/netfilter/ip_nat_ftp.ko
Best regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2007 12:41 AM
тАО03-29-2007 12:41 AM
Solution- insmod takes a file name argument (either full path or relative path). That is why #3 fails.
- insmod does not deal with dependencies. This may be why #1 fails (not sure).
- modprobe takes a module name (usually this is the name of the file without the .ko extension), hence the error for #2 above.
- modprobe _does_ handle dependencies and module-specific options (see /etc/modprobe.conf).
So modprobe is really the command you want to use.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2007 05:27 PM
тАО03-29-2007 05:27 PM
Re: insmod vs modprobe -- plz help
for Alexander:
>Second: Are you sure that your current kernel is 2.6.16.21_0.8_smp?
no... and neither i said/wrote
>I suggest you to replace the line: .....
# insmod /lib/modules/`uname -r`/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
Well issue resolved ;)
thanks for help
Regards
Maaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2007 01:49 AM
тАО03-30-2007 01:49 AM