Chinaunix首页 | 论坛 | 博客
  • 博客访问: 609510
  • 博文数量: 132
  • 博客积分: 6010
  • 博客等级: 准将
  • 技术积分: 1520
  • 用 户 组: 普通用户
  • 注册时间: 2005-03-13 17:00
文章分类

全部博文(132)

文章存档

2017年(1)

2014年(1)

2011年(1)

2009年(1)

2008年(3)

2007年(1)

2006年(1)

2005年(123)

我的朋友

分类: LINUX

2005-03-24 09:18:52

转from http://blog.platinum.net.cn/index.php?op=ViewArticle&articleId=34&blogId=1

加载ip_nat_ftp.o模块时,出现下列错误

[root@PT-LINUX 2.4.21-27.0.1.ELsmp]# modprobe ip_nat_ftp
modprobe: Too deep recursion in module dependencies!
modprobe: Circular dependency? ip_nat_core ip_nat_proto_udp ip_conntrack ip_nat_ftp
Aborted
[root@PT-LINUX 2.4.21-27.0.1.ELsmp]#

调用-j MASQUERADE时,也无法自动载入ipt_MASQUERADE.o模块,现象很奇怪

查阅很多资料后,没有得到答案

问题出在modprobe上,于是modprobe --help

[root@PT-LINUX 2.4.21-27.0.1.ELsmp]# modprobe --help
modprobe 2.4.27
Load/Unload modules with dependencies

Load module(s):
  modprobe [-a -n -v ] [-C config ] [ -t type ] pattern OR module1 module2 ...
List modules:
  modprobe [-l ] [-C config ] [ -t type ] pattern
   note: wildcard patterns should be escaped
Show configuration:
  modprobe [-C config ] -c
Remove module(s) or autoclean:
  modprobe [-C config ] -r [ module ...]

options:
        -a, --all                  Load _all_ matching modules
        -c, --showconfig           Show current configuration
        -d, --debug                Print debugging information
        -h, --help                 Print this message
        -k, --autoclean            Set 'autoclean' on loaded modules
        -l, --list                 List matching modules
        -n, --show                 Don't actually perform the action
        -q, --quiet                Quiet operation
        -r, --remove               Remove module (stacks) or do autoclean
        -s, --syslog               Use syslog to report
        -t, --type moduletype      Only look for modules of this type
        -v, --verbose              Print all commands
        -V, --version              Show version
        -C, --config configfile    Use instead of /etc/modules.conf
[root@PT-LINUX 2.4.21-27.0.1.ELsmp]#

发现了-c参数,于是modprobe -c,发现/lib/modules/xxxxx/modules.dep文件可疑,于是打开了modules.dep

哈哈,问题就在那里

删除了几行,不过ip_nat_ftp在启动的时候还是不能自动加载,后来又根据lsmod的结果,添加了一行,OK了

modprobe是要查询modules.dep来确定依赖性的...
阅读(1940) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~