You are not logged in.

#1 2013-05-24 09:50:22

studentik
Member
Registered: 2013-05-24
Posts: 38

[SOLVED] cannot load netatop kernel module on boot

Hello!

I would like to use atop for network monitoring, which requires loading additional kernel module from netatop package (AUR).

When I do

$ sudo insmod /usr/lib/modules/3.9.3-1-ARCH/extramodules/netatop.ko

kernel module loads correctly and all is fine. Next I want to load this module during boot (echo netatop > /etc/modules-load.d/netatop.conf), but following command produces error:

$ sudo insmod netatop
insmod: ERROR: could not load module netatop: No such file or directory

Looks like insmod does not know such kernel module name. How do I fix this error? Thank you!

Last edited by studentik (2013-05-25 08:55:08)

Offline

#2 2013-05-24 10:11:41

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] cannot load netatop kernel module on boot

Looking at the man page, insmod seems to require a filename. Why don't you use the more common modprobe (which takes a modulename)?

man insmod wrote:

Most users will want to use modprobe(8) instead, which is more clever and can handle module dependencies.

Offline

#3 2013-05-24 10:27:40

studentik
Member
Registered: 2013-05-24
Posts: 38

Re: [SOLVED] cannot load netatop kernel module on boot

@Raynman,

Same error:

$ sudo modprobe netatop
modprobe: FATAL: Module netatop not found.

Offline

#4 2013-05-24 10:36:32

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] cannot load netatop kernel module on boot

Okay, I had a look at the PKGBUILD and there is no install file, which would typically run depmod to update the list of modules. After you run it manually you should be good to go.

Offline

#5 2013-05-24 10:52:53

studentik
Member
Registered: 2013-05-24
Posts: 38

Re: [SOLVED] cannot load netatop kernel module on boot

Thanks! It helped smile Maybe this should be reported to PKGBUILD maintainer?

Offline

#6 2013-05-24 11:13:53

studentik
Member
Registered: 2013-05-24
Posts: 38

Re: [SOLVED] cannot load netatop kernel module on boot

One more problem. I tried

$ sudo systemctl start netatop.service

Which lead to following error:

-- Unit netatop.service has begun starting up.
localhost insmod[603]: insmod: ERROR: could not load module /lib/modules/extramodules--ARCH/netatop.ko: No such file or directory
localhost systemd[1]: netatop.service: control process exited, code=exited status=1
localhost systemd[1]: Failed to start advanced interactive monitor.

Is this buggy PKGBUILD too (there is mistake in path of netatop.ko file)?

Offline

#7 2013-05-24 11:40:24

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] cannot load netatop kernel module on boot

Yes, path is wrong (note the double dash). I suppose the service file (contained in PKGBUILD) could also just use the module name (with modprobe) or if you load the module yourself (or via modules-load.d) the ExecStartPre line is not necessary.

And sure, you can report it to the maintainer (maybe link to this thread).

Last edited by Raynman (2013-05-24 11:40:35)

Offline

#8 2013-05-25 09:57:05

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [SOLVED] cannot load netatop kernel module on boot

I had some trouble properly installing the module on boot; obviously the .service wasn't the correct method of doing this. I have uploaded a new package

Offline

Board footer

Powered by FluxBB