Why network interfaces fails to load and booting logs shows error 'modprobe: FATAL: Could not load /lib/modules/($uname -r)/modules.dep No such file or directory' ?

Solution Verified - Updated -

Issue

  • Server boots up fine. But after booting network interface are not loaded.
  • In ifconfig output can see only lo interfrace.
  • Booting logs shows below error message:
modprobe: FATAL: Could not load /lib/modules/($uname -r)/modules.dep  No such file or directory¨
  • When actually checked, the directory /lib/modules/ itself found to be empty.
  • Same problem can also occur after upgrding the kernel and then booting into that new kernel version if some problem happens in installation process.

Environment

  • Red Hat Enterprise Linux (Any Version)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content