Kernel appears to have no modules

Posted by George Reith on Server Fault See other posts from Server Fault or by George Reith
Published on 2012-06-10T21:00:18Z Indexed on 2012/06/10 22:42 UTC
Read the original article Hit count: 266

Filed under:
|
|
|

Useful info:

OS: CentOS 5.8 final
Kernel: 2.6.32-042stab056.8

My kernel came prebuilt with the server, I don't know anything about kernels and not a lot about linux however as far as I do know I should have some modules loaded by the kernel.

I came across this problem because I am unable to run iscsi as it is expecting certain modules to be loaded.

lsmod returns nothing.

depmod -a returns:

WARNING: Couldn't open directory /lib/modules/2.6.32-042stab056.8: No such file or directory
FATAL: Could not open /lib/modules/2.6.32-042stab056.8/modules.dep.temp for writing: No such file or directory

I have rebooted and nothing has changed.

Does anyone know why this is happening?

© Server Fault or respective owner

Related posts about linux

Related posts about centos