S
S
sudo rm -rf /2017-07-23 01:17:44
linux
sudo rm -rf /, 2017-07-23 01:17:44

How to fix Failed load kernel modules error?

OS: Manjaro-i3wm I installed the driver
for the video card via mhwd -a pci 0300
After the next update, a subject appears at boot.

systemctl status systemd-modules-load

● systemd-modules-load.service - Load Kernel Modules
Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2017-07-23 07:42:25 +10; 19min ago
Docs: man:systemd-modules-load.service(8)
man:modules-load.d(5)
Process: 167 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)
Main PID: 167 (code=exited, status=1/FAILURE)
июл 23 07:42:25 maxlevs-pc-linux.local systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
июл 23 07:42:25 maxlevs-pc-linux.local systemd[1]: Failed to start Load Kernel Modules.
июл 23 07:42:25 maxlevs-pc-linux.local systemd[1]: systemd-modules-load.service: Unit entered failed state.
июл 23 07:42:25 maxlevs-pc-linux.local systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
ls -al /etc/modules-load.d/

total 16
drwxr-xr-x 2 root root 4096 июн 28 18:41 .
drwxr-xr-x 92 root root 4096 июл 22 11:27 ..
-rw-r--r-- 1 root root 76 июл 4 16:26 mhwd-gpu.conf
-rw-r--r-- 1 root root 34 июн 22 00:44 modules.conf
cat /etc/modules-load.d/mhwd-gpu.conf

##
## Generated by mhwd - Manjaro Hardware Detection
##
nvidia
nvidia-drm
cat /etc/modules-load.d/modules.conf

# List of modules to load at boot
journalctl -xeb
What to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nazar Mokrinsky, 2017-07-23
@nazarpc

Looks like I need to recompile the Nvidia driver kernel module because for some reason it didn't happen when it should have, and now the kernel refuses to load it.
In Ubuntu I do it like this:

sudo dkms remove -k 4.11.0-11-generic -m nvidia-384/384.47 
sudo dkms install -k 4.11.0-11-generic -m nvidia-384/384.47

It should be similar in Manjaro, just replace the kernel and Nvidia driver versions with yours and it should work. If not, you can simply remove the Nvidia driver and install it back, this will definitely cause the kernel module to be recompiled.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question