Find the answer to your Linux question:
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 ...
  1. #1
    Linux Newbie
    Join Date
    Feb 2007
    Posts
    248

    Exclamation 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

  2. #2
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    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 error
    -1 Unknown symbol in module
    Or the same error is thrown out, if this module depends on some other 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
    ---------------------------------

  3. #3
    Linux Newbie
    Join Date
    Feb 2007
    Posts
    248

    Thumbs up

    issue resolved ...Done.. Millions of thanks for sucha Nice n Prompt help

    Thanks n regards
    Needee

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...