rmmod: can't change directory to '/lib/modules': No such file or directory

Posted 阳光农场皮卡

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了rmmod: can't change directory to '/lib/modules': No such file or directory相关的知识,希望对你有一定的参考价值。

转载网址:http://blog.csdn.net/chengwen816/article/details/8781096

在我新移植的kernel(3.4.2)和yaffs2文件中,加载新编译的内核模块时,遇到如下问题(无法卸载模块):

1.rmmod: can‘t change directory to ‘/lib/modules‘: No such file or directory

此时应该在文件系统中创建/lib/modules目录,接着又有下面问题:

2. rmmod: can‘t change directory to ‘3.4.2‘: No such file or directory

接着在modules目录下创建3.4.2目录后,就可以成功卸载模块。

以上是关于rmmod: can't change directory to '/lib/modules': No such file or directory的主要内容,如果未能解决你的问题,请参考以下文章

mysql workbench 报错:Can't analyze file, please try to change encoding type...

docker启动mysql报错Can't read dir of '/etc/mysql/conf.d/'

In container,I can't use man

E-07'unicodeescape' codec can't decode bytes in position 29-30: malformed N character

redis启动出现错误 can't chdir ...

mysql安转过程中出现的问题! Fatal error: Can't open and lock privilege tables: Table 'mysql.user' d