红联Linux门户
Linux帮助

rootfs之rmmod错误问题

发布时间:2016-06-27 15:16:09来源:linux网站作者:lgl88911

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


insmod后做rmmod报以下错误:

/tmp/nfs/frank/drv/myled # rmmod led_drv.ko
rmmod: can't change directory to '/lib/modules': No such file or directory


原因是rootfs在/lib下缺乏对应的目录,建立

mkdir /lib/modules


再执行rmmod提示

/tmp/nfs/frank/drv/myled # rmmod led_drv.ko
rmmod: can't change directory to '2.6.35.3-571-gcca29a0-g6335376': No such file or directory


再建立2.6.35.3-571-gcca29a0-g6335376即可解决问题

mkdir /lib/modules/2.6.35.3-571-gcca29a0-g6335376


本文永久更新地址:http://www.linuxdiyf.com/linux/21882.html